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