@import "https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@100..900&display=swap"; $background-color: oklch(22.49% 0.008 297.21); $foreground-color: oklch(98.51% 0 0); $primary-color: oklch(82.67% 0.096 307.5); $secondary-color: oklch(from $primary-color l c 240); :root { font-size: 20px; } * { box-sizing: border-box; transition: 0.1s ease-in-out; /* outline: 1px solid rgba(255, 0, 0, 0.2); */ } body { display: flex; flex-direction: column; font-family: "M PLUS 2", sans-serif; align-items: center; $opacity: 25%; background-color: black; background-image: url("/images/noise.png"), linear-gradient(135deg, oklch(from $primary-color l c h / $opacity), oklch(from $secondary-color l c h / $opacity) 100%); color: white; color: $foreground-color; padding: 4rem 0 0 0; margin: 0; width: 100vw; height: 100vh; } content { display: flex; max-width: 60rem; flex-direction: row-reverse; &>* { background-color: $background-color; outline: 0.1rem solid $background-color; outline-offset: 0.1rem; } &>nav { padding: 1.25rem 0.75rem; } &>article { width: 100vw; padding: 1.25rem; height: fit-content; } } footer { position: fixed; bottom: 0px; opacity: 0.7; font-size: 0.75rem; padding: 0.5rem; width: 100%; text-align: right; color: white; mix-blend-mode: overlay; p { padding: 0; margin: 0; } a { color: inherit; } } /* --- NAVIGATION BAR --- */ /* This whole navbar section needs refactoring, because I'm already confused by it */ nav { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-left: 1rem; height: fit-content; svg { fill: $foreground-color; $size: 2rem; width: $size; height: $size; } a { display: flex; writing-mode: vertical-rl; text-orientation: sideways; text-decoration: none; justify-content: center; color: $foreground-color; } span { color: oklch(from $foreground-color 0.45 c h); } } /* --- STANDARD ELEMENTS --- */ a { color: mediumpurple; color: $primary-color; &:hover { filter: brightness(0.75); } } @mixin std-style { display: block; margin: 0; padding-bottom: 0.2rem; } p, ul { @include std-style; } @for $i from 1 through 6 { h#{$i} { @include std-style; &:before { $stars: ""; @for $_ from 1 through $i { $stars: $stars + "*"; } content: "#{$stars} "; color: oklch(82.67% 0.087 #{280 + ($i - 1) * 20}); opacity: 0.75; } } }