Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dark mode - Ongoing for https://gauravtiwari.org
@media (prefers-color-scheme: dark) { body, .blog-teaser, article, .sidebar > *, .has-white-background-color, .style-default .box-style, .style-default .box-style-list ul, .style-default .tagcloud, .style-default #wp-calendar, .header, article div, .amzn-native-product-title-container a, ol, ul, .megamenu, .sub-menu, .content-inner > *{
background:#333!important;
}
a, li, li a, h1, h2, h3, h4, h5, h6, p, blockquote, format > *, .sidebar > *, .blog-teaser h2 a, div, .content-inner > *{
color:#eee!important;
}
img{
opacity:0.8;
}
.header-logo img{
filter: invert(1);
}
.featured-image-cover .header-logo img{
filter: invert(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment