]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/styles/main.css
rustdoc: pretty-print Unevaluated expressions in types.
[rust.git] / src / librustdoc / html / static / styles / main.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 .docblock code, .docblock-short code {
35         background-color: #F5F5F5;
36 }
37 pre {
38         background-color: #F5F5F5;
39 }
40
41 .sidebar {
42         background-color: #F1F1F1;
43 }
44
45 .sidebar .current {
46         background-color: #fff;
47 }
48
49 .source .sidebar {
50         background-color: #fff;
51 }
52
53 .sidebar .location {
54         border-color: #000;
55         background-color: #fff;
56         color: #333;
57 }
58
59 .block a:hover {
60         background: #F5F5F5;
61 }
62
63 .line-numbers span { color: #c67e2d; }
64 .line-numbers .line-highlighted {
65         background-color: #f6fdb0 !important;
66 }
67
68 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
69         border-bottom-color: #DDD;
70 }
71
72 .docblock table {
73         border-color: #ddd;
74 }
75
76 .docblock table td {
77         border-top-color: #ddd;
78         border-bottom-color: #ddd;
79 }
80
81 .docblock table th {
82         border-top-color: #ddd;
83         border-bottom-color: #ddd;
84 }
85
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; }
107 .content .highlighted.macro { background-color: #8ce488; }
108 .content .highlighted.constant,
109 .content .highlighted.static { background-color: #c3e0ff; }
110 .content .highlighted.primitive { background-color: #9aecff; }
111
112 .content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
113 .content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
114 .content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
115 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
116 .content span.union, .content a.union, .block a.current.union { color: #767b27; }
117 .content span.constant, .content a.constant, .block a.current.constant,
118 .content span.static, .content a.static, .block a.current.static { color: #546e8a; }
119 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
120 .content span.externcrate,
121 .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
122 .content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
123 .content span.fn, .content a.fn, .block a.current.fn,
124 .content span.method, .content a.method, .block a.current.method,
125 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
126 .content .fnname { color: #9a6e31; }
127
128 pre.rust .comment { color: #8E908C; }
129 pre.rust .doccomment { color: #4D4D4C; }
130
131 nav {
132         border-bottom-color: #e0e0e0;
133 }
134 nav.main .current {
135         border-top-color: #000;
136         border-bottom-color: #000;
137 }
138 nav.main .separator {
139         border: 1px solid #000;
140 }
141 a {
142         color: #000;
143 }
144
145 .docblock a, .docblock-short a, .stability a {
146         color: #3873AD;
147 }
148
149 a.test-arrow {
150         color: #f5f5f5;
151 }
152
153 .search-input {
154         color: #555;
155         box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
156         background-color: white;
157 }
158
159 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
160 .stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
161 .stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
162
163 #help > div {
164         background: #e9e9e9;
165         border-color: #bfbfbf;;
166 }
167
168 #help dt {
169         border-color: #bfbfbf;
170         background: #fff;
171 }
172
173 .since {
174         color: grey;
175 }
176
177 .line-numbers :target { background-color: transparent; }
178
179 /* Code highlighting */
180 pre.rust .kw { color: #8959A8; }
181 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
182 pre.rust .number, pre.rust .string { color: #718C00; }
183 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
184 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
185 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
186 pre.rust .lifetime { color: #B76514; }
187 pre.rust .question-mark {
188         color: #ff9011;
189 }
190
191 a.test-arrow {
192         background-color: rgba(78, 139, 202, 0.2);
193 }
194
195 a.test-arrow:hover{
196         background-color: #4e8bca;
197 }
198
199 .toggle-label {
200         color: #999;
201 }
202
203 :target > code {
204         background: #FDFFD3;
205 }