Skip to content

Commit

Permalink
style: add a way to use different images on dark & light themes (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Mar 14, 2023
1 parent 0588ce8 commit db39cd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,8 @@
padding: var(--ifm-global-spacing);
transition: border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
}

[data-theme='light'] img[src$='#dark-mode'],
[data-theme='dark'] img[src$='#light-mode'] {
display: none;
}

0 comments on commit db39cd6

Please sign in to comment.