Skip to content

Commit 16bcbc5

Browse files
authored
Rollup merge of rust-lang#57646 - GuillaumeGomez:fix-css, r=QuietMisdreavus
Fixes text becoming invisible when element targetted Fixes rust-lang#57628. r? @QuietMisdreavus
2 parents 18c5ac6 + feda604 commit 16bcbc5

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

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

+1-7
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ pre {
8282
border-bottom-color: #ddd;
8383
}
8484

85-
:target { background: #494a3d; }
86-
87-
:target > .in-band {
88-
background: #494a3d;
89-
}
90-
9185
.content .method .where,
9286
.content .fn .where,
9387
.content .where.fmt-newline {
@@ -252,7 +246,7 @@ a.test-arrow:hover{
252246
color: #999;
253247
}
254248

255-
:target > code {
249+
:target > code, :target > .in-band {
256250
background-color: #494a3d;
257251
}
258252

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

+1-7
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ pre {
8484
border-bottom-color: #ddd;
8585
}
8686

87-
:target { background: #FDFFD3; }
88-
89-
:target > .in-band {
90-
background: #FDFFD3;
91-
}
92-
9387
.content .method .where,
9488
.content .fn .where,
9589
.content .where.fmt-newline {
@@ -247,7 +241,7 @@ a.test-arrow:hover{
247241
color: #999;
248242
}
249243

250-
:target > code {
244+
:target > code, :target > .in-band {
251245
background: #FDFFD3;
252246
}
253247

0 commit comments

Comments
 (0)