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