🚧 WIP on darkmode 🌑

This commit is contained in:
Philipp Dormann
2021-07-12 00:26:33 +02:00
parent e568cad22c
commit 673d3c124c
8 changed files with 69 additions and 24 deletions

View File

@@ -1,16 +1,33 @@
@import "vars.scss";
@import "node_modules/bootstrap/scss/bootstrap";
html,
body,
input,
.modal-content {
background: var(--page-background);
color: var(--main-font-color);
}
a,
.table,
.nav-link {
color: var(--main-font-color);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
color: #0a0a0a;
}
#app {
font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif,
apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji;
}
.shadow-box {
overflow: hidden;
box-shadow: 0 15px 70px rgba(0, 0, 0, .1);
box-shadow: 0 15px 70px rgba(0, 0, 0, 0.1);
padding: 10px;
border-radius: 10px;
&.big-padding {
padding: 20px;
}
@@ -22,10 +39,14 @@
}
.btn-primary {
color: white;
// color: white;
color: #0a0a0a;
&:hover, &:active, &:focus, &.active {
color: white;
&:hover,
&:active,
&:focus,
&.active {
color: #0a0a0a;
background-color: $highlight;
border-color: $highlight;
}
@@ -35,4 +56,3 @@
border-radius: 1rem;
backdrop-filter: blur(3px);
}

View File

@@ -1,7 +1,25 @@
$primary: #5CDD8B;
$danger: #DC3545;
$primary: #5cdd8b;
$danger: #dc3545;
$link-color: #111;
$border-radius: 50rem;
$border-radius: .25rem;
$highlight: #7ce8a4;
$highlight-white: #e7faec;
:root {
--page-background: #fafafa;
--background-secondary: #d0d3d5;
--background-4: #d0d3d5;
--background-ternary: #d0d3d5;
--main-font-color: #212529;
}
@media (prefers-color-scheme: dark) {
:root {
--page-background: #0a0a0a;
--background-secondary: #656565;
--background-4: #313131;
--background-ternary: #a7a7a7;
--main-font-color: #e4e4e4;
}
}