Added css variables and dark theme
This commit is contained in:
parent
fd6eefa397
commit
e16b534a8f
@ -7,9 +7,14 @@
|
|||||||
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--background: #ffffff;
|
||||||
|
--accent: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
background-color: #000000;
|
background-color: var(--accent);
|
||||||
color: #ffffff;
|
color: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
@ -18,14 +23,15 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #ffffff;
|
background-color: var(--background);
|
||||||
border-top: solid 5px #000000;
|
border-top: solid 5px var(--accent);
|
||||||
padding: 45px;
|
padding: 45px;
|
||||||
|
color: var(--accent)
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
color: #000000;
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@ -41,7 +47,7 @@ header img {
|
|||||||
display: block;
|
display: block;
|
||||||
height: 65px;
|
height: 65px;
|
||||||
width: 65px;
|
width: 65px;
|
||||||
background-color: #000000;
|
background-color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* header #modern {
|
/* header #modern {
|
||||||
@ -50,7 +56,7 @@ header img {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #000000;
|
color: var(--accent);
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
header #modern:hover
|
header #modern:hover
|
||||||
@ -88,10 +94,11 @@ main a:hover {
|
|||||||
main blockquote {
|
main blockquote {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
border-left: #000000 solid 5px;
|
border-left: var(--accent) solid 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main details, main summary {
|
main details,
|
||||||
|
main summary {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,3 +118,10 @@ main > #header {
|
|||||||
ul ul > li {
|
ul ul > li {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--background: #000000;
|
||||||
|
--accent: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user