dark.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. /**
  2. * Copyright 2015 The Rust Project Developers. See the COPYRIGHT
  3. * file at the top-level directory of this distribution and at
  4. * http://rust-lang.org/COPYRIGHT.
  5. *
  6. * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  7. * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  8. * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  9. * option. This file may not be copied, modified, or distributed
  10. * except according to those terms.
  11. */
  12. body {
  13. background-color: #353535;
  14. color: #ddd;
  15. }
  16. h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
  17. color: #ddd;
  18. }
  19. h1.fqn {
  20. border-bottom-color: #d2d2d2;
  21. }
  22. h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
  23. border-bottom-color: #d2d2d2;
  24. }
  25. .in-band {
  26. background-color: #353535;
  27. }
  28. .invisible {
  29. background: rgba(0, 0, 0, 0);
  30. }
  31. .docblock p > code, .docblock-short p > code {
  32. background-color: #2A2A2A;
  33. }
  34. pre {
  35. background-color: #2A2A2A;
  36. }
  37. .sidebar {
  38. background-color: #505050;
  39. }
  40. .sidebar .current {
  41. background-color: #333;
  42. }
  43. .source .sidebar {
  44. background-color: #353535;
  45. }
  46. .sidebar .location {
  47. border-color: #fff;
  48. background: #575757;
  49. color: #DDD;
  50. }
  51. .sidebar .version {
  52. border-bottom-color: #DDD;
  53. }
  54. .sidebar-title {
  55. border-top-color: #777;
  56. border-bottom-color: #777;
  57. }
  58. .block a:hover {
  59. background: #444;
  60. }
  61. .line-numbers span { color: #3B91E2; }
  62. .line-numbers .line-highlighted {
  63. background-color: #0a042f !important;
  64. }
  65. .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
  66. border-bottom-color: #DDD;
  67. }
  68. .docblock table {
  69. border-color: #ddd;
  70. }
  71. .docblock table td {
  72. border-top-color: #ddd;
  73. border-bottom-color: #ddd;
  74. }
  75. .docblock table th {
  76. border-top-color: #ddd;
  77. border-bottom-color: #ddd;
  78. }
  79. :target { background: #494a3d; }
  80. :target > .in-band {
  81. background: #494a3d;
  82. }
  83. .content .method .where,
  84. .content .fn .where,
  85. .content .where.fmt-newline {
  86. color: #ddd;
  87. }
  88. .content .highlighted {
  89. color: #eee !important;
  90. background-color: #333;
  91. }
  92. .content .highlighted a, .content .highlighted span { color: #eee !important; }
  93. .content .highlighted.trait { background-color: #013191; }
  94. .content .highlighted.mod,
  95. .content .highlighted.externcrate { background-color: #afc6e4; }
  96. .content .highlighted.mod { background-color: #803a1b; }
  97. .content .highlighted.externcrate { background-color: #396bac; }
  98. .content .highlighted.enum { background-color: #5b4e68; }
  99. .content .highlighted.struct { background-color: #194e9f; }
  100. .content .highlighted.union { background-color: #b7bd49; }
  101. .content .highlighted.fn,
  102. .content .highlighted.method,
  103. .content .highlighted.tymethod { background-color: #4950ed; }
  104. .content .highlighted.type { background-color: #38902c; }
  105. .content .highlighted.foreigntype { background-color: #b200d6; }
  106. .content .highlighted.macro { background-color: #217d1c; }
  107. .content .highlighted.constant,
  108. .content .highlighted.static { background-color: #0063cc; }
  109. .content .highlighted.primitive { background-color: #00708a; }
  110. .content .highlighted.keyword { background-color: #884719; }
  111. .content span.enum, .content a.enum, .block a.current.enum { color: #82b089; }
  112. .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
  113. .content span.type, .content a.type, .block a.current.type { color: #ff7f00; }
  114. .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #dd7de8; }
  115. .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
  116. .content span.union, .content a.union, .block a.current.union { color: #a6ae37; }
  117. .content span.constant, .content a.constant, .block a.current.constant,
  118. .content span.static, .content a.static, .block a.current.static { color: #82a5c9; }
  119. .content span.primitive, .content a.primitive, .block a.current.primitive { color: #43aec7; }
  120. .content span.externcrate,
  121. .content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
  122. .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
  123. .content span.fn, .content a.fn, .block a.current.fn,
  124. .content span.method, .content a.method, .block a.current.method,
  125. .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
  126. .content .fnname{ color: #2BAB63; }
  127. .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
  128. pre.rust .comment { color: #8d8d8b; }
  129. pre.rust .doccomment { color: #8ca375; }
  130. nav {
  131. border-bottom-color: #4e4e4e;
  132. }
  133. nav.main .current {
  134. border-top-color: #eee;
  135. border-bottom-color: #eee;
  136. }
  137. nav.main .separator {
  138. border-color: #eee;
  139. }
  140. a {
  141. color: #ddd;
  142. }
  143. .docblock a:not(.srclink):not(.test-arrow), .docblock-short a:not(.srclink):not(.test-arrow),
  144. .stability a {
  145. color: #D2991D;
  146. }
  147. a.test-arrow {
  148. color: #dedede;
  149. }
  150. .collapse-toggle {
  151. color: #999;
  152. }
  153. .search-input {
  154. color: #111;
  155. box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
  156. background-color: #f0f0f0;
  157. }
  158. .search-input:focus {
  159. border-color: #008dfd;
  160. }
  161. .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #404040; }
  162. .stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #404040; }
  163. .stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #404040; }
  164. .module-item .stab {
  165. color: #ddd;
  166. }
  167. #help > div {
  168. background: #4d4d4d;
  169. border-color: #bfbfbf;
  170. }
  171. #help dt {
  172. border-color: #bfbfbf;
  173. background: rgba(0,0,0,0);
  174. color: black;
  175. }
  176. .since {
  177. color: grey;
  178. }
  179. tr.result span.primitive::after, tr.result span.keyword::after {
  180. color: #ddd;
  181. }
  182. .line-numbers :target { background-color: transparent; }
  183. /* Code highlighting */
  184. pre.rust .kw { color: #ab8ac1; }
  185. pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
  186. pre.rust .number, pre.rust .string { color: #83a300; }
  187. pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
  188. pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
  189. pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
  190. pre.rust .lifetime { color: #d97f26; }
  191. pre.rust .question-mark {
  192. color: #ff9011;
  193. }
  194. a.test-arrow {
  195. background-color: rgba(78, 139, 202, 0.2);
  196. }
  197. a.test-arrow:hover{
  198. background-color: #4e8bca;
  199. }
  200. .toggle-label {
  201. color: #999;
  202. }
  203. :target > code {
  204. background-color: #494a3d;
  205. }
  206. pre.compile_fail {
  207. border-left: 2px solid rgba(255,0,0,.6);
  208. }
  209. pre.compile_fail:hover, .information:hover + pre.compile_fail {
  210. border-left: 2px solid #f00;
  211. }
  212. pre.ignore {
  213. border-left: 2px solid rgba(255,142,0,.6);
  214. }
  215. pre.ignore:hover, .information:hover + pre.ignore {
  216. border-left: 2px solid #ff9200;
  217. }
  218. .tooltip.compile_fail {
  219. color: rgba(255,0,0,.6);
  220. }
  221. .information > .compile_fail:hover {
  222. color: #f00;
  223. }
  224. .tooltip.ignore {
  225. color: rgba(255,142,0,.6);
  226. }
  227. .information > .ignore:hover {
  228. color: rgba(255,142,0,1);
  229. }
  230. .search-failed > a {
  231. color: #0089ff;
  232. }
  233. .tooltip .tooltiptext {
  234. background-color: black;
  235. color: #fff;
  236. }
  237. .tooltip .tooltiptext::after {
  238. border-color: transparent black transparent transparent;
  239. }
  240. .important-traits .tooltip .tooltiptext {
  241. background-color: white;
  242. color: black;
  243. border-color: black;
  244. }
  245. #titles > div {
  246. border-bottom-color: #ccc;
  247. }
  248. #titles > div.selected {
  249. border-bottom-color: #0078ee;
  250. }
  251. #titles > div:hover {
  252. border-bottom-color: #0089ff;
  253. }
  254. #titles > div > div.count {
  255. color: #888;
  256. }
  257. .modal {
  258. background-color: rgba(0,0,0,0.3);
  259. }
  260. .modal-content {
  261. background-color: #272727;
  262. border-color: #999;
  263. }
  264. .modal-content > .close {
  265. background-color: #272727;
  266. border-color: #999;
  267. }
  268. .modal-content > .close:hover {
  269. background-color: #ff1f1f;
  270. color: white;
  271. }
  272. .modal-content > .whiter {
  273. background-color: #272727;
  274. }
  275. .modal-content > .close:hover + .whiter {
  276. background-color: #ff1f1f;
  277. }
  278. @media (max-width: 700px) {
  279. .sidebar-menu {
  280. background-color: #505050;
  281. border-bottom-color: #e0e0e0;
  282. border-right-color: #e0e0e0;
  283. }
  284. .sidebar-elems {
  285. background-color: #505050;
  286. border-right-color: #000;
  287. }
  288. #sidebar-filler {
  289. background-color: #505050;
  290. border-bottom-color: #e0e0e0;
  291. }
  292. }
  293. kbd {
  294. color: #000;
  295. background-color: #fafbfc;
  296. border-color: #d1d5da;
  297. border-bottom-color: #c6cbd1;
  298. box-shadow-color: #c6cbd1;
  299. }
  300. #theme-picker, #settings-menu {
  301. border-color: #e0e0e0;
  302. background: #f0f0f0;
  303. }
  304. #theme-picker:hover, #theme-picker:focus,
  305. #settings-menu:hover, #settings-menu:focus {
  306. border-color: #ffb900;
  307. }
  308. #theme-choices {
  309. border-color: #e0e0e0;
  310. background-color: #353535;
  311. }
  312. #theme-choices > button:not(:first-child) {
  313. border-top-color: #e0e0e0;
  314. }
  315. #theme-choices > button:hover, #theme-choices > button:focus {
  316. background-color: #4e4e4e;
  317. }
  318. @media (max-width: 700px) {
  319. #theme-picker {
  320. background: #f0f0f0;
  321. }
  322. }
  323. #all-types {
  324. background-color: #505050;
  325. }
  326. #all-types:hover {
  327. background-color: #606060;
  328. }
  329. .search-results td span.alias {
  330. color: #fff;
  331. }
  332. .search-results td span.grey {
  333. color: #ccc;
  334. }