File tree 4 files changed +14
-20
lines changed
src/librustdoc/html/static/css
4 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -1345,6 +1345,13 @@ a.test-arrow:hover {
1345
1345
border-bottom : 1px solid var (--border-color );
1346
1346
margin-bottom : 6px ;
1347
1347
}
1348
+ # source-sidebar div .files > a : hover , details .dir-entry summary : hover ,
1349
+ # source-sidebar div .files > a : focus , details .dir-entry summary : focus {
1350
+ background-color : var (--source-sidebar-background-hover );
1351
+ }
1352
+ # source-sidebar div .files > a .selected {
1353
+ background-color : var (--source-sidebar-background-selected );
1354
+ }
1348
1355
# sidebar-toggle > button {
1349
1356
font-size : inherit;
1350
1357
font-weight : bold;
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ Original by Dempfi (https://github.com/dempfi/ayu)
84
84
--crate-search-div-hover-filter : invert (98% ) sepia (12% ) saturate (81% ) hue-rotate (343deg )
85
85
brightness (113% ) contrast (76% );
86
86
--crate-search-hover-border : # e0e0e0 ;
87
+ --source-sidebar-background-selected : # 14191f ;
88
+ --source-sidebar-background-hover : # 14191f ;
87
89
}
88
90
89
91
h1 , h2 , h3 , h4 {
@@ -208,12 +210,8 @@ pre.rust .kw-2, pre.rust .prelude-ty {}
208
210
color : # fff ;
209
211
}
210
212
# source-sidebar div .files > a : hover , details .dir-entry summary : hover ,
211
- # source-sidebar div .files > a : focus , details .dir-entry summary : focus {
212
- background-color : # 14191f ;
213
- color : # ffb44c ;
214
- }
213
+ # source-sidebar div .files > a : focus , details .dir-entry summary : focus ,
215
214
# source-sidebar div .files > a .selected {
216
- background-color : # 14191f ;
217
215
color : # ffb44c ;
218
216
}
219
217
Original file line number Diff line number Diff line change 79
79
--crate-search-div-hover-filter : invert (69% ) sepia (60% ) saturate (6613% ) hue-rotate (184deg )
80
80
brightness (100% ) contrast (91% );
81
81
--crate-search-hover-border : # 2196f3 ;
82
+ --source-sidebar-background-selected : # 333 ;
83
+ --source-sidebar-background-hover : # 444 ;
82
84
}
83
85
84
86
.content .item-info ::before { color : # ccc ; }
@@ -105,14 +107,6 @@ details.rustdoc-toggle > summary::before {
105
107
color : # 888 ;
106
108
}
107
109
108
- # source-sidebar div .files > a : hover , details .dir-entry summary : hover ,
109
- # source-sidebar div .files > a : focus , details .dir-entry summary : focus {
110
- background-color : # 444 ;
111
- }
112
- # source-sidebar div .files > a .selected {
113
- background-color : # 333 ;
114
- }
115
-
116
110
.scraped-example-list .scrape-help {
117
111
border-color : # aaa ;
118
112
color : # eee ;
Original file line number Diff line number Diff line change 76
76
--crate-search-div-hover-filter : invert (44% ) sepia (18% ) saturate (23% ) hue-rotate (317deg )
77
77
brightness (96% ) contrast (93% );
78
78
--crate-search-hover-border : # 717171 ;
79
+ --source-sidebar-background-selected : # fff ;
80
+ --source-sidebar-background-hover : # e0e0e0 ;
79
81
}
80
82
81
83
.content .item-info ::before { color : # ccc ; }
@@ -98,13 +100,6 @@ body.source .example-wrap pre.rust a {
98
100
color : # 888 ;
99
101
}
100
102
101
- # source-sidebar div .files > a : hover , details .dir-entry summary : hover ,
102
- # source-sidebar div .files > a : focus , details .dir-entry summary : focus {
103
- background-color : # E0E0E0 ;
104
- }
105
- # source-sidebar div .files > a .selected {
106
- background-color : # fff ;
107
- }
108
103
.scraped-example-list .scrape-help {
109
104
border-color : # 555 ;
110
105
color : # 333 ;
You can’t perform that action at this time.
0 commit comments