docs.css 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{font-size:100%;}
  2. a {outline: none;} /* Gets rid of Firefox's dotted borders */
  3. a img {border: none;} /* Gets rid of IE's blue borders */
  4. body, html {
  5. font-size: 14px;
  6. line-height: 24px;
  7. font-family: "Lato", Helvetica, sans-serif;
  8. color: #454545;
  9. }
  10. header.right, header.left {
  11. cursor: pointer;
  12. z-index: 100;
  13. position: fixed;
  14. top: 0;
  15. height: 35px;
  16. box-sizing: border-box;
  17. -moz-box-sizing: border-box;
  18. }
  19. header.left {
  20. border-bottom: 1px solid rgba(0,0,0,0.1);
  21. border-right: 4px solid rgba(0,0,0,0.1);
  22. background-color: #50484e;
  23. text-align: right;
  24. left: 0;
  25. width: 47%;
  26. }
  27. header.right {
  28. border-bottom: 1px solid rgba(0,0,0,0.1);
  29. border-left: 4px solid rgba(0,0,0,0.1);
  30. background-color: #eee;
  31. text-align: left;
  32. right: 0;
  33. width: 53%;
  34. }
  35. .left h2, .right h2 {
  36. color: #E2A62E;
  37. letter-spacing: 1px;
  38. text-transform: uppercase;
  39. font-size: 14px;
  40. margin: 0;
  41. padding: 6px 10px;
  42. text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  43. }
  44. .right h2 {
  45. color: #5a5157;
  46. text-shadow: 0 -1px 0 #fff;
  47. }
  48. .left .icon {
  49. color: #E2A62E;
  50. cursor: pointer;
  51. font-family: monospace;
  52. font-size: 20px;
  53. display: inline-block;
  54. margin-left: 5px;
  55. }
  56. .icon.show {
  57. display: none;
  58. }
  59. .api, .start {
  60. position: absolute;
  61. top: 0px;
  62. bottom: 0px;
  63. overflow-y: scroll;
  64. overflow-x: hidden;
  65. box-sizing: border-box;
  66. -moz-box-sizing: border-box;
  67. transition: left 300ms;
  68. }
  69. .api.fullscreen {
  70. width: 100%;
  71. }
  72. .start.full {
  73. left: 30px;
  74. width: auto;
  75. }
  76. /** hiding */
  77. .api.hidden {
  78. left: -370px;
  79. width: 400px;
  80. overflow: hidden;
  81. }
  82. .api.hidden > div {
  83. opacity: 0.6;
  84. }
  85. .start {
  86. background-color: #fcfcfc;
  87. width: 53%;
  88. right: 0px;
  89. top: 35px;
  90. text-shadow: 0px -1px 0 #fff;
  91. border-top: 1px solid #fff;
  92. z-index: 99;
  93. color: #645b61;
  94. }
  95. .start h1 {
  96. margin: 0;
  97. background-color: #fff;
  98. font-size: 40px;
  99. line-height: 40px;
  100. padding: 30px 20px;
  101. border-bottom: 1px solid #eee;
  102. color: #5a5157;
  103. border-left: 4px solid #ddd;
  104. }
  105. /** Code stylings */
  106. section.start pre {
  107. font-family: Consolas, Inconsolata, 'Bitstream Vera Sans Mono', Menlo, Monaco, 'Andale Mono', 'Courier New', monospace;
  108. font-size: 12px;
  109. background-color: #474045;
  110. border-left: 4px solid #40393e;
  111. padding: 15px 30px 15px 40px;
  112. color: #e7e0e5;
  113. text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
  114. max-width: 100%;
  115. overflow: auto;
  116. }
  117. /** /code */
  118. h1 a {
  119. color: #5a5157;
  120. text-decoration: none;
  121. transition: color 300ms;
  122. }
  123. h1 a:hover {
  124. color: #745e6d;
  125. }
  126. h1 .title {
  127. color: #fff;
  128. display: inline-block;
  129. font-size: 15px;
  130. text-transform: uppercase;
  131. font-variant: small-caps;
  132. background-color: #E2A62E;
  133. padding: 2px 4px;
  134. line-height: 15px;
  135. border-radius: 2px;
  136. border: 2px solid rgba(0,0,0,0.2);
  137. text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  138. }
  139. .start > p, .start > div {
  140. padding: 5px 30px 5px 40px;
  141. border-left: 4px solid #ddd;
  142. }
  143. .start p.red {
  144. color: #8F4537;
  145. }
  146. .start h2, .start h3, .start h4 {
  147. color: #5a5157;
  148. padding: 12px 25px 5px 25px;
  149. margin: 0;
  150. font-size: 20px;
  151. border-left: 4px solid #ccc;
  152. }
  153. .start h3 {
  154. font-size: 15px;
  155. padding: 12px 25px 5px 25px;
  156. border-bottom: 1px solid #eee;
  157. }
  158. a {
  159. font-weight: 600;
  160. color: #1295D8;
  161. text-decoration: none;
  162. transition: color 200ms;
  163. }
  164. a:hover {
  165. color: #33a2dc;
  166. }
  167. .api {
  168. color: #f5eff3;
  169. font-weight: 300;
  170. top: 35px;
  171. left: 0px;
  172. width: 47%;
  173. border-right: 4px solid #474046;
  174. border-top: 1px solid rgba(255,255,255,0.1);
  175. background-color: #5a5157;
  176. text-shadow: 0px -1px 0 #474045;
  177. z-index: 100;
  178. }
  179. .child {
  180. padding: 10px 0 10px 15px;
  181. }
  182. .bracket {
  183. font-weight: 800;
  184. display: inline-block;
  185. margin: 0 2px;
  186. color: rgba(255,255,255,0.2);
  187. }
  188. .toplevel {
  189. border-bottom: 1px solid rgba(0,0,0,0.1);
  190. padding: 30px 35px;
  191. }
  192. .api:not(:first-child) {
  193. border-top: 1px solid rgba(255,255,255,0.1);
  194. }
  195. .toplevel > .children > .child {
  196. padding-right: 5px;
  197. }
  198. .children {
  199. border-left: 1px solid rgba(0,0,0,0.1);
  200. }
  201. .beta_030 .children {
  202. border-left: 1px solid rgba(233, 97, 81, 0.5);
  203. }
  204. .api div p {
  205. margin: 0 0 5px 0;
  206. }
  207. .child:hover {
  208. background-color: #635960;
  209. }
  210. /** Label stylings */
  211. .tag {
  212. display: inline-block;
  213. background-color: #454545;
  214. border-radius: 2px;
  215. color: rgba(255,255,255,0.8);
  216. line-height: 11px;
  217. padding: 1px 2px;
  218. margin-left: 5px;
  219. font-size: 9px;
  220. letter-spacing: 1px;
  221. font-weight: 600;
  222. font-family: "Lato", Helvetica, sans-serif;
  223. text-transform: uppercase;
  224. border: 1px solid rgba(0,0,0,0.4);
  225. text-shadow: 0px -1px 0px rgba(0,0,0,0.2);
  226. }
  227. .tag.type {
  228. background-color: #757E2B;
  229. }
  230. .tag.beta_030 {
  231. background-color: #E96151;
  232. }
  233. .tag.method, .tag.function {
  234. background-color: #E2A62E;
  235. }
  236. .tag.class, .tag.constructor, .tag.utility {
  237. background-color: #468F81;
  238. }
  239. .tag.error {
  240. background-color: #8F4537;
  241. }
  242. .tag.event {
  243. background-color: #1295D8;
  244. }
  245. .toplevel > .name {
  246. font-size: 20px;
  247. }
  248. /** /Label stylings */
  249. .api .snippet {
  250. color: #a2949d;
  251. border-left: 1px solid #40393e;
  252. border-top: 1px solid #40393e;
  253. border-right: 1px solid #6b666a;
  254. border-bottom: 1px solid #6b666a;
  255. text-shadow: 0 -1px 0 #393438;
  256. font-size: 12px;
  257. font-family: Consolas, Inconsolata, 'Bitstream Vera Sans Mono', Menlo, Monaco, 'Andale Mono', 'Courier New', monospace;
  258. font-weight: 400;
  259. display: inline-block;
  260. background-color: #474045;
  261. padding: 3px 8px;
  262. margin: 5px 0 0 10px;
  263. }
  264. /* We want to be able to use the names as an anchor. */
  265. .api .name {
  266. font-weight: 600;
  267. display: inline-block;
  268. margin-bottom: 5px;
  269. }
  270. .name a {
  271. cursor: pointer;
  272. color: #fff;
  273. text-decoration: none;
  274. transition: color 300ms;
  275. }
  276. .name a:hover {
  277. color: #e7e0e5;
  278. }
  279. /* /name */
  280. .tip, .warn {
  281. opacity: 0.9;
  282. display: block;
  283. background-color: #d1c7be;
  284. font-size: 13px;
  285. line-height: 18px;
  286. border-radius: 2px;
  287. padding: 5px 8px;
  288. border: 2px solid rgba(0,0,0,0.2);
  289. margin: 8px 8px 0 0;
  290. }
  291. .warn {
  292. background-color: #8F4537;
  293. }
  294. .tip {
  295. color: #544e4a;
  296. text-shadow: 0px -1px 0px rgba(255,255,255,0.2);
  297. font-weight: 600;
  298. }
  299. #peer-options-debug .child {
  300. padding: 0 15px;
  301. }
  302. #peer-options-debug .child .description {
  303. display: inline-block;
  304. margin-left: 10px;
  305. }
  306. .start code, .api code {
  307. font-family: Consolas, Inconsolata, 'Bitstream Vera Sans Mono', Menlo, Monaco, 'Andale Mono', 'Courier New', monospace;
  308. border-radius: 2px;
  309. border: 1px solid rgba(255,255,255,0.2);
  310. background: rgba(255,255,255,0.1);
  311. font-size: 12px;
  312. padding: 2px;
  313. }
  314. .start code {
  315. background-color: #f6eee8;
  316. border: 1px solid #d1c7be;
  317. }
  318. .start > .two-col {
  319. padding-left: 0;
  320. padding-right: 0;
  321. }
  322. .two-col .col{
  323. float: left;
  324. width: 50%;
  325. }
  326. .two-col .col.col-header {
  327. font-weight: 600;
  328. box-sizing: border-box;
  329. -moz-box-sizing: border-box;
  330. padding-left: 20px;
  331. padding-right: 20px;
  332. }
  333. .clear {
  334. clear: both;
  335. }