Skip to content

Commit 4729f22

Browse files
committed
Fixed changes to .in-band CSS
:target will specifically override .in-band background
1 parent c8d58a3 commit 4729f22

File tree

1 file changed

+9
-0
lines changed
  • src/librustdoc/html/static/styles

1 file changed

+9
-0
lines changed

src/librustdoc/html/static/styles/main.css

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.t
2727
border-bottom-color: #DDDDDD;
2828
}
2929

30+
.in-band {
31+
background-color: white;
32+
}
33+
3034
.docblock code, .docblock-short code {
3135
background-color: #F5F5F5;
3236
}
@@ -80,6 +84,11 @@ pre {
8084
}
8185

8286
:target { background: #FDFFD3; }
87+
88+
:target > .in-band {
89+
background: #FDFFD3;
90+
}
91+
8392
.content .highlighted {
8493
color: #000 !important;
8594
background-color: #ccc;

0 commit comments

Comments
 (0)