dr.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. html, body {
  2. height: 100%;
  3. margin: 0;
  4. padding: 0;
  5. }
  6. #dr-js {
  7. background: #999;
  8. margin: 0;
  9. padding: 0;
  10. overflow-y: hidden;
  11. }
  12. #src-dr-js {
  13. background: #000;
  14. margin: 1em;
  15. padding: 0;
  16. }
  17. .dr-doc {
  18. background: #eee;
  19. border-right: solid #eee 3px;
  20. float: right;
  21. font: 300 16px/1.4 "Myriad Pro", "Helvetica Neue", Helvetica, "Arial Unicode MS", Arial, sans-serif;
  22. height: 100%;
  23. margin: 0;
  24. overflow: auto;
  25. padding: 0 30px;
  26. width: 800px;
  27. }
  28. .dr-toc {
  29. margin: 0;
  30. padding: 0 16px;
  31. background: #ddd;
  32. list-style: none;
  33. font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
  34. overflow: auto;
  35. border-right: solid #ddd 3px;
  36. height: 100%;
  37. float: right;
  38. width: 240px;
  39. }
  40. #dr {
  41. margin: 0 auto;
  42. width: 1152px;
  43. height: 100%;
  44. }
  45. ::-moz-selection {
  46. background: #c00;
  47. color: #fff;
  48. }
  49. ::selection {
  50. background: #c00;
  51. color: #fff;
  52. }
  53. .dr-doc code,
  54. .dr-type em,
  55. .dr-returns em,
  56. .dr-property em {
  57. font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
  58. }
  59. pre.code code {
  60. color: #fff;
  61. }
  62. pre.code {
  63. background: #333;
  64. color: #fff;
  65. overflow-x: auto;
  66. padding: 16px 30px;
  67. margin: 0 -30px;
  68. }
  69. code b {
  70. color: #e9df8f;
  71. font-weight: normal;
  72. }
  73. code i,
  74. code i *,
  75. code i .d {
  76. color: #8b9967;
  77. font-style: normal;
  78. }
  79. code .s {
  80. color: #e7be61;
  81. }
  82. code .d {
  83. color: #cf6a4c;
  84. }
  85. code .c,
  86. code .c * {
  87. color: #999;
  88. font-style: italic;
  89. }
  90. em.amp {
  91. font-family: Baskerville, "Goudy Old Style", Palatino, "Book Antiqua", serif;
  92. font-style: italic;
  93. }
  94. dl.dr-parameters {
  95. margin: 8px 0;
  96. }
  97. dt.dr-param {
  98. color: #666;
  99. font-weight: 400;
  100. float: left;
  101. margin-right: 16px;
  102. min-width: 160px;
  103. }
  104. dd.dr-type {
  105. margin: 0;
  106. }
  107. dd.dr-description {
  108. display: table;
  109. min-height: 24px;
  110. border: solid 1px #eee;
  111. }
  112. .dr-type {
  113. float: left;
  114. }
  115. .dr-type em,
  116. .dr-returns em,
  117. .dr-property em {
  118. -moz-border-radius: 5px;
  119. -webkit-border-radius: 5px;
  120. background: #ccc;
  121. border-radius: 5px;
  122. float: left;
  123. font-size: .75em;
  124. font-style: normal;
  125. font-weight: 700;
  126. margin: 0 8px 0 0;
  127. min-width: 80px;
  128. padding: 2px 5px;
  129. text-align: center;
  130. }
  131. .dr-type em.amp,
  132. .dr-returns em.amp,
  133. .dr-property em.amp {
  134. float: none;
  135. background: none;
  136. font-size: 1em;
  137. font-weight: 400;
  138. font-style: italic;
  139. margin: 0;
  140. padding: 0;
  141. min-width: 0;
  142. }
  143. .dr-property em.dr-type {
  144. margin: 4px 16px 0 0;
  145. }
  146. em.dr-type-string {
  147. background: #e1edb1;
  148. color: #3d4c00;
  149. }
  150. em.dr-type-object {
  151. background: #edb1b1;
  152. color: #4c0000;
  153. }
  154. em.dr-type-function {
  155. background: #cfb1ed;
  156. color: #26004c;
  157. }
  158. em.dr-type-number {
  159. background: #b1c9ed;
  160. color: #001e4c;
  161. }
  162. em.dr-type-boolean {
  163. background: #b1edc9;
  164. color: #004c1e;
  165. }
  166. em.dr-type-array {
  167. background: #edd5b1;
  168. color: #4c2d00;
  169. }
  170. dd.dr-optional {
  171. display: none;
  172. }
  173. ol.dr-json {
  174. background: #ddd;
  175. list-style: none;
  176. margin: 0 -30px;
  177. padding: 16px 30px;
  178. }
  179. ol.dr-json .dr-json-key {
  180. float: left;
  181. min-width: 50px;
  182. margin-right: 16px;
  183. }
  184. ol.dr-json .dr-json-description {
  185. display: table;
  186. }
  187. ol.dr-json ol.dr-json {
  188. margin: 0;
  189. padding: 0 0 0 50px;
  190. }
  191. h1 {
  192. font-weight: 400;
  193. font-size: 2.6em;
  194. margin: 0;
  195. }
  196. h2, h3, h4, h5 {
  197. margin: 1em 0 .5em 0;
  198. padding: 6px 0 0;
  199. font-weight: 600;
  200. position: relative;
  201. }
  202. h5 {
  203. font-size: 18px;
  204. }
  205. h4 {
  206. font-size: 20px;
  207. }
  208. h3 {
  209. font-size: 28px;
  210. }
  211. h2 {
  212. font-size: 38px;
  213. }
  214. h2.dr-method,
  215. h3.dr-method,
  216. h4.dr-method,
  217. h5.dr-method {
  218. color: #900;
  219. }
  220. h2.dr-property,
  221. h3.dr-property,
  222. h4.dr-property,
  223. h5.dr-property {
  224. color: #009;
  225. }
  226. i.dr-trixie {
  227. border: solid 10px #eee;
  228. border-left-color: #999;
  229. height: 0;
  230. margin-left: -30px;
  231. margin-top: -10px;
  232. overflow: hidden;
  233. position: absolute;
  234. top: 50%;
  235. width: 0;
  236. }
  237. p.header {
  238. font-size: 19px;
  239. font-weight: 600;
  240. margin: 1em 0 .3em;
  241. }
  242. .dr-returns {
  243. margin-top: 16px;
  244. }
  245. .dr-returns .dr-title {
  246. float: left;
  247. margin-right: 16px;
  248. width: 160px;
  249. }
  250. .dr-toc a {
  251. display: block;
  252. text-decoration: none;
  253. color: #333;
  254. padding-top: 8px;
  255. position: relative;
  256. z-index: 1000;
  257. }
  258. .dr-toc li.dr-lvl1 a {
  259. padding-left: 1em;
  260. }
  261. .dr-toc li.dr-lvl2 a {
  262. padding-left: 2em;
  263. }
  264. .dr-toc li.dr-lvl3 a {
  265. padding-left: 3em;
  266. }
  267. .dr-toc li.dr-lvl4 a {
  268. padding-left: 4em;
  269. }
  270. .dr-toc li.dr-lvl5 a {
  271. padding-left: 5em;
  272. }
  273. .dr-toc li.dr-lvl6 a {
  274. padding-left: 6em;
  275. }
  276. .dr-toc a.dr-property {
  277. color: #339;
  278. }
  279. .dr-toc a.dr-method {
  280. color: #933;
  281. }
  282. .dr-toc a:hover {
  283. text-shadow: 0 0 2px #333;
  284. }
  285. .dr-toc a.dr-property:hover {
  286. text-shadow: 0 0 2px #66c;
  287. }
  288. .dr-toc a.dr-method:hover {
  289. text-shadow: 0 0 2px #c66;
  290. }
  291. a.dr-hash,
  292. a.dr-sourceline {
  293. -webkit-transition: opacity 0.2s linear;
  294. color: #333;
  295. font-family: Menlo, "Arial Unicode MS", sans-serif;
  296. margin: 0 0 0 .3em;
  297. opacity: 0;
  298. text-decoration: none;
  299. }
  300. a.dr-link {
  301. position: relative;
  302. color: #3875c0;
  303. }
  304. a.dr-link:hover {
  305. text-shadow: 0 1px 2px #999;
  306. bottom: 1px;
  307. padding-bottom: 1px;
  308. }
  309. a.dr-link:visited {
  310. color: #7051bc;
  311. }
  312. h2:hover a.dr-hash,
  313. h3:hover a.dr-hash,
  314. h4:hover a.dr-hash,
  315. h5:hover a.dr-hash,
  316. h2:hover a.dr-sourceline,
  317. h3:hover a.dr-sourceline,
  318. h4:hover a.dr-sourceline,
  319. h5:hover a.dr-sourceline {
  320. opacity: 1;
  321. }
  322. p {
  323. margin: 0 0 .5em;
  324. }
  325. .dr-source-line {
  326. margin: 0;
  327. }
  328. .dr-source-line a {
  329. -webkit-border-radius: 5px;
  330. -webkit-border-radius: 5px;
  331. -moz-border-radius: 5px;
  332. -moz-border-radius: 5px;
  333. border-radius: 5px;
  334. border-radius: 5px;
  335. color: #000;
  336. background: #999;
  337. font-weight: 400;
  338. font-size: .75em;
  339. text-decoration: none;
  340. padding: 5px;
  341. }
  342. #src-dr-js code {
  343. background: #000;
  344. display: block;
  345. color: #fff;
  346. font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
  347. white-space: pre;
  348. padding-left: 100px;
  349. position: relative;
  350. line-height: 1.2;
  351. }
  352. #src-dr-js code:hover {
  353. background: #333;
  354. }
  355. #src-dr-js code:hover .ln {
  356. color: #fff;
  357. }
  358. #src-dr-js code .ln {
  359. position: absolute;
  360. left: 0;
  361. color: #333;
  362. width: 70px;
  363. text-align: right;
  364. }
  365. /*Scrollbar*/
  366. .dr-doc::-webkit-scrollbar,
  367. .dr-toc::-webkit-scrollbar {
  368. width: 7px;
  369. height: 9px;
  370. }
  371. .dr-doc::-webkit-scrollbar-button:start:decrement,
  372. .dr-doc::-webkit-scrollbar-button:end:increment,
  373. .dr-toc::-webkit-scrollbar-button:start:decrement,
  374. .dr-toc::-webkit-scrollbar-button:end:increment {
  375. display: block;
  376. height: 0;
  377. background-color: transparent;
  378. }
  379. .dr-doc::-webkit-scrollbar-track-piece,
  380. .dr-toc::-webkit-scrollbar-track-piece {
  381. -webkit-border-radius: 0;
  382. -webkit-border-bottom-right-radius: 4px;
  383. -webkit-border-bottom-left-radius: 4px;
  384. }
  385. .dr-doc::-webkit-scrollbar-thumb:vertical,
  386. .dr-toc::-webkit-scrollbar-thumb:vertical {
  387. height: 50px;
  388. background-color: rgba(0, 0, 0, 0.2);
  389. -webkit-border-radius: 4px;
  390. }
  391. .dr-doc::-webkit-scrollbar-thumb:horizontal,
  392. .dr-toc::-webkit-scrollbar-thumb:horizontal {
  393. width: 50px;
  394. background-color: rgba(0, 0, 0, 0.2);
  395. -webkit-border-radius: 4px;
  396. }