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