victorwesterlund.com/public/assets/css/style.css
Victor Westerlund d6e4b71f28 Minimalist
Got rid of (almost) everything. Bloat sinks the goat.
2021-09-20 15:45:09 +02:00

77 lines
No EOL
1.6 KiB
CSS

/* Victor Westerlund */
: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-accent);
}
html,
body {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
overflow: hidden;
background-color: var(--swatch-background);
}
a {
display: content;
text-decoration: none;
font-weight: bold;
}
main {
display: flex;
flex-direction: column;
gap: 30px;
font-size: clamp(18px,5vw,3vh);
}
/* -- Content -- */
/* -- Media Queries -- */
@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));
}
}