Skip to content

Commit

Permalink
Add invert-helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystalDelusion committed May 14, 2024
1 parent d3f1a68 commit 408b3b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/furo_ys/assets/styles/base/_theme.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ html body .only-dark
display: none !important
.only-dark
display: block !important
.invert-helper
filter: url("data:image/svg+xml,<svg xmlns='http%3A//www.w3.org/2000/svg'><filter id='f'><feColorMatrix color-interpolation-filters='sRGB' type='matrix' values='1.47 -1.73 -0.467 0 0.867 -0.733 0.467 -0.467 0 0.867 -0.667 -1.07 1.07 0 0.867 0 0 0 1.0 0'></feColorMatrix></filter></svg>#f")

// Enable dark mode, unless explicitly told to avoid.
@media (prefers-color-scheme: dark)
Expand All @@ -38,6 +40,8 @@ html body .only-dark
display: none !important
.only-dark
display: block !important
.invert-helper
filter: url("data:image/svg+xml,<svg xmlns='http%3A//www.w3.org/2000/svg'><filter id='f'><feColorMatrix color-interpolation-filters='sRGB' type='matrix' values='1.47 -1.73 -0.467 0 0.867 -0.733 0.467 -0.467 0 0.867 -0.667 -1.07 1.07 0 0.867 0 0 0 1.0 0'></feColorMatrix></filter></svg>#f")

//
// Theme toggle presentation
Expand Down

0 comments on commit 408b3b1

Please sign in to comment.