dark.css 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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 code, .docblock-short 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 span.enum, .content a.enum, .block a.current.enum { color: #82b089; }
  111. .content span.struct, .content a.struct, .block a.current.struct { color: #ff794d; }
  112. .content span.type, .content a.type, .block a.current.type { color: #ff7f00; }
  113. .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #dd7de8; }
  114. .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
  115. .content span.union, .content a.union, .block a.current.union { color: #a6ae37; }
  116. .content span.constant, .content a.constant, .block a.current.constant,
  117. .content span.static, .content a.static, .block a.current.static { color: #82a5c9; }
  118. .content span.primitive, .content a.primitive, .block a.current.primitive { color: #43aec7; }
  119. .content span.externcrate,
  120. .content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
  121. .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
  122. .content span.fn, .content a.fn, .block a.current.fn,
  123. .content span.method, .content a.method, .block a.current.method,
  124. .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
  125. .content .fnname{ color: #2BAB63; }
  126. pre.rust .comment { color: #8d8d8b; }
  127. pre.rust .doccomment { color: #8ca375; }
  128. nav {
  129. border-bottom-color: #4e4e4e;
  130. }
  131. nav.main .current {
  132. border-top-color: #eee;
  133. border-bottom-color: #eee;
  134. }
  135. nav.main .separator {
  136. border-color: #eee;
  137. }
  138. a {
  139. color: #ddd;
  140. }
  141. .docblock a, .docblock-short a, .stability a {
  142. color: #D2991D;
  143. }
  144. a.test-arrow {
  145. color: #dedede;
  146. }
  147. .collapse-toggle {
  148. color: #999;
  149. }
  150. .search-input {
  151. color: #111;
  152. box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
  153. background-color: #f0f0f0;
  154. }
  155. .search-input:focus {
  156. border-color: #008dfd;
  157. }
  158. .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #404040; }
  159. .stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #404040; }
  160. .stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #404040; }
  161. .module-item .stab {
  162. color: #ddd;
  163. }
  164. #help > div {
  165. background: #4d4d4d;
  166. border-color: #bfbfbf;
  167. }
  168. #help dt {
  169. border-color: #bfbfbf;
  170. background: rgba(0,0,0,0);
  171. color: black;
  172. }
  173. .since {
  174. color: grey;
  175. }
  176. tr.result span.primitive::after {
  177. color: #ddd;
  178. }
  179. .line-numbers :target { background-color: transparent; }
  180. /* Code highlighting */
  181. pre.rust .kw { color: #ab8ac1; }
  182. pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
  183. pre.rust .number, pre.rust .string { color: #83a300; }
  184. pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
  185. pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
  186. pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
  187. pre.rust .lifetime { color: #d97f26; }
  188. pre.rust .question-mark {
  189. color: #ff9011;
  190. }
  191. a.test-arrow {
  192. background-color: rgba(78, 139, 202, 0.2);
  193. }
  194. a.test-arrow:hover{
  195. background-color: #4e8bca;
  196. }
  197. .toggle-label {
  198. color: #999;
  199. }
  200. :target > code {
  201. background: #FDFFD3;
  202. }
  203. pre.compile_fail {
  204. border-left: 2px solid rgba(255,0,0,.6);
  205. }
  206. pre.compile_fail:hover, .information:hover + pre.compile_fail {
  207. border-left: 2px solid #f00;
  208. }
  209. pre.ignore {
  210. border-left: 2px solid rgba(255,142,0,.6);
  211. }
  212. pre.ignore:hover, .information:hover + pre.ignore {
  213. border-left: 2px solid #ff9200;
  214. }
  215. .tooltip.compile_fail {
  216. color: rgba(255,0,0,.6);
  217. }
  218. .information > .compile_fail:hover {
  219. color: #f00;
  220. }
  221. .tooltip.ignore {
  222. color: rgba(255,142,0,.6);
  223. }
  224. .information > .ignore:hover {
  225. color: rgba(255,142,0,1);
  226. }
  227. .search-failed > a {
  228. color: #0089ff;
  229. }
  230. .tooltip .tooltiptext {
  231. background-color: black;
  232. color: #fff;
  233. }
  234. .tooltip .tooltiptext::after {
  235. border-color: transparent black transparent transparent;
  236. }
  237. .important-traits .tooltip .tooltiptext {
  238. background-color: white;
  239. color: black;
  240. border-color: black;
  241. }
  242. #titles > div {
  243. border-bottom-color: #ccc;
  244. }
  245. #titles > div.selected {
  246. border-bottom-color: #0078ee;
  247. }
  248. #titles > div:hover {
  249. border-bottom-color: #0089ff;
  250. }
  251. #titles > div > div.count {
  252. color: #888;
  253. }
  254. .modal {
  255. background-color: rgba(0,0,0,0.3);
  256. }
  257. .modal-content {
  258. background-color: #272727;
  259. border-color: #999;
  260. }
  261. .modal-content > .close {
  262. background-color: #272727;
  263. border-color: #999;
  264. }
  265. .modal-content > .close:hover {
  266. background-color: #ff1f1f;
  267. color: white;
  268. }
  269. .modal-content > .whiter {
  270. background-color: #272727;
  271. }
  272. .modal-content > .close:hover + .whiter {
  273. background-color: #ff1f1f;
  274. }
  275. @media (max-width: 700px) {
  276. .sidebar-menu {
  277. background-color: #505050;
  278. border-bottom-color: #e0e0e0;
  279. border-right-color: #e0e0e0;
  280. }
  281. .sidebar-elems {
  282. background-color: #505050;
  283. border-right-color: #000;
  284. }
  285. #sidebar-filler {
  286. background-color: #505050;
  287. border-bottom-color: #e0e0e0;
  288. }
  289. }
  290. kbd {
  291. color: #000;
  292. background-color: #fafbfc;
  293. border-color: #d1d5da;
  294. border-bottom-color: #c6cbd1;
  295. box-shadow-color: #c6cbd1;
  296. }
  297. #theme-picker {
  298. border-color: #e0e0e0;
  299. background: #f0f0f0;
  300. }
  301. #theme-picker:hover, #theme-picker:focus {
  302. border-color: #ffb900;
  303. }
  304. #theme-choices {
  305. border-color: #e0e0e0;
  306. background-color: #353535;
  307. }
  308. #theme-choices > button:not(:first-child) {
  309. border-top-color: #e0e0e0;
  310. }
  311. #theme-choices > button:hover, #theme-choices > button:focus {
  312. background-color: #444;
  313. }
  314. @media (max-width: 700px) {
  315. #theme-picker {
  316. background: #f0f0f0;
  317. }
  318. }