]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/css/themes/dark.css
Check that RPITs constrained by a recursive call in a closure are compatible
[rust.git] / src / librustdoc / html / static / css / themes / dark.css
1 :root {
2         --main-background-color: #353535;
3         --main-color: #ddd;
4         --settings-input-color: #2196f3;
5         --sidebar-background-color: #505050;
6         --sidebar-background-color-hover: #676767;
7         --code-block-background-color: #2A2A2A;
8         --scrollbar-track-background-color: #717171;
9         --scrollbar-thumb-background-color: rgba(32, 34, 37, .6);
10         --scrollbar-color: rgba(32,34,37,.6) #5a5a5a;
11         --headings-border-bottom-color: #d2d2d2;
12 }
13
14 .slider {
15         background-color: #ccc;
16 }
17 .slider:before {
18         background-color: white;
19 }
20 input:focus + .slider {
21         box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
22 }
23
24 .in-band {
25         background-color: #353535;
26 }
27
28 .rust-logo {
29         filter: drop-shadow(1px 0 0px #fff)
30                 drop-shadow(0 1px 0 #fff)
31                 drop-shadow(-1px 0 0 #fff)
32                 drop-shadow(0 -1px 0 #fff)
33 }
34
35 .sidebar .current,
36 .sidebar a:hover {
37         background: #444;
38 }
39
40 .line-numbers span { color: #3B91E2; }
41 .line-numbers .line-highlighted {
42         background-color: #0a042f !important;
43 }
44
45 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
46         border-bottom-color: #DDD;
47 }
48
49 .docblock table td, .docblock table th {
50         border-color: #ddd;
51 }
52
53 .search-results a:hover {
54         background-color: #777;
55 }
56
57 .search-results a:focus {
58         color: #eee !important;
59         background-color: #616161;
60 }
61 .search-results a:focus span { color: #eee !important; }
62 a.result-trait:focus { background-color: #013191; }
63 a.result-traitalias:focus { background-color: #013191; }
64 a.result-mod:focus,
65 a.result-externcrate:focus { background-color: #884719; }
66 a.result-enum:focus { background-color: #194e9f; }
67 a.result-struct:focus { background-color: #194e9f; }
68 a.result-union:focus { background-color: #194e9f; }
69 a.result-fn:focus,
70 a.result-method:focus,
71 a.result-tymethod:focus { background-color: #4950ed; }
72 a.result-type:focus { background-color: #194e9f; }
73 a.result-associatedtype:focus { background-color: #884719; }
74 a.result-foreigntype:focus { background-color: #194e9f; }
75 a.result-attr:focus,
76 a.result-derive:focus,
77 a.result-macro:focus { background-color: #217d1c; }
78 a.result-constant:focus,
79 a.result-static:focus { background-color: #884719; }
80 a.result-primitive:focus { background-color: #194e9f; }
81 a.result-keyword:focus { background-color: #884719; }
82
83 .content .item-info::before { color: #ccc; }
84
85 .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
86 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
87 .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
88 .content span.associatedtype,
89 .content a.associatedtype,
90 .block a.current.associatedtype { color: #D2991D; }
91 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
92 .content span.attr, .content a.attr, .block a.current.attr,
93 .content span.derive, .content a.derive, .block a.current.derive,
94 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
95 .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
96 .content span.constant, .content a.constant, .block a.current.constant,
97 .content span.static, .content a.static, .block a.current.static { color: #D2991D; }
98 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
99 .content span.externcrate,
100 .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
101 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
102 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
103 .content span.fn, .content a.fn, .block a.current.fn,
104 .content span.method, .content a.method, .block a.current.method,
105 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
106 .content .fnname{ color: #2BAB63; }
107 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
108
109 .sidebar a { color: #fdbf35; }
110 .sidebar a.current.enum { color: #12ece2; }
111 .sidebar a.current.struct { color: #12ece2; }
112 .sidebar a.current.type { color: #12ece2; }
113 .sidebar a.current.associatedtype { color: #fdbf35; }
114 .sidebar a.current.foreigntype { color: #12ece2; }
115 .sidebar a.current.attr,
116 .sidebar a.current.derive,
117 .sidebar a.current.macro { color: #0be900; }
118 .sidebar a.current.union { color: #12ece2; }
119 .sidebar a.current.constant
120 .sidebar a.current.static { color: #fdbf35; }
121 .sidebar a.current.primitive { color: #12ece2; }
122 .sidebar a.current.externcrate
123 .sidebar a.current.mod { color: #fdbf35; }
124 .sidebar a.current.trait { color: #cca7ff; }
125 .sidebar a.current.traitalias { color: #cca7ff; }
126 .sidebar a.current.fn,
127 .sidebar a.current.method,
128 .sidebar a.current.tymethod { color: #32d479; }
129 .sidebar a.current.keyword { color: #fdbf35; }
130
131 pre.rust .comment { color: #8d8d8b; }
132 pre.rust .doccomment { color: #8ca375; }
133
134 nav.main .current {
135         border-top-color: #eee;
136         border-bottom-color: #eee;
137 }
138 nav.main .separator {
139         border-color: #eee;
140 }
141
142 a {
143         color: #D2991D;
144 }
145
146 body.source .example-wrap pre.rust a {
147         background: #333;
148 }
149
150 details.rustdoc-toggle > summary.hideme > span,
151 details.rustdoc-toggle > summary::before {
152         color: #999;
153 }
154
155 details.rustdoc-toggle > summary::before {
156         filter: invert(100%);
157 }
158
159 #crate-search, .search-input {
160         color: #111;
161         background-color: #f0f0f0;
162         border-color: #f0f0f0;
163 }
164
165 #crate-search {
166         /* Without the `!important`, the border-color is ignored for `<select>`...
167            It cannot be in the group above because `.search-input` has a different border color on
168            hover. */
169         border-color: #f0f0f0 !important;
170 }
171
172 .search-input {
173         border-color: #e0e0e0;
174 }
175
176 .search-input:focus {
177         border-color: #008dfd;
178 }
179
180 .stab.empty-impl { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
181 .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
182 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; color: #2f2f2f; }
183 .stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; }
184 .stab.portability > code { background: none; }
185
186 .rightside,
187 .out-of-band {
188         color: grey;
189 }
190
191 .line-numbers :target { background-color: transparent; }
192
193 /* Code highlighting */
194 pre.rust .kw { color: #ab8ac1; }
195 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
196 pre.rust .number, pre.rust .string { color: #83a300; }
197 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
198 pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
199 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
200 pre.rust .lifetime { color: #d97f26; }
201 pre.rust .question-mark {
202         color: #ff9011;
203 }
204
205 .example-wrap > pre.line-number {
206         border-color: #4a4949;
207 }
208
209 a.test-arrow {
210         color: #dedede;
211         background-color: rgba(78, 139, 202, 0.2);
212 }
213
214 a.test-arrow:hover{
215         background-color: #4e8bca;
216 }
217
218 .toggle-label,
219 .code-attribute {
220         color: #999;
221 }
222
223 :target {
224         background-color: #494a3d;
225         border-right: 3px solid #bb7410;
226 }
227
228 pre.compile_fail {
229         border-left: 2px solid rgba(255,0,0,.8);
230 }
231
232 pre.compile_fail:hover, .information:hover + pre.compile_fail {
233         border-left: 2px solid #f00;
234 }
235
236 pre.should_panic {
237         border-left: 2px solid rgba(255,0,0,.8);
238 }
239
240 pre.should_panic:hover, .information:hover + pre.should_panic {
241         border-left: 2px solid #f00;
242 }
243
244 pre.ignore {
245         border-left: 2px solid rgba(255,142,0,.6);
246 }
247
248 pre.ignore:hover, .information:hover + pre.ignore {
249         border-left: 2px solid #ff9200;
250 }
251
252 .tooltip.compile_fail {
253         color: rgba(255,0,0,.8);
254 }
255
256 .information > .compile_fail:hover {
257         color: #f00;
258 }
259
260 .tooltip.should_panic {
261         color: rgba(255,0,0,.8);
262 }
263
264 .information > .should_panic:hover {
265         color: #f00;
266 }
267
268 .tooltip.ignore {
269         color: rgba(255,142,0,.6);
270 }
271
272 .information > .ignore:hover {
273         color: #ff9200;
274 }
275
276 .search-failed a {
277         color: #0089ff;
278 }
279
280 .tooltip::after {
281         background-color: #000;
282         color: #fff;
283         border-color: #000;
284 }
285
286 .tooltip::before {
287         border-color: transparent black transparent transparent;
288 }
289
290 .notable-traits-tooltiptext {
291         background-color: #111;
292         border-color: #777;
293 }
294
295 .notable-traits-tooltiptext .notable {
296         border-bottom-color: #d2d2d2;
297 }
298
299 #titles > button:not(.selected) {
300         background-color: #252525;
301         border-top-color: #252525;
302 }
303
304 #titles > button:hover, #titles > button.selected {
305         border-top-color: #0089ff;
306         background-color: #353535;
307 }
308
309 #titles > button > div.count {
310         color: #888;
311 }
312
313 @media (max-width: 700px) {
314         .sidebar-elems {
315                 border-right-color: #000;
316         }
317 }
318
319 kbd {
320         color: #000;
321         background-color: #fafbfc;
322         border-color: #d1d5da;
323         border-bottom-color: #c6cbd1;
324         box-shadow: inset 0 -1px 0 #c6cbd1;
325 }
326
327 #settings-menu > a, #help-button > button {
328         border-color: #e0e0e0;
329         background: #f0f0f0;
330         color: #000;
331 }
332
333 #settings-menu > a:hover, #settings-menu > a:focus,
334 #help-button > button:hover, #help-button > button:focus {
335         border-color: #ffb900;
336 }
337
338 .popover, .popover::before,
339 #help-button span.top, #help-button span.bottom {
340         border-color: #d2d2d2;
341 }
342
343 #copy-path {
344         color: #999;
345 }
346 #copy-path > img {
347         filter: invert(50%);
348 }
349 #copy-path:hover > img {
350         filter: invert(65%);
351 }
352
353 #theme-choices {
354         border-color: #e0e0e0;
355         background-color: #353535;
356 }
357
358 #theme-choices > button:not(:first-child) {
359         border-top-color: #e0e0e0;
360 }
361
362 #theme-choices > button:hover, #theme-choices > button:focus {
363         background-color: #4e4e4e;
364 }
365
366 .search-results .result-name span.alias {
367         color: #fff;
368 }
369 .search-results .result-name span.grey {
370         color: #ccc;
371 }
372
373 #source-sidebar > .title {
374         border-bottom-color: #ccc;
375 }
376 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
377 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
378         background-color: #444;
379 }
380 #source-sidebar div.files > a.selected {
381         background-color: #333;
382 }
383
384 .scraped-example-list .scrape-help {
385         border-color: #aaa;
386         color: #eee;
387 }
388 .scraped-example-list .scrape-help:hover {
389         border-color: white;
390         color: white;
391 }
392 .more-examples-toggle summary, .more-examples-toggle .hide-more {
393         color: #999;
394 }
395 .scraped-example .example-wrap .rust span.highlight {
396         background: rgb(91, 59, 1);
397 }
398 .scraped-example .example-wrap .rust span.highlight.focus {
399         background: rgb(124, 75, 15);
400 }
401 .scraped-example:not(.expanded) .code-wrapper:before {
402         background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
403 }
404 .scraped-example:not(.expanded) .code-wrapper:after {
405         background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
406 }
407 .toggle-line-inner {
408         background: #999;
409 }
410 .toggle-line:hover .toggle-line-inner {
411         background: #c5c5c5;
412 }