docbook-paged.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /* @@TITLE@@ version @@VERSION@@
  2. *
  3. * This is docbook-paged.css.
  4. *
  5. * See https://xsltng.docbook.org/
  6. *
  7. * This stylesheet should be followed by the stylesheet for the particular
  8. * presentation style: paper, book, etc.
  9. *
  10. */
  11. @page {
  12. size: A4;
  13. margin: 1in;
  14. counter-reset: footnote;
  15. }
  16. @page title {
  17. @top-center: {
  18. content: "";
  19. }
  20. @bottom-right: {
  21. content: "";
  22. }
  23. @bottom-left: {
  24. content: "";
  25. }
  26. }
  27. @page normal-flow {
  28. @footnote {
  29. float: bottom page;
  30. border-top: thin solid black;
  31. border-length: 30%;
  32. padding-top: 0.5em;
  33. }
  34. }
  35. @page normal-flow:blank {
  36. @top-center: {
  37. content: "";
  38. }
  39. @bottom-right: {
  40. content: "";
  41. }
  42. @bottom-left: {
  43. content: "";
  44. }
  45. }
  46. html {
  47. page: normal-flow;
  48. }
  49. .book > header {
  50. padding: 0;
  51. border: inherit;
  52. }
  53. h1, h2 {
  54. string-set: ComponentTitle content()
  55. }
  56. header {
  57. page-break-inside: avoid;
  58. }
  59. .example header {
  60. page-break-before: avoid;
  61. }
  62. .book .list-of-titles {
  63. counter-reset: page;
  64. }
  65. .book .lot {
  66. margin-top: 1em;
  67. }
  68. .part .list-of-titles {
  69. display: none;
  70. }
  71. /* ============================================================ */
  72. .toc a::after {
  73. content: leader(dotted) " " target-counter(attr(href url), page);
  74. }
  75. /* ============================================================ */
  76. .footnote {
  77. float: footnote;
  78. margin-left: 0.75rem;
  79. font-size: 1rem;
  80. font-weight: normal;
  81. font-family: "Noto Serif", serif, "Arial Unicode";
  82. }
  83. /* ============================================================ */
  84. .indexref::before {
  85. content: target-counter(attr(href url), page);
  86. }
  87. /* ============================================================ */
  88. details {
  89. display: none;
  90. }
  91. a, a:visited {
  92. text-decoration: none;
  93. }
  94. .error * {
  95. background-color: inherit;
  96. color: inherit;
  97. padding: inherit;
  98. }
  99. span.error {
  100. display: inline;
  101. border: none;
  102. padding: inherit;
  103. margin: inherit;
  104. }
  105. span.error::before {
  106. content: none;
  107. }
  108. span.error::after {
  109. content: none;
  110. }
  111. span.error.broken-link::after {
  112. content: none;
  113. }
  114. .annotations {
  115. border-top: none;
  116. page-break-before: always;
  117. }
  118. .xlink-arc-list {
  119. font-style: normal;
  120. }
  121. .xlink-arc-delim {
  122. display: inline;
  123. }
  124. .nhrefs .arc a::after {
  125. content: " (" attr(href) ")";
  126. }
  127. /* Work around bug in AntennaHouse V7.0 MR2 for MacOSX */
  128. span.footnote p {
  129. margin-bottom: 0pt;
  130. }