Dark mode!

This commit is contained in:
oitsjustjose 2020-12-01 20:56:05 -06:00
commit 1cf834a864
2 changed files with 82 additions and 9 deletions

View file

@ -1,16 +1,24 @@
.codewars { .codewars {
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
margin-bottom: 4px; margin-bottom: 1px;
border-radius: 2px;
filter: opacity(60%);
transition: filter ease-in-out 200ms; transition: filter ease-in-out 200ms;
vertical-align: sub !important;
filter: opacity(80%);
} }
.codewars:hover { .codewars:hover {
filter: opacity(100%); filter: opacity(100%);
} }
body.dark .codewars {
filter: opacity(80%);
}
body.dark .codewars:hover {
filter: opacity(100%);
}
.navbar-translucent { .navbar-translucent {
opacity: 75%; opacity: 75%;
transition: opacity ease-in-out 250ms; transition: opacity ease-in-out 250ms;
@ -27,7 +35,7 @@
.gradient.masthead { .gradient.masthead {
text-align: center; text-align: center;
width: 100vw; width: 100%;
height: 50vh; height: 50vh;
padding-top: 25vh; padding-top: 25vh;
/* Beautiful gradient effect */ /* Beautiful gradient effect */
@ -35,6 +43,26 @@
animation: Rotate 10s ease infinite; animation: Rotate 10s ease infinite;
} }
#displayModeSwitch, label[for="displayModeSwitch"] {
cursor: pointer;
user-select: none;
}
body.dark {
background-color: #252525 !important;
color: #eeeeee !important;
}
body.dark .navbar, body.dark .navbar *:not(#displayModeSwitch) {
background-color: #202020 !important;
color: #eeeeee !important;
}
body.dark #displayModeSwitch {
background-color: #00bee0 !important;
border-color: #00bee0 !important;
}
@keyframes Rotate { @keyframes Rotate {
0% { 0% {
filter: hue-rotate(0deg); filter: hue-rotate(0deg);

File diff suppressed because one or more lines are too long