Created
January 23, 2020 21:01
-
-
Save blaiseAI/020dda4cfe95955919431d995e2568aa to your computer and use it in GitHub Desktop.
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
/* :root { | |
--body-bg: #fafafa; | |
--body-color: #555; | |
--link-color: #222; | |
--link-color-hover: #000; | |
} */ | |
/*======= | |
Dark Mode Media Query | |
=============*/ | |
@media (prefers-color-scheme: dark) { | |
:root { | |
--body-bg: #212529; | |
--body-color: #6c757d; | |
--link-color: #dee2e6; | |
--link-color-hover: #fff; | |
} | |
img { | |
opacity: .75; | |
transition: opacity .5s ease-in-out; | |
} | |
img:hover { | |
opacity: 1; | |
} | |
body { | |
background-color: var(--body-bg); | |
color: white; | |
} | |
.lang { | |
background: var(--body-color); | |
} | |
} | |
/* body { | |
background-color: black; | |
color: white; | |
} | |
@media screen and (prefers-color-scheme: light) { | |
body { | |
background-color: white; | |
color: black; | |
} | |
} */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment