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