]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/css/themes/light.css
Auto merge of #93873 - Stovent:big-ints, r=m-ou-se
[rust.git] / src / librustdoc / html / static / css / themes / light.css
1 :root {
2         --main-background-color: white;
3         --main-color: black;
4         --settings-input-color: #2196f3;
5         --sidebar-background-color: #F5F5F5;
6         --sidebar-background-color-hover: #E0E0E0;
7         --code-block-background-color: #F5F5F5;
8         --scrollbar-track-background-color: #dcdcdc;
9         --scrollbar-thumb-background-color: rgba(36, 37, 39, 0.6);
10         --scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
11         --headings-border-bottom-color: #ddd;
12         --border-color: #e0e0e0;
13         --button-background-color: #fff;
14         --right-side-color: grey;
15         --code-attribute-color: #999;
16         --toggles-color: #999;
17         --search-input-focused-border-color: #66afe9;
18         --copy-path-button-color: #999;
19         --copy-path-img-filter: invert(50%);
20         --copy-path-img-hover-filter: invert(35%);
21 }
22
23 .slider {
24         background-color: #ccc;
25 }
26 .slider:before {
27         background-color: white;
28 }
29 input:focus + .slider {
30         box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
31 }
32
33 .rust-logo {
34         /* This rule exists to force other themes to explicitly style the logo.
35          * Rustdoc has a custom linter for this purpose.
36          */
37 }
38
39 .sidebar .current,
40 .sidebar a:hover {
41         background-color: #fff;
42 }
43
44 .line-numbers span { color: #c67e2d; }
45 .line-numbers .line-highlighted {
46         background-color: #FDFFD3 !important;
47 }
48
49 .search-results a:hover {
50         background-color: #ddd;
51 }
52
53 .search-results a:focus {
54         color: #000 !important;
55         background-color: #ccc;
56 }
57 .search-results a:focus span { color: #000 !important; }
58 a.result-trait:focus { background-color: #c7b6ff; }
59 a.result-traitalias:focus { background-color: #c7b6ff; }
60 a.result-mod:focus,
61 a.result-externcrate:focus { background-color: #afc6e4; }
62 a.result-enum:focus { background-color: #e7b1a0; }
63 a.result-struct:focus { background-color: #e7b1a0; }
64 a.result-union:focus { background-color: #e7b1a0; }
65 a.result-fn:focus,
66 a.result-method:focus,
67 a.result-tymethod:focus { background-color: #c6afb3; }
68 a.result-type:focus { background-color: #e7b1a0; }
69 a.result-associatedtype:focus { background-color: #afc6e4; }
70 a.result-foreigntype:focus { background-color: #e7b1a0; }
71 a.result-attr:focus,
72 a.result-derive:focus,
73 a.result-macro:focus { background-color: #8ce488; }
74 a.result-constant:focus,
75 a.result-static:focus { background-color: #afc6e4; }
76 a.result-primitive:focus { background-color: #e7b1a0; }
77 a.result-keyword:focus { background-color: #afc6e4; }
78
79 .content .item-info::before { color: #ccc; }
80
81 .content span.enum, .content a.enum, .block a.current.enum { color: #AD378A; }
82 .content span.struct, .content a.struct, .block a.current.struct { color: #AD378A; }
83 .content span.type, .content a.type, .block a.current.type { color:  #AD378A; }
84 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #3873AD; }
85 .content span.associatedtype,
86 .content a.associatedtype,
87 .block a.current.associatedtype { color: #3873AD; }
88 .content span.attr, .content a.attr, .block a.current.attr,
89 .content span.derive, .content a.derive, .block a.current.derive,
90 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
91 .content span.union, .content a.union, .block a.current.union { color: #AD378A; }
92 .content span.constant, .content a.constant, .block a.current.constant,
93 .content span.static, .content a.static, .block a.current.static { color: #3873AD; }
94 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #AD378A; }
95 .content span.externcrate,
96 .content span.mod, .content a.mod, .block a.current.mod { color: #3873AD; }
97 .content span.trait, .content a.trait, .block a.current.trait { color: #6E4FC9; }
98 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #5137AD; }
99 .content span.fn, .content a.fn, .block a.current.fn,
100 .content span.method, .content a.method, .block a.current.method,
101 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
102 .content .fnname { color: #AD7C37; }
103 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #3873AD; }
104
105 .sidebar a { color: #356da4; }
106 .sidebar a.current.enum { color: #a63283; }
107 .sidebar a.current.struct { color: #a63283; }
108 .sidebar a.current.type { color: #a63283; }
109 .sidebar a.current.associatedtype { color: #356da4; }
110 .sidebar a.current.foreigntype { color: #356da4; }
111 .sidebar a.current.attr,
112 .sidebar a.current.derive,
113 .sidebar a.current.macro { color: #067901; }
114 .sidebar a.current.union { color: #a63283; }
115 .sidebar a.current.constant
116 .sidebar a.current.static { color: #356da4; }
117 .sidebar a.current.primitive { color: #a63283; }
118 .sidebar a.current.externcrate
119 .sidebar a.current.mod { color: #356da4; }
120 .sidebar a.current.trait { color: #6849c3; }
121 .sidebar a.current.traitalias { color: #4b349e; }
122 .sidebar a.current.fn,
123 .sidebar a.current.method,
124 .sidebar a.current.tymethod { color: #a67736; }
125 .sidebar a.current.keyword { color: #356da4; }
126
127 a {
128         color: #3873AD;
129 }
130
131 body.source .example-wrap pre.rust a {
132         background: #eee;
133 }
134
135 #crate-search-div::after {
136         /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
137         filter: invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);
138 }
139 #crate-search:hover, #crate-search:focus {
140         border-color: #717171 !important;
141 }
142 #crate-search-div:hover::after, #crate-search-div:focus-within::after {
143         filter: invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);
144 }
145
146 .stab { background: #FFF5D6; border-color: #FFC600; }
147 .stab.portability > code { background: none; }
148
149 .line-numbers :target { background-color: transparent; }
150
151 /* Code highlighting */
152 pre.rust .kw { color: #8959A8; }
153 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
154 pre.rust .number, pre.rust .string { color: #718C00; }
155 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
156 pre.rust .attribute { color: #C82829; }
157 pre.rust .comment { color: #8E908C; }
158 pre.rust .doccomment { color: #4D4D4C; }
159 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
160 pre.rust .lifetime { color: #B76514; }
161 pre.rust .question-mark {
162         color: #ff9011;
163 }
164
165 .example-wrap > pre.line-number {
166         border-color: #c7c7c7;
167 }
168
169 a.test-arrow {
170         color: #f5f5f5;
171         background-color: rgba(78, 139, 202, 0.2);
172 }
173
174 a.test-arrow:hover{
175         background-color: #4e8bca;
176 }
177
178 :target {
179         background: #FDFFD3;
180         border-right: 3px solid #AD7C37;
181 }
182
183 pre.compile_fail {
184         border-left: 2px solid rgba(255,0,0,.5);
185 }
186
187 pre.compile_fail:hover, .information:hover + pre.compile_fail {
188         border-left: 2px solid #f00;
189 }
190
191 pre.should_panic {
192         border-left: 2px solid rgba(255,0,0,.5);
193 }
194
195 pre.should_panic:hover, .information:hover + pre.should_panic {
196         border-left: 2px solid #f00;
197 }
198
199 pre.ignore {
200         border-left: 2px solid rgba(255,142,0,.6);
201 }
202
203 pre.ignore:hover, .information:hover + pre.ignore {
204         border-left: 2px solid #ff9200;
205 }
206
207 .tooltip.compile_fail {
208         color: rgba(255,0,0,.5);
209 }
210
211 .information > .compile_fail:hover {
212         color: #f00;
213 }
214
215 .tooltip.should_panic {
216         color: rgba(255,0,0,.5);
217 }
218
219 .information > .should_panic:hover {
220         color: #f00;
221 }
222
223 .tooltip.ignore {
224         color: rgba(255,142,0,.6);
225 }
226
227 .information > .ignore:hover {
228         color: #ff9200;
229 }
230
231 .search-failed a {
232         color: #3873AD;
233 }
234
235 .tooltip::after {
236         background-color: #000;
237         color: #fff;
238 }
239
240 .tooltip::before {
241         border-color: transparent black transparent transparent;
242 }
243
244 .notable-traits-tooltiptext {
245         background-color: #eee;
246 }
247
248 #titles > button:not(.selected) {
249         background-color: #e6e6e6;
250         border-top-color: #e6e6e6;
251 }
252
253 #titles > button:hover, #titles > button.selected {
254         background-color: #ffffff;
255         border-top-color: #0089ff;
256 }
257
258 #titles > button > div.count {
259         color: #888;
260 }
261
262 kbd {
263         color: #000;
264         background-color: #fafbfc;
265         box-shadow: inset 0 -1px 0 #c6cbd1;
266 }
267
268 #settings-menu > a:hover, #settings-menu > a:focus,
269 #help-button > button:hover, #help-button > button:focus {
270         border-color: #717171;
271 }
272
273 .search-results .result-name span.alias {
274         color: #000;
275 }
276 .search-results .result-name span.grey {
277         color: #999;
278 }
279
280 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
281 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
282         background-color: #E0E0E0;
283 }
284 #source-sidebar div.files > a.selected {
285         background-color: #fff;
286 }
287 .scraped-example-list .scrape-help {
288         border-color: #555;
289         color: #333;
290 }
291 .scraped-example-list .scrape-help:hover {
292         border-color: black;
293         color: black;
294 }
295 .scraped-example .example-wrap .rust span.highlight {
296         background: #fcffd6;
297 }
298 .scraped-example .example-wrap .rust span.highlight.focus {
299         background: #f6fdb0;
300 }
301 .scraped-example:not(.expanded) .code-wrapper:before {
302         background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
303 }
304 .scraped-example:not(.expanded) .code-wrapper:after {
305         background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
306 }
307 .toggle-line-inner {
308         background: #ccc;
309 }
310 .toggle-line:hover .toggle-line-inner {
311         background: #999;
312 }