]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/css/themes/dark.css
Rollup merge of #101595 - ehuss:fix-ice-flag-report, r=tmiasko
[rust.git] / src / librustdoc / html / static / css / themes / dark.css
1 :root {
2         --main-background-color: #353535;
3         --main-color: #ddd;
4         --settings-input-color: #2196f3;
5         --sidebar-background-color: #505050;
6         --sidebar-background-color-hover: #676767;
7         --code-block-background-color: #2A2A2A;
8         --scrollbar-track-background-color: #717171;
9         --scrollbar-thumb-background-color: rgba(32, 34, 37, .6);
10         --scrollbar-color: rgba(32,34,37,.6) #5a5a5a;
11         --headings-border-bottom-color: #d2d2d2;
12         --border-color: #e0e0e0;
13         --button-background-color: #f0f0f0;
14         --right-side-color: grey;
15         --code-attribute-color: #999;
16         --toggles-color: #999;
17         --search-input-focused-border-color: #008dfd;
18         --copy-path-button-color: #999;
19         --copy-path-img-filter: invert(50%);
20         --copy-path-img-hover-filter: invert(65%);
21         --codeblock-error-hover-color: rgb(255, 0, 0);
22         --codeblock-error-color: rgba(255, 0, 0, .5);
23         --codeblock-ignore-hover-color: rgb(255, 142, 0);
24         --codeblock-ignore-color: rgba(255, 142, 0, .6);
25 }
26
27 .slider {
28         background-color: #ccc;
29 }
30 .slider:before {
31         background-color: white;
32 }
33 input:focus + .slider {
34         box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
35 }
36
37 .rust-logo {
38         filter: drop-shadow(1px 0 0px #fff)
39                 drop-shadow(0 1px 0 #fff)
40                 drop-shadow(-1px 0 0 #fff)
41                 drop-shadow(0 -1px 0 #fff)
42 }
43
44 .sidebar .current,
45 .sidebar a:hover {
46         background: #444;
47 }
48
49 .line-numbers span { color: #3B91E2; }
50 .line-numbers .line-highlighted {
51         background-color: #0a042f !important;
52 }
53
54 .search-results a:hover {
55         background-color: #777;
56 }
57
58 .search-results a:focus {
59         color: #eee !important;
60         background-color: #616161;
61 }
62 .search-results a:focus span { color: #eee !important; }
63 a.result-trait:focus { background-color: #013191; }
64 a.result-traitalias:focus { background-color: #013191; }
65 a.result-mod:focus,
66 a.result-externcrate:focus { background-color: #884719; }
67 a.result-enum:focus { background-color: #194e9f; }
68 a.result-struct:focus { background-color: #194e9f; }
69 a.result-union:focus { background-color: #194e9f; }
70 a.result-fn:focus,
71 a.result-method:focus,
72 a.result-tymethod:focus { background-color: #4950ed; }
73 a.result-type:focus { background-color: #194e9f; }
74 a.result-associatedtype:focus { background-color: #884719; }
75 a.result-foreigntype:focus { background-color: #194e9f; }
76 a.result-attr:focus,
77 a.result-derive:focus,
78 a.result-macro:focus { background-color: #217d1c; }
79 a.result-constant:focus,
80 a.result-static:focus { background-color: #884719; }
81 a.result-primitive:focus { background-color: #194e9f; }
82 a.result-keyword:focus { background-color: #884719; }
83
84 .content .item-info::before { color: #ccc; }
85
86 .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
87 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
88 .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
89 .content span.associatedtype,
90 .content a.associatedtype,
91 .block a.current.associatedtype { color: #D2991D; }
92 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
93 .content span.attr, .content a.attr, .block a.current.attr,
94 .content span.derive, .content a.derive, .block a.current.derive,
95 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
96 .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
97 .content span.constant, .content a.constant, .block a.current.constant,
98 .content span.static, .content a.static, .block a.current.static { color: #D2991D; }
99 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
100 .content span.externcrate,
101 .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
102 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
103 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
104 .content span.fn, .content a.fn, .block a.current.fn,
105 .content span.method, .content a.method, .block a.current.method,
106 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
107 .content .fnname{ color: #2BAB63; }
108 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
109
110 .sidebar a { color: #fdbf35; }
111 .sidebar a.current.enum { color: #12ece2; }
112 .sidebar a.current.struct { color: #12ece2; }
113 .sidebar a.current.type { color: #12ece2; }
114 .sidebar a.current.associatedtype { color: #fdbf35; }
115 .sidebar a.current.foreigntype { color: #12ece2; }
116 .sidebar a.current.attr,
117 .sidebar a.current.derive,
118 .sidebar a.current.macro { color: #0be900; }
119 .sidebar a.current.union { color: #12ece2; }
120 .sidebar a.current.constant
121 .sidebar a.current.static { color: #fdbf35; }
122 .sidebar a.current.primitive { color: #12ece2; }
123 .sidebar a.current.externcrate
124 .sidebar a.current.mod { color: #fdbf35; }
125 .sidebar a.current.trait { color: #cca7ff; }
126 .sidebar a.current.traitalias { color: #cca7ff; }
127 .sidebar a.current.fn,
128 .sidebar a.current.method,
129 .sidebar a.current.tymethod { color: #32d479; }
130 .sidebar a.current.keyword { color: #fdbf35; }
131
132 pre.rust .comment { color: #8d8d8b; }
133 pre.rust .doccomment { color: #8ca375; }
134
135 a {
136         color: #D2991D;
137 }
138
139 body.source .example-wrap pre.rust a {
140         background: #333;
141 }
142
143 details.rustdoc-toggle > summary::before {
144         filter: invert(100%);
145 }
146
147 .search-input {
148         color: #111;
149 }
150
151 #crate-search-div::after {
152         /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
153         filter: invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);
154 }
155 #crate-search:hover, #crate-search:focus {
156         border-color: #2196f3 !important;
157 }
158 #crate-search-div:hover::after, #crate-search-div:focus-within::after {
159         filter: invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);
160 }
161
162 .stab { background: #314559; }
163
164 .stab.portability > code {
165         color: #e6e1cf;
166         background: none;
167 }
168
169 .line-numbers :target { background-color: transparent; }
170
171 /* Code highlighting */
172 pre.rust .kw { color: #ab8ac1; }
173 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
174 pre.rust .number, pre.rust .string { color: #83a300; }
175 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
176 pre.rust .attribute { color: #ee6868; }
177 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
178 pre.rust .lifetime { color: #d97f26; }
179 pre.rust .question-mark {
180         color: #ff9011;
181 }
182
183 .example-wrap > pre.line-number {
184         border-color: #4a4949;
185 }
186
187 a.test-arrow {
188         color: #dedede;
189         background-color: rgba(78, 139, 202, 0.2);
190 }
191
192 a.test-arrow:hover{
193         background-color: #4e8bca;
194 }
195
196 :target {
197         background-color: #494a3d;
198         border-right: 3px solid #bb7410;
199 }
200
201 .search-failed a {
202         color: #0089ff;
203 }
204
205 .tooltip::after {
206         background-color: #000;
207         color: #fff;
208         border-color: #000;
209 }
210
211 .tooltip::before {
212         border-color: transparent black transparent transparent;
213 }
214
215 .notable-traits-tooltiptext {
216         background-color: #111;
217 }
218
219 #titles > button:not(.selected) {
220         background-color: #252525;
221         border-top-color: #252525;
222 }
223
224 #titles > button:hover, #titles > button.selected {
225         border-top-color: #0089ff;
226         background-color: #353535;
227 }
228
229 #titles > button > div.count {
230         color: #888;
231 }
232
233 kbd {
234         color: #000;
235         background-color: #fafbfc;
236         box-shadow: inset 0 -1px 0 #c6cbd1;
237 }
238
239 #settings-menu > a, #help-button > button {
240         color: #000;
241 }
242
243 #settings-menu > a:hover, #settings-menu > a:focus,
244 #help-button > button:hover, #help-button > button:focus {
245         border-color: #ffb900;
246 }
247
248 .search-results .result-name span.alias {
249         color: #fff;
250 }
251 .search-results .result-name span.grey {
252         color: #ccc;
253 }
254
255 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
256 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
257         background-color: #444;
258 }
259 #source-sidebar div.files > a.selected {
260         background-color: #333;
261 }
262
263 .scraped-example-list .scrape-help {
264         border-color: #aaa;
265         color: #eee;
266 }
267 .scraped-example-list .scrape-help:hover {
268         border-color: white;
269         color: white;
270 }
271 .scraped-example .example-wrap .rust span.highlight {
272         background: rgb(91, 59, 1);
273 }
274 .scraped-example .example-wrap .rust span.highlight.focus {
275         background: rgb(124, 75, 15);
276 }
277 .scraped-example:not(.expanded) .code-wrapper:before {
278         background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
279 }
280 .scraped-example:not(.expanded) .code-wrapper:after {
281         background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
282 }
283 .toggle-line-inner {
284         background: #999;
285 }
286 .toggle-line:hover .toggle-line-inner {
287         background: #c5c5c5;
288 }