]> git.proxmox.com Git - rustc.git/blame - src/librustdoc/html/static/styles/main.css
New upstream version 1.23.0+dfsg1
[rustc.git] / src / librustdoc / html / static / styles / main.css
CommitLineData
92a42be0
SL
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
15body {
8bb4bdeb
XL
16 background-color: white;
17 color: black;
92a42be0
SL
18}
19
20h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
8bb4bdeb 21 color: black;
92a42be0
SL
22}
23h1.fqn {
8bb4bdeb 24 border-bottom-color: #D5D5D5;
92a42be0
SL
25}
26h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
8bb4bdeb 27 border-bottom-color: #DDDDDD;
92a42be0 28}
3b2f2976 29
9e0c209e 30.in-band {
8bb4bdeb 31 background-color: white;
a7813a04 32}
92a42be0 33
9e0c209e 34.docblock code, .docblock-short code {
8bb4bdeb 35 background-color: #F5F5F5;
92a42be0
SL
36}
37pre {
8bb4bdeb
XL
38 background-color: #F5F5F5;
39}
40
41.sidebar {
42 background-color: #F1F1F1;
43}
44
45.sidebar .current {
46 background-color: #fff;
47}
48
8bb4bdeb
XL
49.source .sidebar {
50 background-color: #fff;
92a42be0
SL
51}
52
53.sidebar .location {
8bb4bdeb
XL
54 border-color: #000;
55 background-color: #fff;
56 color: #333;
92a42be0
SL
57}
58
59.block a:hover {
8bb4bdeb 60 background: #F5F5F5;
92a42be0
SL
61}
62
63.line-numbers span { color: #c67e2d; }
64.line-numbers .line-highlighted {
8bb4bdeb 65 background-color: #f6fdb0 !important;
92a42be0
SL
66}
67
92a42be0 68.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
8bb4bdeb 69 border-bottom-color: #DDD;
92a42be0
SL
70}
71
72.docblock table {
8bb4bdeb 73 border-color: #ddd;
92a42be0
SL
74}
75
76.docblock table td {
8bb4bdeb
XL
77 border-top-color: #ddd;
78 border-bottom-color: #ddd;
92a42be0
SL
79}
80
81.docblock table th {
8bb4bdeb
XL
82 border-top-color: #ddd;
83 border-bottom-color: #ddd;
92a42be0
SL
84}
85
3b2f2976
XL
86:target { background: #FDFFD3; }
87
88:target > .in-band {
89 background: #FDFFD3;
90}
91
92.content .highlighted {
93 color: #000 !important;
94 background-color: #ccc;
95}
96.content .highlighted a, .content .highlighted span { color: #000 !important; }
97.content .highlighted.trait { background-color: #c7b6ff; }
98.content .highlighted.mod,
99.content .highlighted.externcrate { background-color: #afc6e4; }
100.content .highlighted.enum { background-color: #b4d1b9; }
101.content .highlighted.struct { background-color: #e7b1a0; }
102.content .highlighted.union { background-color: #b7bd49; }
103.content .highlighted.fn,
104.content .highlighted.method,
105.content .highlighted.tymethod { background-color: #c6afb3; }
106.content .highlighted.type { background-color: #ffc891; }
abe05a73 107.content .highlighted.foreigntype { background-color: #f5c4ff; }
3b2f2976
XL
108.content .highlighted.macro { background-color: #8ce488; }
109.content .highlighted.constant,
110.content .highlighted.static { background-color: #c3e0ff; }
111.content .highlighted.primitive { background-color: #9aecff; }
112
113.content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
114.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
115.content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
abe05a73 116.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #cd00e2; }
3b2f2976
XL
117.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
118.content span.union, .content a.union, .block a.current.union { color: #767b27; }
119.content span.constant, .content a.constant, .block a.current.constant,
120.content span.static, .content a.static, .block a.current.static { color: #546e8a; }
121.content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
3157f602
XL
122.content span.externcrate,
123.content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
3b2f2976 124.content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
92a42be0
SL
125.content span.fn, .content a.fn, .block a.current.fn,
126.content span.method, .content a.method, .block a.current.method,
127.content span.tymethod, .content a.tymethod, .block a.current.tymethod,
3b2f2976 128.content .fnname { color: #9a6e31; }
92a42be0
SL
129
130pre.rust .comment { color: #8E908C; }
131pre.rust .doccomment { color: #4D4D4C; }
132
133nav {
8bb4bdeb 134 border-bottom-color: #e0e0e0;
92a42be0
SL
135}
136nav.main .current {
8bb4bdeb
XL
137 border-top-color: #000;
138 border-bottom-color: #000;
92a42be0
SL
139}
140nav.main .separator {
8bb4bdeb 141 border: 1px solid #000;
92a42be0
SL
142}
143a {
8bb4bdeb 144 color: #000;
92a42be0
SL
145}
146
9e0c209e 147.docblock a, .docblock-short a, .stability a {
8bb4bdeb 148 color: #3873AD;
92a42be0
SL
149}
150
151a.test-arrow {
8bb4bdeb 152 color: #f5f5f5;
92a42be0
SL
153}
154
92a42be0 155.search-input {
8bb4bdeb
XL
156 color: #555;
157 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
158 background-color: white;
92a42be0
SL
159}
160
32a655c1
SL
161.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
162.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
3b2f2976 163.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
8bb4bdeb
XL
164
165#help > div {
166 background: #e9e9e9;
167 border-color: #bfbfbf;;
168}
169
170#help dt {
171 border-color: #bfbfbf;
172 background: #fff;
173}
174
175.since {
176 color: grey;
177}
178
179.line-numbers :target { background-color: transparent; }
180
181/* Code highlighting */
182pre.rust .kw { color: #8959A8; }
183pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
184pre.rust .number, pre.rust .string { color: #718C00; }
185pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
186pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
187pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
188pre.rust .lifetime { color: #B76514; }
189pre.rust .question-mark {
190 color: #ff9011;
191}
192
193a.test-arrow {
194 background-color: rgba(78, 139, 202, 0.2);
195}
196
197a.test-arrow:hover{
198 background-color: #4e8bca;
199}
200
201.toggle-label {
202 color: #999;
203}
204
205:target > code {
206 background: #FDFFD3;
ea8adc8c
XL
207}
208
209pre.compile_fail {
210 border-left: 2px solid rgba(255,0,0,.4);
211}
212
213pre.compile_fail:hover, .information:hover + pre.compile_fail {
214 border-left: 2px solid #f00;
215}
216
217pre.ignore {
218 border-left: 2px solid rgba(255,142,0,.4);
219}
220
221pre.ignore:hover, .information:hover + pre.ignore {
222 border-left: 2px solid #ff9200;
223}
224
225.tooltip.compile_fail {
226 color: rgba(255,0,0,.3);
227}
228
229.information > .compile_fail:hover {
230 color: #f00;
231}
232
233.tooltip.ignore {
234 color: rgba(255,142,0,.3);
235}
236
237.information > .ignore:hover {
238 color: rgba(255,142,0,1);
239}
abe05a73
XL
240
241.search-failed > a {
242 color: #0089ff;
243}