Dark mode!
This commit is contained in:
parent
2f4fb902ab
commit
1cf834a864
2 changed files with 82 additions and 9 deletions
|
|
@ -1,16 +1,24 @@
|
|||
.codewars {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
margin-bottom: 4px;
|
||||
border-radius: 2px;
|
||||
filter: opacity(60%);
|
||||
margin-bottom: 1px;
|
||||
transition: filter ease-in-out 200ms;
|
||||
vertical-align: sub !important;
|
||||
filter: opacity(80%);
|
||||
}
|
||||
|
||||
.codewars:hover {
|
||||
filter: opacity(100%);
|
||||
}
|
||||
|
||||
body.dark .codewars {
|
||||
filter: opacity(80%);
|
||||
}
|
||||
|
||||
body.dark .codewars:hover {
|
||||
filter: opacity(100%);
|
||||
}
|
||||
|
||||
.navbar-translucent {
|
||||
opacity: 75%;
|
||||
transition: opacity ease-in-out 250ms;
|
||||
|
|
@ -27,7 +35,7 @@
|
|||
|
||||
.gradient.masthead {
|
||||
text-align: center;
|
||||
width: 100vw;
|
||||
width: 100%;
|
||||
height: 50vh;
|
||||
padding-top: 25vh;
|
||||
/* Beautiful gradient effect */
|
||||
|
|
@ -35,6 +43,26 @@
|
|||
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 {
|
||||
0% {
|
||||
filter: hue-rotate(0deg);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue