Skip to content

Instantly share code, notes, and snippets.

@eddiesigner
Last active February 26, 2020 20:19
Show Gist options
  • Save eddiesigner/16ebf095e483c7ce5fccf90a9accbbe1 to your computer and use it in GitHub Desktop.
Save eddiesigner/16ebf095e483c7ce5fccf90a9accbbe1 to your computer and use it in GitHub Desktop.
Weiss Pro logo filter for dark mode
<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