]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/themes/light.css
Auto merge of #83900 - torhovland:issue-83832, r=jyn514
[rust.git] / src / librustdoc / html / static / themes / light.css
1 /* General structure and fonts */
2
3 body {
4         background-color: white;
5         color: black;
6 }
7
8 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
9 h4:not(.method):not(.type):not(.tymethod) {
10         color: black;
11 }
12 h1.fqn {
13         border-bottom-color: #D5D5D5;
14 }
15 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
16 h4:not(.method):not(.type):not(.tymethod) {
17         border-bottom-color: #DDDDDD;
18 }
19
20 .in-band {
21         background-color: white;
22 }
23
24 .invisible {
25         background: rgba(0, 0, 0, 0);
26 }
27
28 .docblock code, .docblock-short code {
29         background-color: #F5F5F5;
30 }
31 pre {
32         background-color: #F5F5F5;
33 }
34
35 .sidebar {
36         background-color: #F1F1F1;
37 }
38
39 /* Improve the scrollbar display on firefox */
40 * {
41         scrollbar-color: rgba(36, 37, 39, 0.6) #e6e6e6;
42 }
43
44 .sidebar {
45         scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
46 }
47
48 .logo-container.rust-logo > img {
49         /* No need for a border in here! */
50 }
51
52 /* Improve the scrollbar display on webkit-based browsers */
53 ::-webkit-scrollbar-track {
54         background-color: #ecebeb;
55 }
56 ::-webkit-scrollbar-thumb {
57         background-color: rgba(36, 37, 39, 0.6);
58 }
59 .sidebar::-webkit-scrollbar-track {
60         background-color: #dcdcdc;
61 }
62 .sidebar::-webkit-scrollbar-thumb {
63         background-color: rgba(36, 37, 39, 0.6);
64 }
65
66 .sidebar .current {
67         background-color: #fff;
68 }
69
70 .source .sidebar {
71         background-color: #fff;
72 }
73
74 .sidebar .location {
75         border-color: #000;
76         background-color: #fff;
77         color: #333;
78 }
79
80 .sidebar .version {
81         border-bottom-color: #DDD;
82 }
83
84 .sidebar-title {
85         border-top-color: #777;
86         border-bottom-color: #777;
87 }
88
89 .block a:hover {
90         background: #F5F5F5;
91 }
92
93 .line-numbers span { color: #c67e2d; }
94 .line-numbers .line-highlighted {
95         background-color: #f6fdb0 !important;
96 }
97
98 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
99         border-bottom-color: #ddd;
100 }
101
102 .docblock table, .docblock table td, .docblock table th {
103         border-color: #ddd;
104 }
105
106 .content .method .where,
107 .content .fn .where,
108 .content .where.fmt-newline {
109         color: #4E4C4C;
110 }
111
112 .content .highlighted {
113         color: #000 !important;
114         background-color: #ccc;
115 }
116 .content .highlighted a, .content .highlighted span { color: #000 !important; }
117 .content .highlighted.trait { background-color: #c7b6ff; }
118 .content .highlighted.traitalias { background-color: #c7b6ff; }
119 .content .highlighted.mod,
120 .content .highlighted.externcrate { background-color: #afc6e4; }
121 .content .highlighted.enum { background-color: #b4d1b9; }
122 .content .highlighted.struct { background-color: #e7b1a0; }
123 .content .highlighted.union { background-color: #b7bd49; }
124 .content .highlighted.fn,
125 .content .highlighted.method,
126 .content .highlighted.tymethod { background-color: #c6afb3; }
127 .content .highlighted.type { background-color: #ffc891; }
128 .content .highlighted.foreigntype { background-color: #f5c4ff; }
129 .content .highlighted.attr,
130 .content .highlighted.derive,
131 .content .highlighted.macro { background-color: #8ce488; }
132 .content .highlighted.constant,
133 .content .highlighted.static { background-color: #c3e0ff; }
134 .content .highlighted.primitive { background-color: #9aecff; }
135 .content .highlighted.keyword { background-color: #f99650; }
136
137 .content .item-info::before { color: #ccc; }
138
139 .content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
140 .content span.struct, .content a.struct, .block a.current.struct { color: #ad448e; }
141 .content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
142 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #cd00e2; }
143 .content span.attr, .content a.attr, .block a.current.attr,
144 .content span.derive, .content a.derive, .block a.current.derive,
145 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
146 .content span.union, .content a.union, .block a.current.union { color: #767b27; }
147 .content span.constant, .content a.constant, .block a.current.constant,
148 .content span.static, .content a.static, .block a.current.static { color: #546e8a; }
149 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
150 .content span.externcrate,
151 .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
152 .content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
153 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #6841f1; }
154 .content span.fn, .content a.fn, .block a.current.fn,
155 .content span.method, .content a.method, .block a.current.method,
156 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
157 .content .fnname { color: #9a6e31; }
158 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
159
160 pre.rust .comment { color: #8E908C; }
161 pre.rust .doccomment { color: #4D4D4C; }
162
163 nav:not(.sidebar) {
164         border-bottom-color: #e0e0e0;
165 }
166 nav.main .current {
167         border-top-color: #000;
168         border-bottom-color: #000;
169 }
170 nav.main .separator {
171         border: 1px solid #000;
172 }
173 a {
174         color: #000;
175 }
176
177 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
178 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
179 #help a {
180         color: #3873AD;
181 }
182
183 a.test-arrow {
184         color: #f5f5f5;
185 }
186
187 .collapse-toggle,
188 details.rustdoc-toggle > summary.hideme > span,
189 details.rustdoc-toggle > summary::before {
190         color: #999;
191 }
192
193 #crate-search {
194         color: #555;
195         background-color: white;
196         border-color: #e0e0e0;
197         box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
198 }
199
200 .search-input {
201         color: #555;
202         background-color: white;
203         box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
204 }
205
206 .search-input:focus {
207         border-color: #66afe9;
208 }
209
210 .search-focus:disabled {
211         background-color: #e6e6e6;
212 }
213
214 #crate-search + .search-input:focus {
215         box-shadow: 0 0 8px #078dd8;
216 }
217
218 .module-item .stab,
219 .import-item .stab {
220         color: #000;
221 }
222
223 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
224 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; }
225 .stab.portability { background: #F3DFFF; border-color: #b07bdb; }
226 .stab.portability > code { background: none; }
227
228 #help > div {
229         background: #e9e9e9;
230         border-color: #bfbfbf;
231 }
232
233 #help > div > span {
234         border-bottom-color: #bfbfbf;
235 }
236
237 .since {
238         color: grey;
239 }
240
241 tr.result span.primitive::after, tr.result span.keyword::after {
242         color: black;
243 }
244
245 .line-numbers :target { background-color: transparent; }
246
247 /* Code highlighting */
248 pre.rust .kw { color: #8959A8; }
249 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
250 pre.rust .number, pre.rust .string { color: #718C00; }
251 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
252 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
253 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
254 pre.rust .lifetime { color: #B76514; }
255 pre.rust .question-mark {
256         color: #ff9011;
257 }
258
259 .example-wrap > pre.line-number {
260         border-color: #c7c7c7;
261 }
262
263 a.test-arrow {
264         background-color: rgba(78, 139, 202, 0.2);
265 }
266
267 a.test-arrow:hover{
268         background-color: #4e8bca;
269 }
270
271 .toggle-label,
272 .code-attribute {
273         color: #999;
274 }
275
276 :target > code, :target > .in-band {
277         background: #FDFFD3;
278         border-right: 3px solid #ffb44c;
279 }
280
281 pre.compile_fail {
282         border-left: 2px solid rgba(255,0,0,.5);
283 }
284
285 pre.compile_fail:hover, .information:hover + pre.compile_fail {
286         border-left: 2px solid #f00;
287 }
288
289 pre.should_panic {
290         border-left: 2px solid rgba(255,0,0,.5);
291 }
292
293 pre.should_panic:hover, .information:hover + pre.should_panic {
294         border-left: 2px solid #f00;
295 }
296
297 pre.ignore {
298         border-left: 2px solid rgba(255,142,0,.6);
299 }
300
301 pre.ignore:hover, .information:hover + pre.ignore {
302         border-left: 2px solid #ff9200;
303 }
304
305 .tooltip.compile_fail {
306         color: rgba(255,0,0,.5);
307 }
308
309 .information > .compile_fail:hover {
310         color: #f00;
311 }
312
313 .tooltip.should_panic {
314         color: rgba(255,0,0,.5);
315 }
316
317 .information > .should_panic:hover {
318         color: #f00;
319 }
320
321 .tooltip.ignore {
322         color: rgba(255,142,0,.6);
323 }
324
325 .information > .ignore:hover {
326         color: #ff9200;
327 }
328
329 .search-failed a {
330         color: #0089ff;
331 }
332
333 .tooltip::after {
334         background-color: #000;
335         color: #fff;
336 }
337
338 .tooltip::before {
339         border-color: transparent black transparent transparent;
340 }
341
342 .notable-traits-tooltiptext {
343         background-color: #eee;
344         border-color: #999;
345 }
346
347 #titles > button:not(.selected) {
348         background-color: #e6e6e6;
349         border-top-color: #e6e6e6;
350 }
351
352 #titles > button:hover, #titles > button.selected {
353         background-color: #ffffff;
354         border-top-color: #0089ff;
355 }
356
357 #titles > button > div.count {
358         color: #888;
359 }
360
361 @media (max-width: 700px) {
362         .sidebar-menu {
363                 background-color: #F1F1F1;
364                 border-bottom-color: #e0e0e0;
365                 border-right-color: #e0e0e0;
366         }
367
368         .sidebar-elems {
369                 background-color: #F1F1F1;
370                 border-right-color: #000;
371         }
372
373         #sidebar-filler {
374                 background-color: #F1F1F1;
375                 border-bottom-color: #e0e0e0;
376         }
377 }
378
379 kbd {
380         color: #000;
381         background-color: #fafbfc;
382         border-color: #d1d5da;
383         border-bottom-color: #c6cbd1;
384         box-shadow-color: #c6cbd1;
385 }
386
387 #theme-picker, #settings-menu, .help-button, #copy-path {
388         border-color: #e0e0e0;
389         background-color: #fff;
390 }
391
392 #theme-picker:hover, #theme-picker:focus,
393 #settings-menu:hover, #settings-menu:focus,
394 .help-button:hover, .help-button:focus,
395 #copy-path:hover, #copy-path:focus {
396         border-color: #717171;
397 }
398
399 #theme-choices {
400         border-color: #ccc;
401         background-color: #fff;
402 }
403
404 #theme-choices > button:not(:first-child) {
405         border-top-color: #e0e0e0;
406 }
407
408 #theme-choices > button:hover, #theme-choices > button:focus {
409         background-color: #eee;
410 }
411
412 @media (max-width: 700px) {
413         #theme-picker {
414                 background: #fff;
415         }
416 }
417
418 #all-types {
419         background-color: #fff;
420 }
421 #all-types:hover {
422         background-color: #f9f9f9;
423 }
424
425 .search-results td span.alias {
426         color: #000;
427 }
428 .search-results td span.grey {
429         color: #999;
430 }
431
432 #sidebar-toggle {
433         background-color: #F1F1F1;
434 }
435 #sidebar-toggle:hover {
436         background-color: #E0E0E0;
437 }
438 #source-sidebar {
439         background-color: #F1F1F1;
440 }
441 #source-sidebar > .title {
442         border-bottom-color: #ccc;
443 }
444 div.files > a:hover, div.name:hover {
445         background-color: #E0E0E0;
446 }
447 div.files > .selected {
448         background-color: #fff;
449 }
450 .setting-line > .title {
451         border-bottom-color: #D5D5D5;
452 }