docbook.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /* ---------------------------------------------------------------------------
  2. Hue Docs styles
  3. --------------------------------------------------------------------------- */
  4. body {
  5. background-color: #FFFFFF;
  6. border-top: 3px solid #287DBD;
  7. padding: 30px;
  8. font-family: 'Open Sans',sans-serif;
  9. color: #333333;
  10. margin:0;
  11. line-height: 1.1em;
  12. }
  13. hr {
  14. border-color: #EEEEEE -moz-use-text-color #FFFFFF;
  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. a:link, a:visited {
  44. color: #0B7FAD;
  45. text-decoration: none;
  46. }
  47. a:hover {
  48. color: #3799CA;
  49. text-decoration: underline;
  50. }
  51. .table {
  52. margin-top: 20px;
  53. }
  54. table {
  55. border: none!important;
  56. }
  57. table {
  58. max-width: 100%;
  59. background-color: transparent;
  60. border-collapse: collapse;
  61. border-spacing: 0;
  62. }
  63. table {
  64. width: 100%;
  65. margin-bottom: 20px;
  66. }
  67. table th,
  68. table td {
  69. padding: 8px;
  70. line-height: 20px;
  71. text-align: left;
  72. vertical-align: top;
  73. border-top: 1px solid #e5e5e5;
  74. }
  75. table th {
  76. font-weight: bold;
  77. }
  78. table thead th {
  79. vertical-align: bottom;
  80. }
  81. table caption + thead tr:first-child th,
  82. table caption + thead tr:first-child td,
  83. table colgroup + thead tr:first-child th,
  84. table colgroup + thead tr:first-child td,
  85. table thead:first-child tr:first-child th,
  86. table thead:first-child tr:first-child td {
  87. border-top: 0;
  88. }
  89. table tbody + tbody {
  90. border-top: 2px solid #e5e5e5;
  91. }
  92. table {
  93. background-color: #f1f1f1;
  94. }
  95. table {
  96. border: 1px solid #e5e5e5;
  97. border-collapse: separate;
  98. *border-collapse: collapse;
  99. border-left: 0;
  100. -webkit-border-radius: 2px;
  101. -moz-border-radius: 2px;
  102. border-radius: 2px;
  103. }
  104. table th,
  105. table td {
  106. border-left: 1px solid #e5e5e5;
  107. border-bottom: 1px solid #FFFFFF!important;
  108. }
  109. table caption + thead tr:first-child th,
  110. table caption + tbody tr:first-child th,
  111. table caption + tbody tr:first-child td,
  112. table colgroup + thead tr:first-child th,
  113. table colgroup + tbody tr:first-child th,
  114. table colgroup + tbody tr:first-child td,
  115. table thead:first-child tr:first-child th,
  116. table tbody:first-child tr:first-child th,
  117. table tbody:first-child tr:first-child td {
  118. border-top: 0;
  119. }
  120. table thead:first-child tr:first-child > th:first-child,
  121. table tbody:first-child tr:first-child > td:first-child,
  122. table tbody:first-child tr:first-child > th:first-child {
  123. -webkit-border-top-left-radius: 2px;
  124. border-top-left-radius: 2px;
  125. -moz-border-radius-topleft: 2px;
  126. }
  127. table thead:first-child tr:first-child > th:last-child,
  128. table tbody:first-child tr:first-child > td:last-child,
  129. table tbody:first-child tr:first-child > th:last-child {
  130. -webkit-border-top-right-radius: 2px;
  131. border-top-right-radius: 2px;
  132. -moz-border-radius-topright: 2px;
  133. }
  134. table thead:last-child tr:last-child > th:first-child,
  135. table tbody:last-child tr:last-child > td:first-child,
  136. table tbody:last-child tr:last-child > th:first-child,
  137. table tfoot:last-child tr:last-child > td:first-child,
  138. table tfoot:last-child tr:last-child > th:first-child {
  139. -webkit-border-bottom-left-radius: 2px;
  140. border-bottom-left-radius: 2px;
  141. -moz-border-radius-bottomleft: 2px;
  142. }
  143. table thead:last-child tr:last-child > th:last-child,
  144. table tbody:last-child tr:last-child > td:last-child,
  145. table tbody:last-child tr:last-child > th:last-child,
  146. table tfoot:last-child tr:last-child > td:last-child,
  147. table tfoot:last-child tr:last-child > th:last-child {
  148. -webkit-border-bottom-right-radius: 2px;
  149. border-bottom-right-radius: 2px;
  150. -moz-border-radius-bottomright: 2px;
  151. }
  152. table tfoot + tbody:last-child tr:last-child td:first-child {
  153. -webkit-border-bottom-left-radius: 0;
  154. border-bottom-left-radius: 0;
  155. -moz-border-radius-bottomleft: 0;
  156. }
  157. table tfoot + tbody:last-child tr:last-child td:last-child {
  158. -webkit-border-bottom-right-radius: 0;
  159. border-bottom-right-radius: 0;
  160. -moz-border-radius-bottomright: 0;
  161. }
  162. table caption + thead tr:first-child th:first-child,
  163. table caption + tbody tr:first-child td:first-child,
  164. table colgroup + thead tr:first-child th:first-child,
  165. table colgroup + tbody tr:first-child td:first-child {
  166. -webkit-border-top-left-radius: 2px;
  167. border-top-left-radius: 2px;
  168. -moz-border-radius-topleft: 2px;
  169. }
  170. table caption + thead tr:first-child th:last-child,
  171. table caption + tbody tr:first-child td:last-child,
  172. table colgroup + thead tr:first-child th:last-child,
  173. table colgroup + tbody tr:first-child td:last-child {
  174. -webkit-border-top-right-radius: 2px;
  175. border-top-right-radius: 2px;
  176. -moz-border-radius-topright: 2px;
  177. }
  178. table tbody > tr:nth-child(odd) > td,
  179. table tbody > tr:nth-child(odd) > th {
  180. background-color: #f9f9f9;
  181. }
  182. table tbody tr:hover > td,
  183. table tbody tr:hover > th {
  184. background-color: #ffffff;
  185. }
  186. code,
  187. pre {
  188. padding: 0 3px 2px;
  189. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  190. font-size: 11px;
  191. color: #444444;
  192. -webkit-border-radius: 3px;
  193. -moz-border-radius: 3px;
  194. border-radius: 3px;
  195. }
  196. code {
  197. padding: 2px 4px;
  198. color: #d14;
  199. white-space: pre-line;
  200. background-color: #f7f7f9;
  201. border: 1px solid #e1e1e8;
  202. }
  203. pre {
  204. display: block;
  205. padding: 9.5px;
  206. margin: 14px;
  207. font-size: 12px;
  208. line-height: 20px;
  209. word-break: break-all;
  210. word-wrap: break-word;
  211. white-space: pre;
  212. white-space: pre-wrap;
  213. background-color: #f5f5f5;
  214. border: 1px solid #ccc;
  215. border: 1px solid rgba(0, 0, 0, 0.15);
  216. -webkit-border-radius: 2px;
  217. -moz-border-radius: 2px;
  218. border-radius: 2px;
  219. }
  220. .toc .section {
  221. border: none;
  222. }
  223. .toc {
  224. background-color: #F6F6F6;
  225. padding: 10px;
  226. }
  227. .note {
  228. background-color: #fcf8e3;
  229. border: 1px solid #fbeed5;
  230. border-left-width: 5px;
  231. padding: 10px;
  232. }