mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Light mode :ohno:
This commit is contained in:
parent
c41b0d8000
commit
d24789d8ba
4 changed files with 29 additions and 6 deletions
|
@ -35,7 +35,7 @@ export default (_data: Lume.Data, helpers: Lume.Helpers) => {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
grid-template-rows: repeat(2, 1fr);
|
grid-template-rows: repeat(2, 1fr);
|
||||||
box-shadow: 0 0 10px whitesmoke;
|
box-shadow: 0 0 10px var(--foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
.square {
|
.square {
|
||||||
|
|
|
@ -110,6 +110,22 @@
|
||||||
src: url("/assets/JetBrainsMonoBoldItalic.woff2") format("woff2");
|
src: url("/assets/JetBrainsMonoBoldItalic.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--background: black;
|
||||||
|
--foreground: white;
|
||||||
|
--link: yellow;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
:root {
|
||||||
|
--background: white;
|
||||||
|
--foreground: black;
|
||||||
|
--link: red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-family: "Bai Jamjuree";
|
font-family: "Bai Jamjuree";
|
||||||
}
|
}
|
||||||
|
@ -127,8 +143,8 @@
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
background-color: black;
|
background-color: var(--background);
|
||||||
color: white;
|
color: var(--foreground);
|
||||||
|
|
||||||
height: 100dvh;
|
height: 100dvh;
|
||||||
width: 100dvw;
|
width: 100dvw;
|
||||||
|
|
|
@ -38,7 +38,7 @@ const Cube = (props: CubeProps) => (
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame:hover {
|
.frame:hover {
|
||||||
background-color: yellow;
|
background-color: var(--link);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scene {
|
.scene {
|
||||||
|
|
|
@ -50,6 +50,13 @@ layout: base.vto
|
||||||
border-top-right-radius: 1em;
|
border-top-right-radius: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
nav {
|
||||||
|
border: 0.15em solid black;
|
||||||
|
border-bottom-width: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
color: black;
|
color: black;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -57,7 +64,7 @@ layout: base.vto
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: yellow;
|
color: var(--link);
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
|
@ -65,7 +72,7 @@ layout: base.vto
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
border-top: 0.15em solid white;
|
border-top: 0.15em solid var(--foreground);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue