docbook.css 6.3 KB

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