]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/css/themes/dark.css
Rollup merge of #100956 - GuillaumeGomez:reduce-rightside-dom-size, r=notriddle
[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         --border-color: #e0e0e0;
13         --button-background-color: #f0f0f0;
14 }
15
16 .slider {
17         background-color: #ccc;
18 }
19 .slider:before {
20         background-color: white;
21 }
22 input:focus + .slider {
23         box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
24 }
25
26 .rust-logo {
27         filter: drop-shadow(1px 0 0px #fff)
28                 drop-shadow(0 1px 0 #fff)
29                 drop-shadow(-1px 0 0 #fff)
30                 drop-shadow(0 -1px 0 #fff)
31 }
32
33 .sidebar .current,
34 .sidebar a:hover {
35         background: #444;
36 }
37
38 .line-numbers span { color: #3B91E2; }
39 .line-numbers .line-highlighted {
40         background-color: #0a042f !important;
41 }
42
43 .search-results a:hover {
44         background-color: #777;
45 }
46
47 .search-results a:focus {
48         color: #eee !important;
49         background-color: #616161;
50 }
51 .search-results a:focus span { color: #eee !important; }
52 a.result-trait:focus { background-color: #013191; }
53 a.result-traitalias:focus { background-color: #013191; }
54 a.result-mod:focus,
55 a.result-externcrate:focus { background-color: #884719; }
56 a.result-enum:focus { background-color: #194e9f; }
57 a.result-struct:focus { background-color: #194e9f; }
58 a.result-union:focus { background-color: #194e9f; }
59 a.result-fn:focus,
60 a.result-method:focus,
61 a.result-tymethod:focus { background-color: #4950ed; }
62 a.result-type:focus { background-color: #194e9f; }
63 a.result-associatedtype:focus { background-color: #884719; }
64 a.result-foreigntype:focus { background-color: #194e9f; }
65 a.result-attr:focus,
66 a.result-derive:focus,
67 a.result-macro:focus { background-color: #217d1c; }
68 a.result-constant:focus,
69 a.result-static:focus { background-color: #884719; }
70 a.result-primitive:focus { background-color: #194e9f; }
71 a.result-keyword:focus { background-color: #884719; }
72
73 .content .item-info::before { color: #ccc; }
74
75 .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
76 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
77 .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
78 .content span.associatedtype,
79 .content a.associatedtype,
80 .block a.current.associatedtype { color: #D2991D; }
81 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
82 .content span.attr, .content a.attr, .block a.current.attr,
83 .content span.derive, .content a.derive, .block a.current.derive,
84 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
85 .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
86 .content span.constant, .content a.constant, .block a.current.constant,
87 .content span.static, .content a.static, .block a.current.static { color: #D2991D; }
88 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
89 .content span.externcrate,
90 .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
91 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
92 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
93 .content span.fn, .content a.fn, .block a.current.fn,
94 .content span.method, .content a.method, .block a.current.method,
95 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
96 .content .fnname{ color: #2BAB63; }
97 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
98
99 .sidebar a { color: #fdbf35; }
100 .sidebar a.current.enum { color: #12ece2; }
101 .sidebar a.current.struct { color: #12ece2; }
102 .sidebar a.current.type { color: #12ece2; }
103 .sidebar a.current.associatedtype { color: #fdbf35; }
104 .sidebar a.current.foreigntype { color: #12ece2; }
105 .sidebar a.current.attr,
106 .sidebar a.current.derive,
107 .sidebar a.current.macro { color: #0be900; }
108 .sidebar a.current.union { color: #12ece2; }
109 .sidebar a.current.constant
110 .sidebar a.current.static { color: #fdbf35; }
111 .sidebar a.current.primitive { color: #12ece2; }
112 .sidebar a.current.externcrate
113 .sidebar a.current.mod { color: #fdbf35; }
114 .sidebar a.current.trait { color: #cca7ff; }
115 .sidebar a.current.traitalias { color: #cca7ff; }
116 .sidebar a.current.fn,
117 .sidebar a.current.method,
118 .sidebar a.current.tymethod { color: #32d479; }
119 .sidebar a.current.keyword { color: #fdbf35; }
120
121 pre.rust .comment { color: #8d8d8b; }
122 pre.rust .doccomment { color: #8ca375; }
123
124 a {
125         color: #D2991D;
126 }
127
128 body.source .example-wrap pre.rust a {
129         background: #333;
130 }
131
132 details.rustdoc-toggle > summary.hideme > span,
133 details.rustdoc-toggle > summary::before {
134         color: #999;
135 }
136
137 details.rustdoc-toggle > summary::before {
138         filter: invert(100%);
139 }
140
141 .search-input {
142         color: #111;
143         border-color: #f0f0f0;
144 }
145
146 #crate-search-div::after {
147         /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
148         filter: invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);
149 }
150 #crate-search:hover, #crate-search:focus {
151         border-color: #2196f3 !important;
152 }
153 #crate-search-div:hover::after, #crate-search-div:focus-within::after {
154         filter: invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);
155 }
156
157 .search-input:focus {
158         border-color: #008dfd;
159 }
160
161 .stab { background: #314559; }
162
163 .stab.portability > code {
164         color: #e6e1cf;
165         background: none;
166 }
167
168 .rightside:not(a),
169 .out-of-band {
170         color: grey;
171 }
172
173 .line-numbers :target { background-color: transparent; }
174
175 /* Code highlighting */
176 pre.rust .kw { color: #ab8ac1; }
177 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
178 pre.rust .number, pre.rust .string { color: #83a300; }
179 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
180 pre.rust .attribute { color: #ee6868; }
181 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
182 pre.rust .lifetime { color: #d97f26; }
183 pre.rust .question-mark {
184         color: #ff9011;
185 }
186
187 .example-wrap > pre.line-number {
188         border-color: #4a4949;
189 }
190
191 a.test-arrow {
192         color: #dedede;
193         background-color: rgba(78, 139, 202, 0.2);
194 }
195
196 a.test-arrow:hover{
197         background-color: #4e8bca;
198 }
199
200 .toggle-label,
201 .code-attribute {
202         color: #999;
203 }
204
205 :target {
206         background-color: #494a3d;
207         border-right: 3px solid #bb7410;
208 }
209
210 pre.compile_fail {
211         border-left: 2px solid rgba(255,0,0,.8);
212 }
213
214 pre.compile_fail:hover, .information:hover + pre.compile_fail {
215         border-left: 2px solid #f00;
216 }
217
218 pre.should_panic {
219         border-left: 2px solid rgba(255,0,0,.8);
220 }
221
222 pre.should_panic:hover, .information:hover + pre.should_panic {
223         border-left: 2px solid #f00;
224 }
225
226 pre.ignore {
227         border-left: 2px solid rgba(255,142,0,.6);
228 }
229
230 pre.ignore:hover, .information:hover + pre.ignore {
231         border-left: 2px solid #ff9200;
232 }
233
234 .tooltip.compile_fail {
235         color: rgba(255,0,0,.8);
236 }
237
238 .information > .compile_fail:hover {
239         color: #f00;
240 }
241
242 .tooltip.should_panic {
243         color: rgba(255,0,0,.8);
244 }
245
246 .information > .should_panic:hover {
247         color: #f00;
248 }
249
250 .tooltip.ignore {
251         color: rgba(255,142,0,.6);
252 }
253
254 .information > .ignore:hover {
255         color: #ff9200;
256 }
257
258 .search-failed a {
259         color: #0089ff;
260 }
261
262 .tooltip::after {
263         background-color: #000;
264         color: #fff;
265         border-color: #000;
266 }
267
268 .tooltip::before {
269         border-color: transparent black transparent transparent;
270 }
271
272 .notable-traits-tooltiptext {
273         background-color: #111;
274 }
275
276 #titles > button:not(.selected) {
277         background-color: #252525;
278         border-top-color: #252525;
279 }
280
281 #titles > button:hover, #titles > button.selected {
282         border-top-color: #0089ff;
283         background-color: #353535;
284 }
285
286 #titles > button > div.count {
287         color: #888;
288 }
289
290 kbd {
291         color: #000;
292         background-color: #fafbfc;
293         box-shadow: inset 0 -1px 0 #c6cbd1;
294 }
295
296 #settings-menu > a, #help-button > button {
297         color: #000;
298 }
299
300 #settings-menu > a:hover, #settings-menu > a:focus,
301 #help-button > button:hover, #help-button > button:focus {
302         border-color: #ffb900;
303 }
304
305 #copy-path {
306         color: #999;
307 }
308 #copy-path > img {
309         filter: invert(50%);
310 }
311 #copy-path:hover > img {
312         filter: invert(65%);
313 }
314
315 .search-results .result-name span.alias {
316         color: #fff;
317 }
318 .search-results .result-name span.grey {
319         color: #ccc;
320 }
321
322 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
323 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
324         background-color: #444;
325 }
326 #source-sidebar div.files > a.selected {
327         background-color: #333;
328 }
329
330 .scraped-example-list .scrape-help {
331         border-color: #aaa;
332         color: #eee;
333 }
334 .scraped-example-list .scrape-help:hover {
335         border-color: white;
336         color: white;
337 }
338 .more-examples-toggle summary, .more-examples-toggle .hide-more {
339         color: #999;
340 }
341 .scraped-example .example-wrap .rust span.highlight {
342         background: rgb(91, 59, 1);
343 }
344 .scraped-example .example-wrap .rust span.highlight.focus {
345         background: rgb(124, 75, 15);
346 }
347 .scraped-example:not(.expanded) .code-wrapper:before {
348         background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
349 }
350 .scraped-example:not(.expanded) .code-wrapper:after {
351         background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
352 }
353 .toggle-line-inner {
354         background: #999;
355 }
356 .toggle-line:hover .toggle-line-inner {
357         background: #c5c5c5;
358 }