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