Skip to content

Commit

Permalink
Rollup merge of rust-lang#57646 - GuillaumeGomez:fix-css, r=QuietMisd…
Browse files Browse the repository at this point in the history
…reavus

Fixes text becoming invisible when element targetted

Fixes rust-lang#57628.

r? @QuietMisdreavus
  • Loading branch information
Centril authored Jan 18, 2019
2 parents e264980 + feda604 commit b9e940c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions src/librustdoc/html/static/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -252,7 +246,7 @@ a.test-arrow:hover{
color: #999;
}

:target > code {
:target > code, :target > .in-band {
background-color: #494a3d;
}

Expand Down
8 changes: 1 addition & 7 deletions src/librustdoc/html/static/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -247,7 +241,7 @@ a.test-arrow:hover{
color: #999;
}

:target > code {
:target > code, :target > .in-band {
background: #FDFFD3;
}

Expand Down

0 comments on commit b9e940c

Please sign in to comment.