File tree 4 files changed +27
-34
lines changed
src/librustdoc/html/static/css
4 files changed +27
-34
lines changed Original file line number Diff line number Diff line change @@ -830,6 +830,9 @@ table,
830
830
line-height : 1.5 ;
831
831
font-weight : 500 ;
832
832
}
833
+ # crate-search : hover , # crate-search : focus {
834
+ border-color : var (--crate-search-hover-border );
835
+ }
833
836
/* cancel stylistic differences in padding in firefox
834
837
for "appearance: none"-style (or equivalent) <select>s */
835
838
@-moz-document url-prefix() {
@@ -853,8 +856,13 @@ so that we can apply CSS-filters to change the arrow color in themes */
853
856
background-repeat : no-repeat;
854
857
background-size : 20px ;
855
858
background-position : calc (100% - 2px ) 56% ;
856
- /* image is black color, themes should apply a "filter" property to change the color */
859
+ /* image is black color */
857
860
background-image : url ("down-arrow-927217e04c7463ac.svg" );
861
+ /* changes the arrow image color */
862
+ filter : var (--crate-search-div-filter );
863
+ }
864
+ # crate-search-div : hover ::after , # crate-search-div : focus-within ::after {
865
+ filter : var (--crate-search-div-hover-filter );
858
866
}
859
867
# crate-search > option {
860
868
font-size : 1rem ;
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ Original by Dempfi (https://github.com/dempfi/ayu)
67
67
drop-shadow (0 1px 0 # fff )
68
68
drop-shadow (-1px 0 0 # fff )
69
69
drop-shadow (0 -1px 0 # fff );
70
+ /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
71
+ --crate-search-div-filter : invert (41% ) sepia (12% ) saturate (487% ) hue-rotate (171deg )
72
+ brightness (94% ) contrast (94% );
73
+ --crate-search-div-hover-filter : invert (98% ) sepia (12% ) saturate (81% ) hue-rotate (343deg )
74
+ brightness (113% ) contrast (76% );
75
+ --crate-search-hover-border : # e0e0e0 ;
70
76
}
71
77
72
78
.slider {
@@ -153,17 +159,6 @@ details.rustdoc-toggle > summary::before {
153
159
filter : invert (100% );
154
160
}
155
161
156
- # crate-search-div ::after {
157
- /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
158
- filter : invert (41% ) sepia (12% ) saturate (487% ) hue-rotate (171deg ) brightness (94% ) contrast (94% );
159
- }
160
- # crate-search : hover , # crate-search : focus {
161
- border-color : # e0e0e0 !important ;
162
- }
163
- # crate-search-div : hover ::after , # crate-search-div : focus-within ::after {
164
- filter : invert (98% ) sepia (12% ) saturate (81% ) hue-rotate (343deg ) brightness (113% ) contrast (76% );
165
- }
166
-
167
162
.module-item .stab ,
168
163
.import-item .stab {
169
164
color : # 000 ;
Original file line number Diff line number Diff line change 62
62
drop-shadow (0 1px 0 # fff )
63
63
drop-shadow (-1px 0 0 # fff )
64
64
drop-shadow (0 -1px 0 # fff );
65
+ /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
66
+ --crate-search-div-filter : invert (94% ) sepia (0% ) saturate (721% ) hue-rotate (255deg )
67
+ brightness (90% ) contrast (90% );
68
+ --crate-search-div-hover-filter : invert (69% ) sepia (60% ) saturate (6613% ) hue-rotate (184deg )
69
+ brightness (100% ) contrast (91% );
70
+ --crate-search-hover-border : # 2196f3 ;
65
71
}
66
72
67
73
.slider {
@@ -84,17 +90,6 @@ details.rustdoc-toggle > summary::before {
84
90
filter : invert (100% );
85
91
}
86
92
87
- # crate-search-div ::after {
88
- /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
89
- filter : invert (94% ) sepia (0% ) saturate (721% ) hue-rotate (255deg ) brightness (90% ) contrast (90% );
90
- }
91
- # crate-search : hover , # crate-search : focus {
92
- border-color : # 2196f3 !important ;
93
- }
94
- # crate-search-div : hover ::after , # crate-search-div : focus-within ::after {
95
- filter : invert (69% ) sepia (60% ) saturate (6613% ) hue-rotate (184deg ) brightness (100% ) contrast (91% );
96
- }
97
-
98
93
: target {
99
94
background-color : # 494a3d ;
100
95
border-right : 3px solid # bb7410 ;
Original file line number Diff line number Diff line change 59
59
--test-arrow-hover-color : # f5f5f5 ;
60
60
--test-arrow-hover-background-color : # 4e8bca ;
61
61
--rust-logo-filter : initial;
62
+ /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
63
+ --crate-search-div-filter : invert (100% ) sepia (0% ) saturate (4223% ) hue-rotate (289deg )
64
+ brightness (114% ) contrast (76% );
65
+ --crate-search-div-hover-filter : invert (44% ) sepia (18% ) saturate (23% ) hue-rotate (317deg )
66
+ brightness (96% ) contrast (93% );
67
+ --crate-search-hover-border : # 717171 ;
62
68
}
63
69
64
70
.slider {
@@ -77,17 +83,6 @@ body.source .example-wrap pre.rust a {
77
83
background : # eee ;
78
84
}
79
85
80
- # crate-search-div ::after {
81
- /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
82
- filter : invert (100% ) sepia (0% ) saturate (4223% ) hue-rotate (289deg ) brightness (114% ) contrast (76% );
83
- }
84
- # crate-search : hover , # crate-search : focus {
85
- border-color : # 717171 !important ;
86
- }
87
- # crate-search-div : hover ::after , # crate-search-div : focus-within ::after {
88
- filter : invert (44% ) sepia (18% ) saturate (23% ) hue-rotate (317deg ) brightness (96% ) contrast (93% );
89
- }
90
-
91
86
: target {
92
87
background : # FDFFD3 ;
93
88
border-right : 3px solid # AD7C37 ;
You can’t perform that action at this time.
0 commit comments