Skip to content

Commit ec32bcf

Browse files
Fix invalid CSS rules for a:hover
1 parent be8450e commit ec32bcf

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)