Skip to content

Commit b2becf0

Browse files
authored
Rollup merge of rust-lang#85470 - GuillaumeGomez:fix-css-rules, r=jsha
Fix invalid CSS rules for a:hover When hovering some links: ![Screenshot from 2021-05-19 15-00-31](https://user-images.githubusercontent.com/3050060/118823585-5f2a4b80-b8b9-11eb-8043-bb7759a178c7.png) ![Screenshot from 2021-05-19 15-00-29](https://user-images.githubusercontent.com/3050060/118823566-5b96c480-b8b9-11eb-8c4e-08e490752fbf.png) It is a side-effect from rust-lang#84462. r? ```@jsha```
2 parents 2065c4b + ec32bcf commit b2becf0

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/librustdoc/html/static/themes/ayu.css

+2-5
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,14 @@ pre, .rustdoc.source .example-wrap {
151151
color: #c5c5c5;
152152
}
153153

154-
.content a:hover {
154+
.search-results a:hover {
155155
background-color: #777;
156156
}
157157

158-
.content a:focus {
158+
.search-results a:focus {
159159
color: #000 !important;
160160
background-color: #c6afb3;
161161
}
162-
.content a:focus {
163-
color: #000 !important;
164-
}
165162
.search-results a {
166163
color: #0096cf;
167164
}

src/librustdoc/html/static/themes/dark.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ pre, .rustdoc.source .example-wrap {
109109
color: #ddd;
110110
}
111111

112-
.content a:hover {
112+
.search-results a:hover {
113113
background-color: #777;
114114
}
115115

116-
.content a:focus {
116+
.search-results a:focus {
117117
color: #eee !important;
118118
background-color: #616161;
119119
}

src/librustdoc/html/static/themes/light.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ pre, .rustdoc.source .example-wrap {
109109
color: #4E4C4C;
110110
}
111111

112-
.content a:hover {
112+
.search-results a:hover {
113113
background-color: #ddd;
114114
}
115115

116-
.content a:focus {
116+
.search-results a:focus {
117117
color: #000 !important;
118118
background-color: #ccc;
119119
}

0 commit comments

Comments
 (0)