diff options
| author | jamie <git@skilet.ro> | 2025-06-15 20:29:50 +0100 |
|---|---|---|
| committer | jamie <git@skilet.ro> | 2025-06-15 20:29:50 +0100 |
| commit | 21e5fcfa3ff23c4b2835092a6fb3adc08295a808 (patch) | |
| tree | a09e34e34dbd7442fbd14b5d81847f6fb4478d70 /css | |
| parent | 1e233b960c1131029d87fa53ceabf2c0b49dcf61 (diff) | |
feat: starting the porting process (no posts yet)
Diffstat (limited to '')
| -rw-r--r-- | css/default.scss | 231 |
1 files changed, 109 insertions, 122 deletions
diff --git a/css/default.scss b/css/default.scss index a163f7f..fff60ed 100644 --- a/css/default.scss +++ b/css/default.scss @@ -1,161 +1,148 @@ -html { - font-size: 62.5%; -} - -body { - font-size: 1.6rem; - color: #000; -} - -header { - border-bottom: 0.2rem solid #000; -} - -nav { - text-align: right; -} - -nav a { - font-size: 1.8rem; - font-weight: bold; - color: black; - text-decoration: none; - text-transform: uppercase; -} +@import "https://fonts.googleapis.com/css2?family=M+PLUS+2:wght@100..900&display=swap"; -footer { - margin-top: 3rem; - padding: 1.2rem 0; - border-top: 0.2rem solid #000; - font-size: 1.2rem; - color: #555; -} +$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); -h1 { - font-size: 2.4rem; +:root { + font-size: 20px; } -h2 { - font-size: 2rem; +* { + box-sizing: border-box; + transition: 0.1s ease-in-out; + /* outline: 1px solid rgba(255, 0, 0, 0.2); */ } -article .header { - font-size: 1.4rem; - font-style: italic; - /* color: #555; */ - $myColor: red; - color: $myColor; +body { + display: flex; + flex-direction: column; + font-family: "M PLUS 2", sans-serif; + align-items: center; + $opacity: 25%; + background-color: black; + background: $background-color + 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; } -.logo a { - font-weight: bold; - color: #000; - text-decoration: none; -} +content { + display: flex; + max-width: 60rem; + flex-direction: row-reverse; -@media (max-width: 319px) { - body { - width: 90%; - margin: 0; - padding: 0 5%; + & > * { + background-color: $background-color; + outline: 0.1rem solid $background-color; + outline-offset: 0.1rem; } - header { - margin: 4.2rem 0; + & > nav { + padding: 1.25rem 0.75rem; } - nav { - margin: 0 auto 3rem; - text-align: center; - } - - footer { - text-align: center; + & > article { + width: 100vw; + padding: 1.25rem; } +} - .logo { - text-align: center; - margin: 1rem auto 3rem; - } +footer { + position: fixed; + bottom: 0px; + color: $background-color; + opacity: 0.7; + font-size: 0.75rem; + padding: 0.5rem; + width: 100%; + text-align: right; - .logo a { - font-size: 2.4rem; + p { + padding: 0; + margin: 0; } - nav a { - display: block; - line-height: 1.6; + a { + color: inherit; } } -@media (min-width: 320px) { - body { - width: 90%; - margin: 0; - padding: 0 5%; - } - - header { - margin: 4.2rem 0; - } +/* --- 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; - nav { - margin: 0 auto 3rem; - text-align: center; + svg { + fill: $foreground-color; + $size: 2rem; + width: $size; + height: $size; } - footer { - text-align: center; + a { + display: flex; + writing-mode: vertical-rl; + text-orientation: sideways; + text-decoration: none; + justify-content: center; + color: $foreground-color; } - .logo { - text-align: center; - margin: 1rem auto 3rem; + span { + color: oklch(from $foreground-color 0.45 c h); } +} - .logo a { - font-size: 2.4rem; - } +/* --- STANDARD ELEMENTS --- */ +a { + color: mediumpurple; + color: $primary-color; - nav a { - display: inline; - margin: 0 0.6rem; + &:hover { + filter: brightness(0.75); } } -@media (min-width: 640px) { - body { - width: 60rem; - margin: 0 auto; - padding: 0; - } - - header { - margin: 0 0 3rem; - padding: 1.2rem 0; - } +@mixin std-style { + display: block; + margin: 0; + padding-bottom: 0.2rem; +} - nav { - margin: 0; - text-align: right; - } +p, +ul { + @include std-style; +} - nav a { - margin: 0 0 0 1.2rem; - display: inline; - } +@for $i from 1 through 6 { + h#{$i} { + @include std-style; - footer { - text-align: right; - } + &:before { + $stars: ""; - .logo { - margin: 0; - text-align: left; - } + @for $_ from 1 through $i { + $stars: $stars + "*"; + } - .logo a { - float: left; - font-size: 1.8rem; + content: "#{$stars} "; + color: oklch(82.67% 0.087 #{280 + ($i - 1) * 20}); + opacity: 0.75; + } } } |
