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