You are here

footnotes.css in Footnotes 8.2

/*
 * CSS specific to Footnotes module.
*
* Thanks to binford2k@lug.wsu.edu for this tip and drinkypoo
* for the question leading up to it. http://drupal.org/node/80538
*/

/* Add empty space before footnotes and a black line on top. */
.footnotes {
  clear: both;
  margin-top: 4em;
  margin-bottom: 2em;
  border-top: 1px solid #000;
}
/* Make footnotes appear in a smaller font */
.footnotes {
  font-size: 0.9em;
}
/*
  Make the footnote a supertext^1
*/
.see-footnote {
  vertical-align: top;
  position: relative;
  top: -0.25em;
  font-size: 0.9em;
}
/* Hide the bullet of the UL list of footnotes */

ul.footnotes {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}
ul.footnotes li {
  margin-left: 2.5em;
  list-style-type: none;
  background: none; /* Garland theme sets a bullet via background image, this must be unset! See bug 861634 */
}
/* Move the footnote number outside of the margin for footnote text (hanging indent) */
ul.footnotes {
  /* This is apparently very needed for the "position: absolute;" below to work correctly */
  position: relative;
}
.footnotes .footnote-label {
  position: absolute;
  left: 0;
  z-index: 2;
}
/* Highlight the target footnote (or ref number, if a backlink was used) when user clicks a footnote. */
.see-footnote:target,
.footnotes .footnote:target {
  background-color: #eee;
}
.see-footnote:target {
  border: solid 1px #aaa;
}
/* Note: This CSS has a minor bug on all versions of IE in that the footnote numbers
are aligned with the absolute bottom of their space, thus being a couple of pixels
lower than their corresponding line of text. IE5.5 has a serious bug in that the numbers
are not shifted left at all, thus being garbled together with the start of their text. */

/*
  Make the multiple backlinks a supertext^1
*/
.footnotes .footnote-multi {
  vertical-align: top;
  position: relative;
  top: -0.25em;
  font-size: 0.75em;
}
/*
 * Textile Footnotes
 */
/* First footnote */
#fn1 {
  border-top: 1px solid #000;
  margin-top: 3em;
}
.footnote {
  font-size: 0.9em;
}

File

assets/css/footnotes.css
View source
  1. /*
  2. * CSS specific to Footnotes module.
  3. *
  4. * Thanks to binford2k@lug.wsu.edu for this tip and drinkypoo
  5. * for the question leading up to it. http://drupal.org/node/80538
  6. */
  7. /* Add empty space before footnotes and a black line on top. */
  8. .footnotes {
  9. clear: both;
  10. margin-top: 4em;
  11. margin-bottom: 2em;
  12. border-top: 1px solid #000;
  13. }
  14. /* Make footnotes appear in a smaller font */
  15. .footnotes {
  16. font-size: 0.9em;
  17. }
  18. /*
  19. Make the footnote a supertext^1
  20. */
  21. .see-footnote {
  22. vertical-align: top;
  23. position: relative;
  24. top: -0.25em;
  25. font-size: 0.9em;
  26. }
  27. /* Hide the bullet of the UL list of footnotes */
  28. ul.footnotes {
  29. list-style-type: none;
  30. margin-left: 0;
  31. padding-left: 0;
  32. }
  33. ul.footnotes li {
  34. margin-left: 2.5em;
  35. list-style-type: none;
  36. background: none; /* Garland theme sets a bullet via background image, this must be unset! See bug 861634 */
  37. }
  38. /* Move the footnote number outside of the margin for footnote text (hanging indent) */
  39. ul.footnotes {
  40. /* This is apparently very needed for the "position: absolute;" below to work correctly */
  41. position: relative;
  42. }
  43. .footnotes .footnote-label {
  44. position: absolute;
  45. left: 0;
  46. z-index: 2;
  47. }
  48. /* Highlight the target footnote (or ref number, if a backlink was used) when user clicks a footnote. */
  49. .see-footnote:target,
  50. .footnotes .footnote:target {
  51. background-color: #eee;
  52. }
  53. .see-footnote:target {
  54. border: solid 1px #aaa;
  55. }
  56. /* Note: This CSS has a minor bug on all versions of IE in that the footnote numbers
  57. are aligned with the absolute bottom of their space, thus being a couple of pixels
  58. lower than their corresponding line of text. IE5.5 has a serious bug in that the numbers
  59. are not shifted left at all, thus being garbled together with the start of their text. */
  60. /*
  61. Make the multiple backlinks a supertext^1
  62. */
  63. .footnotes .footnote-multi {
  64. vertical-align: top;
  65. position: relative;
  66. top: -0.25em;
  67. font-size: 0.75em;
  68. }
  69. /*
  70. * Textile Footnotes
  71. */
  72. /* First footnote */
  73. #fn1 {
  74. border-top: 1px solid #000;
  75. margin-top: 3em;
  76. }
  77. .footnote {
  78. font-size: 0.9em;
  79. }