1 // This test checks links colors in sidebar before and after hover.
2 goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
4 // This is needed so that the text color is computed.
9 "rustdoc-theme": "ayu",
10 "rustdoc-use-system-theme": "false",
16 ".sidebar .block.struct a:not(.current)",
17 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
19 move-cursor-to: ".sidebar .block.struct a:not(.current)"
21 ".sidebar .block.struct a:hover",
22 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
26 ".sidebar .block.enum a",
27 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
29 move-cursor-to: ".sidebar .block.enum a"
31 ".sidebar .block.enum a:hover",
32 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
36 ".sidebar .block.union a",
37 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
39 move-cursor-to: ".sidebar .block.union a"
41 ".sidebar .block.union a:hover",
42 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
46 ".sidebar .block.trait a",
47 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
49 move-cursor-to: ".sidebar .block.trait a"
51 ".sidebar .block.trait a:hover",
52 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
56 ".sidebar .block.fn a",
57 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
59 move-cursor-to: ".sidebar .block.fn a"
61 ".sidebar .block.fn a:hover",
62 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
66 ".sidebar .block.type a",
67 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
69 move-cursor-to: ".sidebar .block.type a"
71 ".sidebar .block.type a:hover",
72 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
76 ".sidebar .block.keyword a",
77 {"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)"},
79 move-cursor-to: ".sidebar .block.keyword a"
81 ".sidebar .block.keyword a:hover",
82 {"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)"},
86 local-storage: {"rustdoc-theme": "dark"}
91 ".sidebar .block.struct a:not(.current)",
92 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
94 move-cursor-to: ".sidebar .block.struct a:not(.current)"
96 ".sidebar .block.struct a:hover",
97 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
101 ".sidebar .block.enum a",
102 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
104 move-cursor-to: ".sidebar .block.enum a"
106 ".sidebar .block.enum a:hover",
107 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
111 ".sidebar .block.union a",
112 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
114 move-cursor-to: ".sidebar .block.union a"
116 ".sidebar .block.union a:hover",
117 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
121 ".sidebar .block.trait a",
122 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
124 move-cursor-to: ".sidebar .block.trait a"
126 ".sidebar .block.trait a:hover",
127 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
131 ".sidebar .block.fn a",
132 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
134 move-cursor-to: ".sidebar .block.fn a"
136 ".sidebar .block.fn a:hover",
137 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
141 ".sidebar .block.type a",
142 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
144 move-cursor-to: ".sidebar .block.type a"
146 ".sidebar .block.type a:hover",
147 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
151 ".sidebar .block.keyword a",
152 {"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)"},
154 move-cursor-to: ".sidebar .block.keyword a"
156 ".sidebar .block.keyword a:hover",
157 {"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)"},
161 local-storage: {"rustdoc-theme": "light"}
166 ".sidebar .block.struct a:not(.current)",
167 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
169 move-cursor-to: ".sidebar .block.struct a:not(.current)"
171 ".sidebar .block.struct a:hover",
172 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},
176 ".sidebar .block.enum a",
177 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
179 move-cursor-to: ".sidebar .block.enum a"
181 ".sidebar .block.enum a:hover",
182 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},
186 ".sidebar .block.union a",
187 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
189 move-cursor-to: ".sidebar .block.union a"
191 ".sidebar .block.union a:hover",
192 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},
196 ".sidebar .block.trait a",
197 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
199 move-cursor-to: ".sidebar .block.trait a"
201 ".sidebar .block.trait a:hover",
202 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},
206 ".sidebar .block.fn a",
207 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
209 move-cursor-to: ".sidebar .block.fn a"
211 ".sidebar .block.fn a:hover",
212 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},
216 ".sidebar .block.type a",
217 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
219 move-cursor-to: ".sidebar .block.type a"
221 ".sidebar .block.type a:hover",
222 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},
226 ".sidebar .block.keyword a",
227 {"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)"},
229 move-cursor-to: ".sidebar .block.keyword a"
231 ".sidebar .block.keyword a:hover",
232 {"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)"},