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