mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-31 03:30:39 +00:00
d9e2c230bf
darkmode based on css variables. ref https://github.com/louislam/uptime-kuma/issues/21
77 lines
1.3 KiB
SCSS
77 lines
1.3 KiB
SCSS
@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;
|
|
}
|
|
|
|
.nav-link:hover,
|
|
.nav-link:focus {
|
|
color: #5cdd8b;
|
|
}
|
|
|
|
.form-control,
|
|
.form-control:focus,
|
|
.form-select,
|
|
.form-select:focus {
|
|
color: var(--main-font-color);
|
|
background-color: var(--background-4);
|
|
}
|
|
|
|
#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;
|
|
}
|
|
|
|
.shadow-box {
|
|
overflow: hidden;
|
|
box-shadow: 0 15px 70px rgba(0, 0, 0, 0.1);
|
|
padding: 10px;
|
|
&.big-padding {
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.btn-primary {
|
|
// color: white;
|
|
color: #0a0a0a;
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus,
|
|
&.active {
|
|
color: #0a0a0a;
|
|
background-color: $highlight;
|
|
border-color: $highlight;
|
|
}
|
|
}
|
|
|
|
.modal-content {
|
|
border-radius: 1rem;
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
a:hover {
|
|
color: #7ce8a4;
|
|
}
|
|
}
|