]> git.lizzy.rs Git - rust.git/commitdiff
Fixes text becoming invisible when element targetted
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 15 Jan 2019 22:21:10 +0000 (23:21 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 15 Jan 2019 22:21:36 +0000 (23:21 +0100)
src/librustdoc/html/static/themes/dark.css
src/librustdoc/html/static/themes/light.css

index 1390be700634dc322a08d717c52ca360d5993703..52a30967a2310a65ad1aea5ff6d3039eaba7404e 100644 (file)
@@ -82,12 +82,6 @@ pre {
        border-bottom-color: #ddd;
 }
 
-:target { background: #494a3d; }
-
-:target > .in-band {
-       background: #494a3d;
-}
-
 .content .method .where,
 .content .fn .where,
 .content .where.fmt-newline {
@@ -252,7 +246,7 @@ a.test-arrow:hover{
        color: #999;
 }
 
-:target > code {
+:target > code, :target > .in-band {
        background-color: #494a3d;
 }
 
index 2b04dd2388d456ff07e5a4691ea294bd013f9c35..d20fea666e61da75955ef306f02037ea239ec32f 100644 (file)
@@ -84,12 +84,6 @@ pre {
        border-bottom-color: #ddd;
 }
 
-:target { background: #FDFFD3; }
-
-:target > .in-band {
-       background: #FDFFD3;
-}
-
 .content .method .where,
 .content .fn .where,
 .content .where.fmt-newline {
@@ -247,7 +241,7 @@ a.test-arrow:hover{
        color: #999;
 }
 
-:target > code {
+:target > code, :target > .in-band {
        background: #FDFFD3;
 }