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;
17 background-color: #ccc;
20 background-color: white;
22 input:focus + .slider {
23 box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
27 filter: drop-shadow(1px 0 0px #fff)
28 drop-shadow(0 1px 0 #fff)
29 drop-shadow(-1px 0 0 #fff)
30 drop-shadow(0 -1px 0 #fff)
38 .line-numbers span { color: #3B91E2; }
39 .line-numbers .line-highlighted {
40 background-color: #0a042f !important;
43 .search-results a:hover {
44 background-color: #777;
47 .search-results a:focus {
48 color: #eee !important;
49 background-color: #616161;
51 .search-results a:focus span { color: #eee !important; }
52 a.result-trait:focus { background-color: #013191; }
53 a.result-traitalias:focus { background-color: #013191; }
55 a.result-externcrate:focus { background-color: #884719; }
56 a.result-enum:focus { background-color: #194e9f; }
57 a.result-struct:focus { background-color: #194e9f; }
58 a.result-union:focus { background-color: #194e9f; }
60 a.result-method:focus,
61 a.result-tymethod:focus { background-color: #4950ed; }
62 a.result-type:focus { background-color: #194e9f; }
63 a.result-associatedtype:focus { background-color: #884719; }
64 a.result-foreigntype:focus { background-color: #194e9f; }
66 a.result-derive:focus,
67 a.result-macro:focus { background-color: #217d1c; }
68 a.result-constant:focus,
69 a.result-static:focus { background-color: #884719; }
70 a.result-primitive:focus { background-color: #194e9f; }
71 a.result-keyword:focus { background-color: #884719; }
73 .content .item-info::before { color: #ccc; }
75 .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
76 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
77 .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
78 .content span.associatedtype,
79 .content a.associatedtype,
80 .block a.current.associatedtype { color: #D2991D; }
81 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
82 .content span.attr, .content a.attr, .block a.current.attr,
83 .content span.derive, .content a.derive, .block a.current.derive,
84 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
85 .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
86 .content span.constant, .content a.constant, .block a.current.constant,
87 .content span.static, .content a.static, .block a.current.static { color: #D2991D; }
88 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
89 .content span.externcrate,
90 .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
91 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
92 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
93 .content span.fn, .content a.fn, .block a.current.fn,
94 .content span.method, .content a.method, .block a.current.method,
95 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
96 .content .fnname{ color: #2BAB63; }
97 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
99 .sidebar a { color: #fdbf35; }
100 .sidebar a.current.enum { color: #12ece2; }
101 .sidebar a.current.struct { color: #12ece2; }
102 .sidebar a.current.type { color: #12ece2; }
103 .sidebar a.current.associatedtype { color: #fdbf35; }
104 .sidebar a.current.foreigntype { color: #12ece2; }
105 .sidebar a.current.attr,
106 .sidebar a.current.derive,
107 .sidebar a.current.macro { color: #0be900; }
108 .sidebar a.current.union { color: #12ece2; }
109 .sidebar a.current.constant
110 .sidebar a.current.static { color: #fdbf35; }
111 .sidebar a.current.primitive { color: #12ece2; }
112 .sidebar a.current.externcrate
113 .sidebar a.current.mod { color: #fdbf35; }
114 .sidebar a.current.trait { color: #cca7ff; }
115 .sidebar a.current.traitalias { color: #cca7ff; }
116 .sidebar a.current.fn,
117 .sidebar a.current.method,
118 .sidebar a.current.tymethod { color: #32d479; }
119 .sidebar a.current.keyword { color: #fdbf35; }
121 pre.rust .comment { color: #8d8d8b; }
122 pre.rust .doccomment { color: #8ca375; }
128 body.source .example-wrap pre.rust a {
132 details.rustdoc-toggle > summary.hideme > span,
133 details.rustdoc-toggle > summary::before {
137 details.rustdoc-toggle > summary::before {
138 filter: invert(100%);
143 border-color: #f0f0f0;
146 #crate-search-div::after {
147 /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
148 filter: invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);
150 #crate-search:hover, #crate-search:focus {
151 border-color: #2196f3 !important;
153 #crate-search-div:hover::after, #crate-search-div:focus-within::after {
154 filter: invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);
157 .search-input:focus {
158 border-color: #008dfd;
161 .stab { background: #314559; }
163 .stab.portability > code {
173 .line-numbers :target { background-color: transparent; }
175 /* Code highlighting */
176 pre.rust .kw { color: #ab8ac1; }
177 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
178 pre.rust .number, pre.rust .string { color: #83a300; }
179 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
180 pre.rust .attribute { color: #ee6868; }
181 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
182 pre.rust .lifetime { color: #d97f26; }
183 pre.rust .question-mark {
187 .example-wrap > pre.line-number {
188 border-color: #4a4949;
193 background-color: rgba(78, 139, 202, 0.2);
197 background-color: #4e8bca;
206 background-color: #494a3d;
207 border-right: 3px solid #bb7410;
211 border-left: 2px solid rgba(255,0,0,.8);
214 pre.compile_fail:hover, .information:hover + pre.compile_fail {
215 border-left: 2px solid #f00;
219 border-left: 2px solid rgba(255,0,0,.8);
222 pre.should_panic:hover, .information:hover + pre.should_panic {
223 border-left: 2px solid #f00;
227 border-left: 2px solid rgba(255,142,0,.6);
230 pre.ignore:hover, .information:hover + pre.ignore {
231 border-left: 2px solid #ff9200;
234 .tooltip.compile_fail {
235 color: rgba(255,0,0,.8);
238 .information > .compile_fail:hover {
242 .tooltip.should_panic {
243 color: rgba(255,0,0,.8);
246 .information > .should_panic:hover {
251 color: rgba(255,142,0,.6);
254 .information > .ignore:hover {
263 background-color: #000;
269 border-color: transparent black transparent transparent;
272 .notable-traits-tooltiptext {
273 background-color: #111;
276 #titles > button:not(.selected) {
277 background-color: #252525;
278 border-top-color: #252525;
281 #titles > button:hover, #titles > button.selected {
282 border-top-color: #0089ff;
283 background-color: #353535;
286 #titles > button > div.count {
292 background-color: #fafbfc;
293 box-shadow: inset 0 -1px 0 #c6cbd1;
296 #settings-menu > a, #help-button > button {
300 #settings-menu > a:hover, #settings-menu > a:focus,
301 #help-button > button:hover, #help-button > button:focus {
302 border-color: #ffb900;
311 #copy-path:hover > img {
315 .search-results .result-name span.alias {
318 .search-results .result-name span.grey {
322 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
323 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
324 background-color: #444;
326 #source-sidebar div.files > a.selected {
327 background-color: #333;
330 .scraped-example-list .scrape-help {
334 .scraped-example-list .scrape-help:hover {
338 .more-examples-toggle summary, .more-examples-toggle .hide-more {
341 .scraped-example .example-wrap .rust span.highlight {
342 background: rgb(91, 59, 1);
344 .scraped-example .example-wrap .rust span.highlight.focus {
345 background: rgb(124, 75, 15);
347 .scraped-example:not(.expanded) .code-wrapper:before {
348 background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
350 .scraped-example:not(.expanded) .code-wrapper:after {
351 background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
356 .toggle-line:hover .toggle-line-inner {