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