lfs-nochunks.xsl 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns="http://www.w3.org/1999/xhtml"
  4. version="1.0">
  5. <!-- We use XHTML -->
  6. <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/docbook.xsl"/>
  7. <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
  8. <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
  9. <!-- Including our others customized templates -->
  10. <xsl:include href="xhtml/lfs-admon.xsl"/>
  11. <xsl:include href="xhtml/lfs-index.xsl"/>
  12. <xsl:include href="xhtml/lfs-mixed.xsl"/>
  13. <xsl:include href="xhtml/lfs-navigational.xsl"/>
  14. <xsl:include href="xhtml/lfs-toc.xsl"/>
  15. <!-- Dropping some unwanted style attributes -->
  16. <xsl:param name="ulink.target" select="''"></xsl:param>
  17. <xsl:param name="css.decoration" select="0"></xsl:param>
  18. <!-- The CSS Stylesheet -->
  19. <xsl:template name='user.head.content'>
  20. <style type="text/css">
  21. <xsl:text>
  22. /* Global settings */
  23. body {
  24. font-family: sans-serif;
  25. text-align: left;
  26. background: #fff;
  27. color: #333;
  28. margin: 1em;
  29. padding: 0;
  30. font-size: 1em;
  31. line-height: 1.2em
  32. }
  33. a:link { color: #22b; }
  34. a:visited { color: #7e4988; }
  35. a:hover, a:focus { color: #d30e08; }
  36. a:active { color: #6b77b1;}
  37. /* Headers */
  38. h1, h2, b, strong {
  39. color: #000;
  40. font-weight: bold;
  41. }
  42. h3, h4, h5, h6 {
  43. color: #222;
  44. }
  45. h1 { font-size: 173%; text-align: center; }
  46. h2 { font-size: 144%; }
  47. h2.subtitle { text-align: center; }
  48. h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
  49. h4 { font-size: 110%;}
  50. h5, h6 { font-size: 110%; font-style: italic; }
  51. /* TOC and Index*/
  52. div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
  53. list-style: none;
  54. }
  55. div.toc, div.dedication {
  56. padding-left: 1em;
  57. }
  58. li.preface {
  59. margin-left: 1em;
  60. }
  61. div.toc ul li h3, div.toc ul li h4 {
  62. margin: .4em;
  63. }
  64. .item {
  65. width: 15em;
  66. float: left;
  67. }
  68. .secitem {
  69. font-weight: normal;
  70. width: 14em;
  71. float: left;
  72. }
  73. /* Admonitions */
  74. div.note, div.tip {
  75. background-color: #fffff6;
  76. border: 2px solid #dbddec;
  77. width: 90%;
  78. margin: .5em auto;
  79. }
  80. div.important, div.warning, div.caution {
  81. background-color: #fffff6;
  82. border: medium solid #400;
  83. width: 90%;
  84. margin: 1.5em auto;
  85. color: #600;
  86. font-size: larger;
  87. }
  88. div.important h3, div.warning h3, div.caution h3 {
  89. color: #900;
  90. }
  91. div.admonhead img {
  92. display: none;
  93. }
  94. h3.admontitle {
  95. padding-left: 2.5em;
  96. padding-top: 1em;
  97. }
  98. div.admonbody {
  99. margin: .5em;
  100. }
  101. div.important em, div.warning em, div.caution em {
  102. color: #000;
  103. font-weight: bold;
  104. }
  105. div.important tt, div.warning tt, div.caution tt {
  106. font-weight: bold;
  107. }
  108. /* variablelist and segmentedlist */
  109. dl {
  110. margin: 0;
  111. padding: 0;
  112. }
  113. dt {
  114. display: list-item;
  115. font-weight: bold;
  116. margin: .33em 0 0 1em;
  117. padding: 0;
  118. }
  119. div.content dt {
  120. list-style: none;
  121. }
  122. dd {
  123. margin: 0 0 1em 3em;
  124. padding: 0;
  125. }
  126. div.variablelist dd {
  127. margin-bottom: 1em;
  128. }
  129. div.variablelist dd p {
  130. margin-top: 0px;
  131. }
  132. dl.materials dd {
  133. margin-left: 0px;
  134. }
  135. div.segmentedlist {
  136. margin-top: 1em;
  137. }
  138. div.segmentedlist p {
  139. margin: 0px auto;
  140. }
  141. /* Indented blocks */
  142. p, ul, dl, code, blockquote {
  143. padding-left: 1em;
  144. }
  145. /* Monospaced elements */
  146. tt, code, kbd, pre, .command {
  147. font-family: monospace;
  148. }
  149. pre.userinput {
  150. color: #101310;
  151. background-color: #e5e5e5;
  152. border: 1px solid #050505;
  153. padding: .5em 1em;
  154. margin: 0 2em;
  155. font-weight: bold;
  156. }
  157. pre.screen {
  158. background-color: #e9e9e9;
  159. border: 1px solid #050505;
  160. padding: .5em 1em;
  161. margin: 0 2em;
  162. }
  163. /* Sections */
  164. div.package {
  165. background: #f5f6f7;
  166. border-bottom: 0.2em solid #dbddec;
  167. padding: 0.5em 0.5em 0.3em 0.5em;
  168. margin: 0px auto;
  169. }
  170. div.installation {
  171. padding: 0 0.5em 0.3em 0.5em;
  172. margin: 0.5em 0 0.5em 0;
  173. }
  174. div.configuration {
  175. background: #fefefe;
  176. border-top: 0.2em solid #dbddec;
  177. padding: 0.5em;
  178. margin: 0.5em 0 .5em 0;
  179. }
  180. div.content {
  181. background: #f5f6f7;
  182. border-top: 0.2em solid #dbddec;
  183. border-bottom: 0.2em solid #dbddec;
  184. padding: 0.5em 0.5em 1em 0.5em;
  185. margin: 0.5em 0 .5em 0;
  186. }
  187. div.installation h3.title, div.content h3.title {
  188. padding-top: 0.3em;
  189. margin: 0;
  190. }
  191. div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
  192. padding-bottom: 0.5em;
  193. }
  194. div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 {
  195. background: #f5f6f7;
  196. border-bottom: .2em solid #dbddec;
  197. border-top: .2em solid #dbddec;
  198. margin-top 1em;
  199. padding: .5em;
  200. text-align: center;
  201. }
  202. div.book h1 {
  203. background: #f5f6f7;
  204. margin: 0px auto;
  205. padding: 0.5em;
  206. }
  207. div.book h2.subtitle {
  208. background: #dbddec;
  209. margin: 0px auto;
  210. padding: 0.2em;
  211. }
  212. div.authorgroup, div p.copyright, div.abstract {
  213. background: #f5f6f7;
  214. margin: 0px auto;
  215. padding: 1em 0.5em;
  216. }
  217. hr {
  218. background: #dbddec;
  219. height: .3em;
  220. border: 0px;
  221. margin: 0px auto;
  222. padding: 0;
  223. }
  224. </xsl:text>
  225. </style>
  226. </xsl:template>
  227. </xsl:stylesheet>