mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 19:43:42 +02:00
74 lines
No EOL
1.6 KiB
CSS
74 lines
No EOL
1.6 KiB
CSS
/* Victor Westerlund - www.victorwesterlund.com */
|
|
:root {
|
|
--palette-background: 255,255,255;
|
|
--palette-contrast: 33,33,33;
|
|
|
|
--swatch-background: rgb(var(--palette-background));
|
|
--swatch-contrast: rgb(var(--palette-contrast));
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Roboto Mono";
|
|
font-weight: 400;
|
|
src: local("Roboto Mono Regular"),
|
|
local("RobotoMono-Regular"),
|
|
url("../fonts/RobotoMono-Regular.woff2"),
|
|
url("../fonts/RobotoMono-Regular.ttf");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Roboto Mono";
|
|
font-weight: 700;
|
|
src: local("Roboto Mono Bold"),
|
|
local("RobotoMono-Bold"),
|
|
url("../fonts/RobotoMono-Bold.woff2"),
|
|
url("../fonts/RobotoMono-Bold.ttf");
|
|
}
|
|
|
|
/* -- Cornerstones -- */
|
|
|
|
* {
|
|
margin: 0;
|
|
font-family: "Roboto Mono","Arial",sans-serif;
|
|
color: var(--swatch-contrast);
|
|
}
|
|
|
|
*::selection {
|
|
background-color: var(--swatch-contrast);
|
|
color: var(--swatch-background);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background-color: var(--swatch-background);
|
|
}
|
|
|
|
a {
|
|
display: content;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* -- Media Queries -- */
|
|
|
|
@media (pointer: fine) {
|
|
a:hover {
|
|
background: rgba(var(--palette-contrast),.1);
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--palette-background: 0,0,0;
|
|
--palette-contrast: 255,255,255;
|
|
|
|
--swatch-background: rgb(var(--palette-background));
|
|
--swatch-contrast: rgb(var(--palette-contrast));
|
|
}
|
|
} |