Skip to content

Commit 3b70c6e

Browse files
Simplify :target CSS selector
1 parent a0085f2 commit 3b70c6e

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,8 @@ a.test-arrow:hover {
351351
color: #999;
352352
}
353353

354-
:target, :target > * {
355-
background: rgba(255, 236, 164, 0.06);
356-
}
357-
358354
:target {
355+
background: rgba(255, 236, 164, 0.06);
359356
border-right: 3px solid rgba(255, 180, 76, 0.85);
360357
}
361358

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,8 @@ a.test-arrow:hover{
295295
color: #999;
296296
}
297297

298-
:target, :target > * {
299-
background-color: #494a3d;
300-
}
301-
302298
:target {
299+
background-color: #494a3d;
303300
border-right: 3px solid #bb7410;
304301
}
305302

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,8 @@ a.test-arrow:hover{
284284
color: #999;
285285
}
286286

287-
:target, :target > * {
288-
background: #FDFFD3;
289-
}
290-
291287
:target {
288+
background: #FDFFD3;
292289
border-right: 3px solid #AD7C37;
293290
}
294291

0 commit comments

Comments
 (0)