2 --main-background-color: #353535;
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%);
24 background-color: #ccc;
27 background-color: white;
29 input:focus + .slider {
30 box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
34 filter: drop-shadow(1px 0 0px #fff)
35 drop-shadow(0 1px 0 #fff)
36 drop-shadow(-1px 0 0 #fff)
37 drop-shadow(0 -1px 0 #fff)
45 .line-numbers span { color: #3B91E2; }
46 .line-numbers .line-highlighted {
47 background-color: #0a042f !important;
50 .search-results a:hover {
51 background-color: #777;
54 .search-results a:focus {
55 color: #eee !important;
56 background-color: #616161;
58 .search-results a:focus span { color: #eee !important; }
59 a.result-trait:focus { background-color: #013191; }
60 a.result-traitalias:focus { background-color: #013191; }
62 a.result-externcrate:focus { background-color: #884719; }
63 a.result-enum:focus { background-color: #194e9f; }
64 a.result-struct:focus { background-color: #194e9f; }
65 a.result-union:focus { background-color: #194e9f; }
67 a.result-method:focus,
68 a.result-tymethod:focus { background-color: #4950ed; }
69 a.result-type:focus { background-color: #194e9f; }
70 a.result-associatedtype:focus { background-color: #884719; }
71 a.result-foreigntype:focus { background-color: #194e9f; }
73 a.result-derive:focus,
74 a.result-macro:focus { background-color: #217d1c; }
75 a.result-constant:focus,
76 a.result-static:focus { background-color: #884719; }
77 a.result-primitive:focus { background-color: #194e9f; }
78 a.result-keyword:focus { background-color: #884719; }
80 .content .item-info::before { color: #ccc; }
82 .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
83 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
84 .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
85 .content span.associatedtype,
86 .content a.associatedtype,
87 .block a.current.associatedtype { color: #D2991D; }
88 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
89 .content span.attr, .content a.attr, .block a.current.attr,
90 .content span.derive, .content a.derive, .block a.current.derive,
91 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
92 .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
93 .content span.constant, .content a.constant, .block a.current.constant,
94 .content span.static, .content a.static, .block a.current.static { color: #D2991D; }
95 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
96 .content span.externcrate,
97 .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
98 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
99 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
100 .content span.fn, .content a.fn, .block a.current.fn,
101 .content span.method, .content a.method, .block a.current.method,
102 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
103 .content .fnname{ color: #2BAB63; }
104 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
106 .sidebar a { color: #fdbf35; }
107 .sidebar a.current.enum { color: #12ece2; }
108 .sidebar a.current.struct { color: #12ece2; }
109 .sidebar a.current.type { color: #12ece2; }
110 .sidebar a.current.associatedtype { color: #fdbf35; }
111 .sidebar a.current.foreigntype { color: #12ece2; }
112 .sidebar a.current.attr,
113 .sidebar a.current.derive,
114 .sidebar a.current.macro { color: #0be900; }
115 .sidebar a.current.union { color: #12ece2; }
116 .sidebar a.current.constant
117 .sidebar a.current.static { color: #fdbf35; }
118 .sidebar a.current.primitive { color: #12ece2; }
119 .sidebar a.current.externcrate
120 .sidebar a.current.mod { color: #fdbf35; }
121 .sidebar a.current.trait { color: #cca7ff; }
122 .sidebar a.current.traitalias { color: #cca7ff; }
123 .sidebar a.current.fn,
124 .sidebar a.current.method,
125 .sidebar a.current.tymethod { color: #32d479; }
126 .sidebar a.current.keyword { color: #fdbf35; }
128 pre.rust .comment { color: #8d8d8b; }
129 pre.rust .doccomment { color: #8ca375; }
135 body.source .example-wrap pre.rust a {
139 details.rustdoc-toggle > summary::before {
140 filter: invert(100%);
147 #crate-search-div::after {
148 /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
149 filter: invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);
151 #crate-search:hover, #crate-search:focus {
152 border-color: #2196f3 !important;
154 #crate-search-div:hover::after, #crate-search-div:focus-within::after {
155 filter: invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);
158 .stab { background: #314559; }
160 .stab.portability > code {
165 .line-numbers :target { background-color: transparent; }
167 /* Code highlighting */
168 pre.rust .kw { color: #ab8ac1; }
169 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
170 pre.rust .number, pre.rust .string { color: #83a300; }
171 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
172 pre.rust .attribute { color: #ee6868; }
173 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
174 pre.rust .lifetime { color: #d97f26; }
175 pre.rust .question-mark {
179 .example-wrap > pre.line-number {
180 border-color: #4a4949;
185 background-color: rgba(78, 139, 202, 0.2);
189 background-color: #4e8bca;
193 background-color: #494a3d;
194 border-right: 3px solid #bb7410;
198 border-left: 2px solid rgba(255,0,0,.8);
201 pre.compile_fail:hover, .information:hover + pre.compile_fail {
202 border-left: 2px solid #f00;
206 border-left: 2px solid rgba(255,0,0,.8);
209 pre.should_panic:hover, .information:hover + pre.should_panic {
210 border-left: 2px solid #f00;
214 border-left: 2px solid rgba(255,142,0,.6);
217 pre.ignore:hover, .information:hover + pre.ignore {
218 border-left: 2px solid #ff9200;
221 .tooltip.compile_fail {
222 color: rgba(255,0,0,.8);
225 .information > .compile_fail:hover {
229 .tooltip.should_panic {
230 color: rgba(255,0,0,.8);
233 .information > .should_panic:hover {
238 color: rgba(255,142,0,.6);
241 .information > .ignore:hover {
250 background-color: #000;
256 border-color: transparent black transparent transparent;
259 .notable-traits-tooltiptext {
260 background-color: #111;
263 #titles > button:not(.selected) {
264 background-color: #252525;
265 border-top-color: #252525;
268 #titles > button:hover, #titles > button.selected {
269 border-top-color: #0089ff;
270 background-color: #353535;
273 #titles > button > div.count {
279 background-color: #fafbfc;
280 box-shadow: inset 0 -1px 0 #c6cbd1;
283 #settings-menu > a, #help-button > button {
287 #settings-menu > a:hover, #settings-menu > a:focus,
288 #help-button > button:hover, #help-button > button:focus {
289 border-color: #ffb900;
292 .search-results .result-name span.alias {
295 .search-results .result-name span.grey {
299 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
300 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
301 background-color: #444;
303 #source-sidebar div.files > a.selected {
304 background-color: #333;
307 .scraped-example-list .scrape-help {
311 .scraped-example-list .scrape-help:hover {
315 .scraped-example .example-wrap .rust span.highlight {
316 background: rgb(91, 59, 1);
318 .scraped-example .example-wrap .rust span.highlight.focus {
319 background: rgb(124, 75, 15);
321 .scraped-example:not(.expanded) .code-wrapper:before {
322 background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
324 .scraped-example:not(.expanded) .code-wrapper:after {
325 background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
330 .toggle-line:hover .toggle-line-inner {