Last active
February 26, 2020 20:19
-
-
Save eddiesigner/16ebf095e483c7ce5fccf90a9accbbe1 to your computer and use it in GitHub Desktop.
Weiss Pro logo filter for dark mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
[data-theme="dark"] .m-logo.in-desktop-topbar img, | |
[data-theme="dark"] .m-logo.in-mobile-topbar img { | |
filter: invert(); | |
} | |
@media (prefers-color-scheme: dark) { | |
.m-logo.in-desktop-topbar img, | |
.m-logo.in-mobile-topbar img { | |
filter: invert(); | |
} | |
[data-theme="light"] .m-logo.in-desktop-topbar img, | |
[data-theme="light"] .m-logo.in-mobile-topbar img { | |
filter: none; | |
} | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment