Skip to content

Commit

Permalink
style/darkmode: fix header icon not reversing
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <lucas59356@gmail.com>
  • Loading branch information
lucasew committed Aug 28, 2021
1 parent 5794604 commit a8059c2
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,6 @@ header {
align-items: center;
}

.icon {
width: 20px;
height: 20px;
float: left;
padding-right: 10px;

background-repeat: no-repeat;
background-size: contain;
}

.toc ul li a {
text-decoration: none;
color: var(--text-color);
Expand Down Expand Up @@ -166,7 +156,20 @@ header {
filter: grayscale(100%);
}

body.dark a.with-icon {
.icon {
width: 20px;
height: 20px;
float: left;
padding-right: 10px;

background-repeat: no-repeat;
background-size: contain;
}



body.dark .with-icon,
body.dark .icon {
filter: grayscale(100%) invert(100%);
/* it's expected that the foreground color is the reverse of the background color */
color: var(--background-color);
Expand Down

0 comments on commit a8059c2

Please sign in to comment.