docbook.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. /* ---------------------------------------------------------------------------
  2. Hue Docs styles
  3. --------------------------------------------------------------------------- */
  4. @import url('https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono:300,400,500,700,900');
  5. body {
  6. background-color: #FFFFFF;
  7. padding: 75px 0 0 0;
  8. font-family: 'Roboto', sans-serif;
  9. color: #333333;
  10. margin: 0;
  11. line-height: 1.1em;
  12. }
  13. hr {
  14. display: none;
  15. }
  16. .section {
  17. border: 1px solid #EEEEEE;
  18. box-shadow: none;
  19. color: #333333;
  20. margin-bottom: 20px;
  21. margin-top: 15px;
  22. padding: 20px;
  23. padding-top: 5px;
  24. position: relative;
  25. }
  26. .title, h1, .toc p, h2 {
  27. color: #0B7FAD;
  28. font-size: 24px;
  29. font-weight: 600;
  30. margin-bottom: 15px;
  31. margin-top: 15px;
  32. }
  33. h2 {
  34. font-size: 20px;
  35. margin-top: 24px;
  36. }
  37. h3 {
  38. font-size: 16px;
  39. font-weight: 600;
  40. }
  41. h1[id], h2[id], h3[id], h4[id], h5[id] {
  42. margin-top: -75px;
  43. padding-top: 75px;
  44. }
  45. a:link, a:visited {
  46. color: #0B7FAD;
  47. text-decoration: none;
  48. }
  49. a:hover {
  50. color: #3799CA;
  51. text-decoration: underline;
  52. }
  53. .table {
  54. margin-top: 20px;
  55. }
  56. table {
  57. border: none !important;
  58. }
  59. table {
  60. max-width: 100%;
  61. background-color: transparent;
  62. border-collapse: collapse;
  63. border-spacing: 0;
  64. }
  65. table {
  66. width: 100%;
  67. margin-bottom: 20px;
  68. }
  69. table th,
  70. table td {
  71. padding: 8px;
  72. line-height: 20px;
  73. text-align: left;
  74. vertical-align: top;
  75. border-top: 1px solid #e5e5e5;
  76. }
  77. table th {
  78. font-weight: bold;
  79. }
  80. table thead th {
  81. vertical-align: bottom;
  82. }
  83. table caption + thead tr:first-child th,
  84. table caption + thead tr:first-child td,
  85. table colgroup + thead tr:first-child th,
  86. table colgroup + thead tr:first-child td,
  87. table thead:first-child tr:first-child th,
  88. table thead:first-child tr:first-child td {
  89. border-top: 0;
  90. }
  91. table tbody + tbody {
  92. border-top: 2px solid #e5e5e5;
  93. }
  94. table {
  95. background-color: #f1f1f1;
  96. }
  97. table {
  98. font-size: 11px;
  99. border: 1px solid #e5e5e5;
  100. border-collapse: separate;
  101. *border-collapse: collapse;
  102. border-left: 0;
  103. -webkit-border-radius: 2px;
  104. -moz-border-radius: 2px;
  105. border-radius: 2px;
  106. }
  107. table th,
  108. table td {
  109. border-left: 1px solid #e5e5e5;
  110. border-bottom: 1px solid #FFFFFF !important;
  111. }
  112. table caption + thead tr:first-child th,
  113. table caption + tbody tr:first-child th,
  114. table caption + tbody tr:first-child td,
  115. table colgroup + thead tr:first-child th,
  116. table colgroup + tbody tr:first-child th,
  117. table colgroup + tbody tr:first-child td,
  118. table thead:first-child tr:first-child th,
  119. table tbody:first-child tr:first-child th,
  120. table tbody:first-child tr:first-child td {
  121. border-top: 0;
  122. }
  123. table thead:first-child tr:first-child > th:first-child,
  124. table tbody:first-child tr:first-child > td:first-child,
  125. table tbody:first-child tr:first-child > th:first-child {
  126. -webkit-border-top-left-radius: 2px;
  127. border-top-left-radius: 2px;
  128. -moz-border-radius-topleft: 2px;
  129. }
  130. table thead:first-child tr:first-child > th:last-child,
  131. table tbody:first-child tr:first-child > td:last-child,
  132. table tbody:first-child tr:first-child > th:last-child {
  133. -webkit-border-top-right-radius: 2px;
  134. border-top-right-radius: 2px;
  135. -moz-border-radius-topright: 2px;
  136. }
  137. table thead:last-child tr:last-child > th:first-child,
  138. table tbody:last-child tr:last-child > td:first-child,
  139. table tbody:last-child tr:last-child > th:first-child,
  140. table tfoot:last-child tr:last-child > td:first-child,
  141. table tfoot:last-child tr:last-child > th:first-child {
  142. -webkit-border-bottom-left-radius: 2px;
  143. border-bottom-left-radius: 2px;
  144. -moz-border-radius-bottomleft: 2px;
  145. }
  146. table thead:last-child tr:last-child > th:last-child,
  147. table tbody:last-child tr:last-child > td:last-child,
  148. table tbody:last-child tr:last-child > th:last-child,
  149. table tfoot:last-child tr:last-child > td:last-child,
  150. table tfoot:last-child tr:last-child > th:last-child {
  151. -webkit-border-bottom-right-radius: 2px;
  152. border-bottom-right-radius: 2px;
  153. -moz-border-radius-bottomright: 2px;
  154. }
  155. table tfoot + tbody:last-child tr:last-child td:first-child {
  156. -webkit-border-bottom-left-radius: 0;
  157. border-bottom-left-radius: 0;
  158. -moz-border-radius-bottomleft: 0;
  159. }
  160. table tfoot + tbody:last-child tr:last-child td:last-child {
  161. -webkit-border-bottom-right-radius: 0;
  162. border-bottom-right-radius: 0;
  163. -moz-border-radius-bottomright: 0;
  164. }
  165. table caption + thead tr:first-child th:first-child,
  166. table caption + tbody tr:first-child td:first-child,
  167. table colgroup + thead tr:first-child th:first-child,
  168. table colgroup + tbody tr:first-child td:first-child {
  169. -webkit-border-top-left-radius: 2px;
  170. border-top-left-radius: 2px;
  171. -moz-border-radius-topleft: 2px;
  172. }
  173. table caption + thead tr:first-child th:last-child,
  174. table caption + tbody tr:first-child td:last-child,
  175. table colgroup + thead tr:first-child th:last-child,
  176. table colgroup + tbody tr:first-child td:last-child {
  177. -webkit-border-top-right-radius: 2px;
  178. border-top-right-radius: 2px;
  179. -moz-border-radius-topright: 2px;
  180. }
  181. table tbody > tr:nth-child(odd) > td,
  182. table tbody > tr:nth-child(odd) > th {
  183. background-color: #f9f9f9;
  184. }
  185. table tbody tr:hover > td,
  186. table tbody tr:hover > th {
  187. background-color: #ffffff;
  188. }
  189. code,
  190. pre {
  191. padding: 0 3px 2px;
  192. font-family: 'Roboto Mono', Monaco, Menlo, Consolas, "Courier New", monospace;
  193. font-size: 11px;
  194. color: #444444;
  195. -webkit-border-radius: 3px;
  196. -moz-border-radius: 3px;
  197. border-radius: 3px;
  198. }
  199. code {
  200. padding: 2px 4px;
  201. color: #d14;
  202. white-space: pre-line;
  203. background-color: #f7f7f9;
  204. border: 1px solid #e1e1e8;
  205. }
  206. pre {
  207. display: block;
  208. padding: 9.5px;
  209. margin: 14px;
  210. font-size: 12px;
  211. line-height: 20px;
  212. word-break: break-all;
  213. word-wrap: break-word;
  214. white-space: pre;
  215. white-space: pre-wrap;
  216. background-color: #f5f5f5;
  217. border: 1px solid #ccc;
  218. border: 1px solid rgba(0, 0, 0, 0.15);
  219. -webkit-border-radius: 2px;
  220. -moz-border-radius: 2px;
  221. border-radius: 2px;
  222. }
  223. .toc .section {
  224. border: none;
  225. }
  226. .toc {
  227. background-color: #F6F6F6;
  228. padding: 10px;
  229. padding-top: 0;
  230. position: fixed;
  231. overflow-y: auto;
  232. height: calc(100% - 85px);
  233. width: 22%;
  234. }
  235. .toc > ul {
  236. margin-top: 50px;
  237. }
  238. .toc ul {
  239. margin-left: 10px;
  240. list-style: none;
  241. }
  242. .toc-filter-container {
  243. padding-top: 10px;
  244. background-color: #F6F6F6;
  245. width: 21%;
  246. position: fixed;
  247. }
  248. .toc-filter {
  249. width: 100%;
  250. }
  251. .note {
  252. background-color: #fcf8e3;
  253. border: 1px solid #fbeed5;
  254. border-left-width: 5px;
  255. padding: 10px;
  256. }
  257. .doc-title {
  258. position: fixed;
  259. background-color: #FFF;
  260. z-index: 1000;
  261. padding-left: 30px;
  262. top: 0;
  263. border-top: 3px solid #287DBD;
  264. }
  265. .article {
  266. padding: 0 30px;
  267. }
  268. .article>.titlepage:first-child {
  269. position: fixed;
  270. background-color: #FFF;
  271. z-index: 1000;
  272. padding-left: 30px;
  273. top: 0;
  274. border-top: 3px solid #287DBD;
  275. width: 100%;
  276. margin-left: -30px;
  277. }
  278. .article>.titlepage:first-child img, .doc-title img {
  279. width: 115px;
  280. height: 29px;
  281. }
  282. .doc-title h1 {
  283. margin-top: 8px;
  284. }
  285. a.highlighted {
  286. text-decoration: underline;
  287. font-weight: bold;
  288. }