]> git.proxmox.com Git - rustc.git/blob - src/librustdoc/html/static/css/themes/light.css
New upstream version 1.55.0+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 {
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 a {
173 color: #000;
174 }
175
176 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
177 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
178 #help a {
179 color: #3873AD;
180 }
181
182 a.test-arrow {
183 color: #f5f5f5;
184 }
185
186 details.rustdoc-toggle > summary.hideme > span,
187 details.rustdoc-toggle > summary::before,
188 details.undocumented > summary::before {
189 color: #999;
190 }
191
192 #crate-search {
193 color: #555;
194 background-color: white;
195 border-color: #e0e0e0;
196 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
197 }
198
199 .search-input {
200 color: #555;
201 background-color: white;
202 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
203 }
204
205 .search-input:focus {
206 border-color: #66afe9;
207 }
208
209 .search-input:disabled {
210 background-color: #e6e6e6;
211 }
212
213 #crate-search + .search-input:focus {
214 box-shadow: 0 0 8px #078dd8;
215 }
216
217 .module-item .stab,
218 .import-item .stab {
219 color: #000;
220 }
221
222 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
223 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; }
224 .stab.portability { background: #F3DFFF; border-color: #b07bdb; }
225 .stab.portability > code { background: none; }
226
227 #help > div {
228 background: #e9e9e9;
229 border-color: #bfbfbf;
230 }
231
232 #help > div > span {
233 border-bottom-color: #bfbfbf;
234 }
235
236 .since {
237 color: grey;
238 }
239
240 .result-name .primitive > i, .result-name .keyword > i {
241 color: black;
242 }
243
244 .line-numbers :target { background-color: transparent; }
245
246 /* Code highlighting */
247 pre.rust .kw { color: #8959A8; }
248 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
249 pre.rust .number, pre.rust .string { color: #718C00; }
250 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
251 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
252 pre.rust .comment { color: #8E908C; }
253 pre.rust .doccomment { color: #4D4D4C; }
254 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
255 pre.rust .lifetime { color: #B76514; }
256 pre.rust .question-mark {
257 color: #ff9011;
258 }
259
260 .example-wrap > pre.line-number {
261 border-color: #c7c7c7;
262 }
263
264 a.test-arrow {
265 background-color: rgba(78, 139, 202, 0.2);
266 }
267
268 a.test-arrow:hover{
269 background-color: #4e8bca;
270 }
271
272 .toggle-label,
273 .code-attribute {
274 color: #999;
275 }
276
277 :target, :target > * {
278 background: #FDFFD3;
279 }
280
281 :target {
282 border-right: 3px solid #ffb44c;
283 }
284
285 pre.compile_fail {
286 border-left: 2px solid rgba(255,0,0,.5);
287 }
288
289 pre.compile_fail:hover, .information:hover + pre.compile_fail {
290 border-left: 2px solid #f00;
291 }
292
293 pre.should_panic {
294 border-left: 2px solid rgba(255,0,0,.5);
295 }
296
297 pre.should_panic:hover, .information:hover + pre.should_panic {
298 border-left: 2px solid #f00;
299 }
300
301 pre.ignore {
302 border-left: 2px solid rgba(255,142,0,.6);
303 }
304
305 pre.ignore:hover, .information:hover + pre.ignore {
306 border-left: 2px solid #ff9200;
307 }
308
309 .tooltip.compile_fail {
310 color: rgba(255,0,0,.5);
311 }
312
313 .information > .compile_fail:hover {
314 color: #f00;
315 }
316
317 .tooltip.should_panic {
318 color: rgba(255,0,0,.5);
319 }
320
321 .information > .should_panic:hover {
322 color: #f00;
323 }
324
325 .tooltip.ignore {
326 color: rgba(255,142,0,.6);
327 }
328
329 .information > .ignore:hover {
330 color: #ff9200;
331 }
332
333 .search-failed a {
334 color: #0089ff;
335 }
336
337 .tooltip::after {
338 background-color: #000;
339 color: #fff;
340 }
341
342 .tooltip::before {
343 border-color: transparent black transparent transparent;
344 }
345
346 .notable-traits-tooltiptext {
347 background-color: #eee;
348 border-color: #999;
349 }
350
351 .notable-traits-tooltiptext .notable {
352 border-bottom-color: #DDDDDD;
353 }
354
355 #titles > button:not(.selected) {
356 background-color: #e6e6e6;
357 border-top-color: #e6e6e6;
358 }
359
360 #titles > button:hover, #titles > button.selected {
361 background-color: #ffffff;
362 border-top-color: #0089ff;
363 }
364
365 #titles > button > div.count {
366 color: #888;
367 }
368
369 @media (max-width: 700px) {
370 .sidebar-menu {
371 background-color: #F1F1F1;
372 border-bottom-color: #e0e0e0;
373 border-right-color: #e0e0e0;
374 }
375
376 .sidebar-elems {
377 background-color: #F1F1F1;
378 border-right-color: #000;
379 }
380
381 #sidebar-filler {
382 background-color: #F1F1F1;
383 border-bottom-color: #e0e0e0;
384 }
385 }
386
387 kbd {
388 color: #000;
389 background-color: #fafbfc;
390 border-color: #d1d5da;
391 border-bottom-color: #c6cbd1;
392 box-shadow-color: #c6cbd1;
393 }
394
395 #theme-picker, #settings-menu, #help-button {
396 border-color: #e0e0e0;
397 background-color: #fff;
398 }
399
400 #theme-picker:hover, #theme-picker:focus,
401 #settings-menu:hover, #settings-menu:focus,
402 #help-button:hover, #help-button:focus {
403 border-color: #717171;
404 }
405
406 #copy-path {
407 color: #999;
408 }
409 #copy-path > img {
410 filter: invert(50%);
411 }
412 #copy-path:hover > img {
413 filter: invert(35%);
414 }
415
416 #theme-choices {
417 border-color: #ccc;
418 background-color: #fff;
419 }
420
421 #theme-choices > button:not(:first-child) {
422 border-top-color: #e0e0e0;
423 }
424
425 #theme-choices > button:hover, #theme-choices > button:focus {
426 background-color: #eee;
427 }
428
429 @media (max-width: 700px) {
430 #theme-picker {
431 background: #fff;
432 }
433 }
434
435 #all-types {
436 background-color: #fff;
437 }
438 #all-types:hover {
439 background-color: #f9f9f9;
440 }
441
442 .search-results .result-name span.alias {
443 color: #000;
444 }
445 .search-results .result-name span.grey {
446 color: #999;
447 }
448
449 #sidebar-toggle {
450 background-color: #F1F1F1;
451 }
452 #sidebar-toggle:hover {
453 background-color: #E0E0E0;
454 }
455 #source-sidebar {
456 background-color: #F1F1F1;
457 }
458 #source-sidebar > .title {
459 border-bottom-color: #ccc;
460 }
461 div.files > a:hover, div.name:hover {
462 background-color: #E0E0E0;
463 }
464 div.files > .selected {
465 background-color: #fff;
466 }
467 .setting-line > .title {
468 border-bottom-color: #D5D5D5;
469 }