File tree 4 files changed +18
-30
lines changed
src/librustdoc/html/static/css 4 files changed +18
-30
lines changed Original file line number Diff line number Diff line change @@ -1204,6 +1204,12 @@ a.test-arrow {
1204
1204
top : 5px ;
1205
1205
right : 5px ;
1206
1206
z-index : 1 ;
1207
+ color : var (--test-arrow-color );
1208
+ background-color : var (--test-arrow-background-color );
1209
+ }
1210
+ a .test-arrow : hover {
1211
+ color : var (--test-arrow-hover-color );
1212
+ background-color : var (--test-arrow-hover-background-color );
1207
1213
}
1208
1214
.example-wrap : hover .test-arrow {
1209
1215
visibility : visible;
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ Original by Dempfi (https://github.com/dempfi/ayu)
58
58
--example-line-numbers-border-color : none;
59
59
--src-line-numbers-span-color : # 5c6773 ;
60
60
--src-line-number-highlighted-background-color : rgba (255 , 236 , 164 , 0.06 );
61
+ --test-arrow-color : # 788797 ;
62
+ --test-arrow-background-color : rgba (57 , 175 , 215 , 0.09 );
63
+ --test-arrow-hover-color : # c5c5c5 ;
64
+ --test-arrow-hover-background-color : rgba (57 , 175 , 215 , 0.368 );
61
65
}
62
66
63
67
.slider {
@@ -171,18 +175,6 @@ details.rustdoc-toggle > summary::before {
171
175
color : # 788797 ;
172
176
}
173
177
174
- a .test-arrow {
175
- font-size : 100% ;
176
- color : # 788797 ;
177
- border-radius : 4px ;
178
- background-color : rgba (57 , 175 , 215 , 0.09 );
179
- }
180
-
181
- a .test-arrow : hover {
182
- background-color : rgba (57 , 175 , 215 , 0.368 );
183
- color : # c5c5c5 ;
184
- }
185
-
186
178
: target {
187
179
background : rgba (255 , 236 , 164 , 0.06 );
188
180
border-right : 3px solid rgba (255 , 180 , 76 , 0.85 );
Original file line number Diff line number Diff line change 53
53
--example-line-numbers-border-color : # 4a4949 ;
54
54
--src-line-numbers-span-color : # 3b91e2 ;
55
55
--src-line-number-highlighted-background-color : # 0a042f ;
56
+ --test-arrow-color : # dedede ;
57
+ --test-arrow-background-color : rgba (78 , 139 , 202 , 0.2 );
58
+ --test-arrow-hover-color : # dedede ;
59
+ --test-arrow-hover-background-color : # 4e8bca ;
56
60
}
57
61
58
62
.slider {
@@ -93,15 +97,6 @@ details.rustdoc-toggle > summary::before {
93
97
filter : invert (69% ) sepia (60% ) saturate (6613% ) hue-rotate (184deg ) brightness (100% ) contrast (91% );
94
98
}
95
99
96
- a .test-arrow {
97
- color : # dedede ;
98
- background-color : rgba (78 , 139 , 202 , 0.2 );
99
- }
100
-
101
- a .test-arrow : hover {
102
- background-color : # 4e8bca ;
103
- }
104
-
105
100
: target {
106
101
background-color : # 494a3d ;
107
102
border-right : 3px solid # bb7410 ;
Original file line number Diff line number Diff line change 53
53
--example-line-numbers-border-color : # c7c7c7 ;
54
54
--src-line-numbers-span-color : # c67e2d ;
55
55
--src-line-number-highlighted-background-color : # fdffd3 ;
56
+ --test-arrow-color : # f5f5f5 ;
57
+ --test-arrow-background-color : rgba (78 , 139 , 202 , 0.2 );
58
+ --test-arrow-hover-color : # f5f5f5 ;
59
+ --test-arrow-hover-background-color : # 4e8bca ;
56
60
}
57
61
58
62
.slider {
@@ -88,15 +92,6 @@ body.source .example-wrap pre.rust a {
88
92
filter : invert (44% ) sepia (18% ) saturate (23% ) hue-rotate (317deg ) brightness (96% ) contrast (93% );
89
93
}
90
94
91
- a .test-arrow {
92
- color : # f5f5f5 ;
93
- background-color : rgba (78 , 139 , 202 , 0.2 );
94
- }
95
-
96
- a .test-arrow : hover {
97
- background-color : # 4e8bca ;
98
- }
99
-
100
95
: target {
101
96
background : # FDFFD3 ;
102
97
border-right : 3px solid # AD7C37 ;
You can’t perform that action at this time.
0 commit comments