mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 11:33:41 +02:00
92 lines
1.7 KiB
CSS
Executable file
92 lines
1.7 KiB
CSS
Executable file
:root {
|
|
--color-base: 0, 0, 0;
|
|
--color-: 33, 33, 33;
|
|
--color-contrast: 255, 255, 225;
|
|
|
|
--padding: 30px;
|
|
}
|
|
|
|
/* -- Cornerstones -- */
|
|
|
|
* {
|
|
margin: 0;
|
|
font-family: "Monaco", "Consolas", monospace, sans-serif;
|
|
color: rgb(var(--color-contrast));
|
|
}
|
|
|
|
*::selection {
|
|
background-color: rgb(var(--color-contrast));
|
|
color: rgb(var(--color-background));
|
|
}
|
|
|
|
a {
|
|
display: inline-block;
|
|
padding: 15px 30px;
|
|
border-radius: 100px;
|
|
border: solid 4px rgba(var(--color-contrast), .3);
|
|
text-decoration: none;
|
|
margin: var(--padding) 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
background-color: rgba(var(--color-base), .8);
|
|
background-size: cover;
|
|
background-blend-mode: overlay;
|
|
background-position: fixed;
|
|
}
|
|
|
|
/* -- Components -- */
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--padding, 30px);
|
|
}
|
|
|
|
body > div {
|
|
padding: var(--padding);
|
|
justify-items: center;
|
|
}
|
|
|
|
body > div:first-child {
|
|
--font-min: 20px;
|
|
--font-tar: 13vw;
|
|
--font-max: 6vh;
|
|
}
|
|
|
|
body > div:first-child :is(a, p, h1) {
|
|
font-size: var(--font-min);
|
|
user-select: none;
|
|
}
|
|
|
|
body > div:first-child p {
|
|
font-size: clamp(calc(var(--font-min) / 2), calc(var(--font-tar) / 2), calc(var(--font-max) / 2));
|
|
}
|
|
|
|
body > div:first-child h1 {
|
|
font-size: clamp(var(--font-min), var(--font-tar), var(--font-max));
|
|
}
|
|
|
|
/* -- Media Queries -- */
|
|
|
|
@media (pointer: fine) {
|
|
a:hover {
|
|
background: rgba(var(--color-contrast), .1);
|
|
}
|
|
}
|
|
|
|
@media (min-aspect-ratio: 14/9) and (min-height: 500px) {
|
|
body {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
body > div {
|
|
display: grid;
|
|
align-items: center;
|
|
}
|
|
}
|