dita-ot-doc.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. /* DITA Open Toolkit documentation style */
  2. /****************************************
  3. Basic fonts and typography
  4. ****************************************/
  5. body {
  6. background-color: white;
  7. background-image: -webkit-linear-gradient(left, #eee 0%, #fff 300px); /* Chrome10+,Safari5.1+ */
  8. background-image: -moz-linear-gradient(left, #eee 0%, #fff 300px); /* FF3.6+ */
  9. background-image: linear-gradient(left, #eee 0%, #fff 300px); /* W3C */
  10. color: #212529;
  11. margin: 0;
  12. padding: 1em;
  13. }
  14. /* ↓ header-coderef ↓ */
  15. .header {
  16. font-size: 18pt;
  17. margin: 0;
  18. padding: 0 12px;
  19. }
  20. .header p {
  21. color: #1d365d;
  22. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  23. line-height: 1.3;
  24. margin: 0;
  25. }
  26. .header hr {
  27. border: 0;
  28. border-bottom: 1px solid #eee;
  29. height: 0;
  30. }
  31. /* ↑ end-header-ref ↑ */
  32. body {
  33. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  34. font-size: 1rem;
  35. }
  36. code,
  37. pre,
  38. samp,
  39. .cmdname,
  40. .codeph,
  41. .filepath,
  42. .msgnum,
  43. .option,
  44. .parmname {
  45. color: #6c757d;
  46. font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  47. font-size: 90%;
  48. }
  49. .codeblock .cmdname,
  50. .codeblock .filepath,
  51. .codeblock .msgnum,
  52. .codeblock .option,
  53. .codeblock .parmname,
  54. .codeblock .varname,
  55. pre code {
  56. font-size: inherit;
  57. }
  58. /****************************************
  59. Headings
  60. ****************************************/
  61. h1,
  62. h2,
  63. h3 {
  64. color: #1d365d;
  65. font-size: 12pt;
  66. font-weight: bold;
  67. margin-bottom: 0.75em;
  68. margin-left: 0;
  69. margin-right: 0;
  70. margin-top: 1em;
  71. padding: 0;
  72. }
  73. h1 .filepath,
  74. h2 .filepath,
  75. h3 .filepath {
  76. font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  77. font-weight: bold;
  78. }
  79. h1 .filepath {
  80. color: #1d365d;
  81. }
  82. .sectiontitle {
  83. color: #1d365d;
  84. font-weight: bold;
  85. }
  86. .topictitle1 {
  87. margin-top: 1em;
  88. }
  89. /****************************************
  90. Basic identation, padding, and margins
  91. ****************************************/
  92. main {
  93. margin-left: 300px;
  94. }
  95. blockquote,
  96. li,
  97. p {
  98. line-height: 125%;
  99. margin-bottom: 0.75em;
  100. margin-left: 0;
  101. margin-right: 0;
  102. margin-top: 0.75em;
  103. padding: 0;
  104. }
  105. dd {
  106. line-height: 125%;
  107. margin-bottom: 0.75em;
  108. margin-top: 0.75em;
  109. }
  110. dl {
  111. line-height: 125%;
  112. margin-bottom: 0.75em;
  113. margin-left: 2em;
  114. margin-right: 0;
  115. margin-top: 0.75em;
  116. padding: 0;
  117. }
  118. ol,
  119. ul {
  120. margin-bottom: 0.75em;
  121. margin-left: 2em;
  122. margin-right: 0;
  123. margin-top: 0.75em;
  124. padding: 0;
  125. }
  126. pre {
  127. margin: 10px 0;
  128. padding: 0;
  129. }
  130. /****************************************
  131. Block elements
  132. ****************************************/
  133. .codeblock,
  134. .screen {
  135. background-color: #f5f5f5;
  136. border: 1px solid #ccc;
  137. border-radius: 4px;
  138. padding: 6px;
  139. }
  140. /****************************************
  141. Figures
  142. ****************************************/
  143. figcaption {
  144. font-style: italic;
  145. }
  146. /****************************************
  147. In-line elements
  148. ****************************************/
  149. .cmdname,
  150. .msgnum {
  151. font-weight: bold;
  152. }
  153. /****************************************
  154. Links
  155. ****************************************/
  156. a:link {
  157. color: #3563ab;
  158. text-decoration: none;
  159. }
  160. a:visited {
  161. color: #3563ab;
  162. }
  163. a:active,
  164. a:hover {
  165. color: #1d365d;
  166. text-decoration: underline;
  167. }
  168. .related-links {
  169. color: #555;
  170. }
  171. .linklist {
  172. margin-top: 1em;
  173. }
  174. /****************************************
  175. Notes
  176. ****************************************/
  177. .note {
  178. line-height: 125%;
  179. margin-left: 2em;
  180. margin-right: 0;
  181. padding: 0;
  182. }
  183. .caution,
  184. .notelisttitle,
  185. .note__title {
  186. font-weight: bold;
  187. }
  188. /****************************************
  189. Tables
  190. ****************************************/
  191. table,
  192. .table {
  193. border-color: #dee2e6;
  194. border-style: solid;
  195. border-width: 1px;
  196. font-size: 90%;
  197. margin-bottom: 1em;
  198. margin-top: 1em;
  199. padding: 0.5rem;
  200. }
  201. tr {
  202. border-color: #dee2e6;
  203. padding: 0.5rem;
  204. }
  205. td {
  206. border-color: #dee2e6;
  207. padding: 0.5rem;
  208. }
  209. th {
  210. background-color: #f5f5f5;
  211. padding: 0.5rem;
  212. text-align: left;
  213. }
  214. caption,
  215. figcaption {
  216. color: #6c757d;
  217. padding: 1em 0;
  218. text-align: left;
  219. }
  220. /****************************************
  221. Navigation
  222. ****************************************/
  223. /* ↓ nav-coderef ↓ */
  224. nav[role=toc] {
  225. float: left;
  226. width: 300px;
  227. }
  228. nav[role=toc] li.active > a {
  229. font-weight: bold;
  230. }
  231. /* ↑ end-nav-ref ↑ */
  232. nav[role=toc] > ul {
  233. margin-right: 2em;
  234. }
  235. nav[role=toc] > ul li {
  236. margin-bottom: 0.5em;
  237. margin-top: 0.5em;
  238. }
  239. nav[role=toc] > ul > li ul {
  240. margin-bottom: 0.5em;
  241. margin-left: 1.2em;
  242. margin-top: 0.5em;
  243. }