custom.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. html {
  2. background:#f2f7fc;
  3. }
  4. body {
  5. min-width: 320px;
  6. display: flex;
  7. flex-flow: column;
  8. }
  9. blockquote {
  10. border-left: 4px solid #ccc;
  11. font-style:italic;
  12. box-sizing: border-box;
  13. padding:0 10px;
  14. }
  15. header {
  16. position:fixed;
  17. height:4.5em;
  18. z-index: 1;
  19. border-bottom:1px solid #cfe4f9;
  20. max-width: none;
  21. width: 100%;
  22. padding:0;
  23. margin:0;
  24. background:#fff;
  25. }
  26. header .header-content:after {
  27. content: "";
  28. display: table;
  29. clear: both;
  30. }
  31. header .title {
  32. float: left;
  33. text-align:left;
  34. font-family: "Museo 100", sans-serif;
  35. font-weight: bold;
  36. margin:0;
  37. padding:0;
  38. width:400px;
  39. }
  40. header .title a {
  41. color:#ff4143;
  42. text-decoration: none;
  43. }
  44. header .search {
  45. float:left;
  46. text-align:right;
  47. width:calc(100% - 480px);
  48. padding-right:.3em;
  49. }
  50. .banner {
  51. max-width: 100%;
  52. }
  53. #doc-search {
  54. font-family: "Museo Sans 500", sans-serif;
  55. font-weight: normal;
  56. font-size: 16px;
  57. border:1px solid #e8e8e8;
  58. background-color:#f4f4f4;
  59. padding:.5em 1em;
  60. margin-left:.3em;
  61. border-radius: .3em;
  62. }
  63. header .versions {
  64. float:left;
  65. display:none;
  66. font-family: "Museo Sans 500", sans-serif;
  67. font-weight: normal;
  68. }
  69. header .versions h2 {
  70. font-family: "Museo Sans 500", sans-serif;
  71. font-weight: normal;
  72. font-size: 16px;
  73. background:#1672ce;
  74. color:#fff;
  75. margin:0;
  76. width: 75px;
  77. text-align: center;
  78. border-radius: .3em;
  79. margin-bottom:.4em;
  80. padding:.5em .3em;
  81. cursor: pointer;
  82. transition: 0.3s;
  83. }
  84. header .versions h2:hover {
  85. background: #0a64bf;
  86. }
  87. header .versions ul {
  88. display:none;
  89. margin:0;
  90. padding:0;
  91. list-style:none;
  92. width: 75px;
  93. }
  94. header .versions .show {
  95. display:block;
  96. }
  97. header .versions li {
  98. margin:0;
  99. padding:0;
  100. text-align: center;
  101. }
  102. header .versions a {
  103. display:block;
  104. margin:0;
  105. padding:.5em .3em;
  106. text-decoration:none;
  107. color:#1672ce;
  108. background: #fff;
  109. border:solid #c7c7c7;
  110. border-width:0 1px 1px;
  111. }
  112. header .versions a:hover {
  113. background:#f1f1f1;
  114. }
  115. header .versions li:first-of-type a {
  116. border-top-width: 1px;
  117. border-radius:.3em .3em 0 0;
  118. }
  119. header .versions li:last-of-type a {
  120. border-radius:0 0 .3em .3em;
  121. }
  122. label[for=menu] {
  123. position:fixed;
  124. z-index: 2;
  125. top:20px;
  126. right:0;
  127. display:inline-block;
  128. box-sizing: border-box;
  129. background:transparent;
  130. color:#1672ce;
  131. width:50px;
  132. font-size:30px;
  133. line-height: 1;
  134. padding:0;
  135. margin:0;
  136. }
  137. label[for=menu]:hover {
  138. background:transparent;
  139. color:#1672ce;
  140. }
  141. main {
  142. padding-top:4em;
  143. background:none;
  144. }
  145. /* ---------- header automatic permalink -----------*/
  146. .header-permalink {
  147. text-decoration: none;
  148. color:transparent;
  149. font-size:.8em;
  150. vertical-align: super;
  151. }
  152. .header-permalink:hover,
  153. h1:hover .header-permalink,
  154. h2:hover .header-permalink,
  155. h3:hover .header-permalink,
  156. h4:hover .header-permalink,
  157. h5:hover .header-permalink {
  158. text-decoration: none;
  159. color:#777;
  160. }
  161. h4 {
  162. font-variant: small-caps;
  163. font-size:1em;
  164. }
  165. main article p {
  166. max-width: 840px;
  167. }
  168. main article a {
  169. color:#1672ce;
  170. }
  171. main article p code,
  172. main article li code,
  173. main article div > code {
  174. font-family: Consolas,Monaco,'Andale Mono',monospace;
  175. font-size: 17px;
  176. line-height: 100%;
  177. color:#1672ce;
  178. background: #fff;
  179. border:none;
  180. }
  181. main article p img {
  182. box-sizing: border-box;
  183. margin:.3em;
  184. padding:0;
  185. display: block;
  186. }
  187. main article p a img {
  188. box-sizing: border-box;
  189. margin:0;
  190. padding:0;
  191. display:inline;
  192. }
  193. main article hr {
  194. border: 1px solid #d9e0e6;
  195. }
  196. footer {
  197. border-top:1px solid #cfe4f9;
  198. background:#fff;
  199. max-width: none;
  200. text-align:center;
  201. color:#a1a1a1;
  202. }
  203. footer span a {
  204. color:#007ec6;
  205. }
  206. main menu .menu-section {
  207. border-bottom:1px dashed #cfe4f9;
  208. padding-bottom:1em;
  209. }
  210. main menu .menu-section:last-of-type {
  211. border-bottom:none;
  212. }
  213. main menu h2 {
  214. margin-top:1.5em;
  215. padding-left:.7em;
  216. color:#2b3d50;
  217. font-size:1em;
  218. font-weight: bold;
  219. text-transform: none;
  220. box-shadow: none;
  221. }
  222. main menu ul li a {
  223. border-radius:.1em;
  224. font-size:1em;
  225. margin:.2em;
  226. padding:.6em;
  227. color:#1672ce;
  228. }
  229. main menu ul li a:hover {
  230. color:#1672ce;
  231. padding:.6em;
  232. background:transparent;
  233. text-decoration: underline;
  234. }
  235. main menu ul li.selected {
  236. background: none;
  237. }
  238. main menu ul li.selected a {
  239. color:#fff;
  240. background:#1672ce;
  241. padding:.6em;
  242. }
  243. main menu ul li.selected a:hover {
  244. text-decoration: none;
  245. }
  246. pre {
  247. border-width:0 0 0 4px;
  248. background: #fff;
  249. width: fit-content;
  250. max-width: 100%;
  251. }
  252. main article table {
  253. width: initial;
  254. max-width: 100%;
  255. }
  256. table {
  257. border:1px solid #eee;
  258. background: #fff;
  259. box-shadow:0 6px 6px 0 rgba(80, 88, 94, .24);
  260. }
  261. table th,
  262. table th > * {
  263. color:#fff;
  264. background: #1672ce;
  265. }
  266. @media screen and (max-width: 420px) {
  267. table {
  268. display: flex;
  269. flex-direction: column;
  270. justify-content: space-between;
  271. font-size: 0.9rem;
  272. }
  273. }
  274. @media screen and (max-width: 375px) {
  275. main article table td {
  276. padding: 2px 5px 2px 2px;
  277. }
  278. thead tr {
  279. font-size: 0.8rem;
  280. }
  281. }
  282. header .logo .name {
  283. font-size: 1.6rem;
  284. line-height: 100%;
  285. margin: 0 !important;
  286. }
  287. @media screen and (min-width: 768px) {
  288. header .logo .name {
  289. font-size: 2.5rem;
  290. }
  291. }
  292. @media screen and (min-width: 1024px) {
  293. header .logo .name {
  294. font-size: 3rem;
  295. }
  296. }
  297. header .logo em {
  298. color: #777;
  299. font-style: normal;
  300. }
  301. @media screen and (max-width: 549px) {
  302. header {
  303. padding: 25px 0 20px 10px;
  304. }
  305. menu {
  306. text-align: center;
  307. }
  308. header .logo {
  309. text-align: left;
  310. }
  311. }
  312. @media screen and (min-width: 550px) {
  313. header {
  314. background:#fff;
  315. }
  316. header .header-content {
  317. box-sizing: border-box;
  318. padding:1em;
  319. }
  320. header .versions {
  321. display: block;
  322. }
  323. label[for=menu] {
  324. display:none;
  325. }
  326. main {
  327. background: none;
  328. }
  329. main menu {
  330. border-right: 1px dashed #cfe4f9;
  331. }
  332. main menu .versions-small {
  333. display:none;
  334. }
  335. main article p,
  336. main article li {
  337. font-size:.9em;
  338. }
  339. }
  340. @media screen and (max-width: 750px) {
  341. #doc-search {
  342. display: none;
  343. }
  344. }
  345. @media screen and (min-width: 850px) {
  346. main article {
  347. max-width: none;
  348. }
  349. }
  350. h2 code {
  351. font-size: 0.8em;
  352. }
  353. .features ul {
  354. list-style-type: none;
  355. }
  356. :target:before {
  357. content: ' ';
  358. display: block;
  359. padding-top: 100px;
  360. margin-top: -100px;
  361. visibility: hidden;
  362. }