dark
This commit is contained in:
parent
dc2ed849a6
commit
1e7c6f8e3b
1 changed files with 12 additions and 2 deletions
14
ui.css
14
ui.css
|
@ -1,7 +1,16 @@
|
||||||
:root {
|
:root {
|
||||||
--main-width: 85vw;
|
--main-width: 85vw;
|
||||||
|
--text-color: #C71585;
|
||||||
|
--bg-color: white;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--bg-color: #212121;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* large screen */
|
/* large screen */
|
||||||
@media only screen and (min-width: 868px) {
|
@media only screen and (min-width: 868px) {
|
||||||
:root {
|
:root {
|
||||||
|
@ -13,13 +22,14 @@
|
||||||
html {
|
html {
|
||||||
font-family: Noto Sans;
|
font-family: Noto Sans;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
color: #C71585;
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
max-width: var(--main-width);
|
max-width: var(--main-width);
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
background-color: var(--bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|
Loading…
Reference in a new issue