2 --main-background-color: white;
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%);
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 /* This rule exists to force other themes to explicitly style the logo.
35 * Rustdoc has a custom linter for this purpose.
41 background-color: #fff;
44 .line-numbers span { color: #c67e2d; }
45 .line-numbers .line-highlighted {
46 background-color: #FDFFD3 !important;
49 .search-results a:hover {
50 background-color: #ddd;
53 .search-results a:focus {
54 color: #000 !important;
55 background-color: #ccc;
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; }
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; }
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; }
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; }
79 .content .item-info::before { color: #ccc; }
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; }
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; }
131 body.source .example-wrap pre.rust a {
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%);
139 #crate-search:hover, #crate-search:focus {
140 border-color: #717171 !important;
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%);
146 .stab { background: #FFF5D6; border-color: #FFC600; }
147 .stab.portability > code { background: none; }
149 .line-numbers :target { background-color: transparent; }
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 {
165 .example-wrap > pre.line-number {
166 border-color: #c7c7c7;
171 background-color: rgba(78, 139, 202, 0.2);
175 background-color: #4e8bca;
180 border-right: 3px solid #AD7C37;
184 border-left: 2px solid rgba(255,0,0,.5);
187 pre.compile_fail:hover, .information:hover + pre.compile_fail {
188 border-left: 2px solid #f00;
192 border-left: 2px solid rgba(255,0,0,.5);
195 pre.should_panic:hover, .information:hover + pre.should_panic {
196 border-left: 2px solid #f00;
200 border-left: 2px solid rgba(255,142,0,.6);
203 pre.ignore:hover, .information:hover + pre.ignore {
204 border-left: 2px solid #ff9200;
207 .tooltip.compile_fail {
208 color: rgba(255,0,0,.5);
211 .information > .compile_fail:hover {
215 .tooltip.should_panic {
216 color: rgba(255,0,0,.5);
219 .information > .should_panic:hover {
224 color: rgba(255,142,0,.6);
227 .information > .ignore:hover {
236 background-color: #000;
241 border-color: transparent black transparent transparent;
244 .notable-traits-tooltiptext {
245 background-color: #eee;
248 #titles > button:not(.selected) {
249 background-color: #e6e6e6;
250 border-top-color: #e6e6e6;
253 #titles > button:hover, #titles > button.selected {
254 background-color: #ffffff;
255 border-top-color: #0089ff;
258 #titles > button > div.count {
264 background-color: #fafbfc;
265 box-shadow: inset 0 -1px 0 #c6cbd1;
268 #settings-menu > a:hover, #settings-menu > a:focus,
269 #help-button > button:hover, #help-button > button:focus {
270 border-color: #717171;
273 .search-results .result-name span.alias {
276 .search-results .result-name span.grey {
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;
284 #source-sidebar div.files > a.selected {
285 background-color: #fff;
287 .scraped-example-list .scrape-help {
291 .scraped-example-list .scrape-help:hover {
295 .scraped-example .example-wrap .rust span.highlight {
298 .scraped-example .example-wrap .rust span.highlight.focus {
301 .scraped-example:not(.expanded) .code-wrapper:before {
302 background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
304 .scraped-example:not(.expanded) .code-wrapper:after {
305 background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
310 .toggle-line:hover .toggle-line-inner {