mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 19:43:42 +02:00
Added about me template, now it's time to write a dazzling README about myself
95 lines
2 KiB
CSS
95 lines
2 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));
|
|
|
|
--padding: 20px;
|
|
--max-width: 800px;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Roboto Mono";
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
src: local("Roboto Mono Regular"), local("RobotoMono-Regular"),
|
|
url("../fonts/RobotoMono-Regular.woff2") format("woff2"),
|
|
url("../fonts/RobotoMono-Regular.woff") format("woff");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Roboto Mono";
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
src: local("Roboto Mono Bold"), local("RobotoMono-Bold"),
|
|
url("../fonts/RobotoMono-Bold.woff2") format("woff2"),
|
|
url("../fonts/RobotoMono-Bold.woff") format("woff");
|
|
}
|
|
|
|
/* -- 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%;
|
|
background-color: var(--swatch-background);
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
p {
|
|
color: inherit;
|
|
}
|
|
|
|
/* -- Global components -- */
|
|
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100px;
|
|
min-height: 80px;
|
|
flex: none;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: clamp(16px,5vw,25px);
|
|
font-weight: normal;
|
|
text-align: center;
|
|
}
|
|
|
|
/* -- 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));
|
|
}
|
|
}
|