From 702d08964b61cfa21fb62f3256ae980d80fa21da Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 17 Sep 2021 07:07:45 -0400 Subject: [PATCH] v9.0-pre --- public/assets/css/modal.css | 2 +- public/assets/css/style.css | 40 +++++++++++++++++++++++++++---------- public/index.html | 8 ++++++-- 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/public/assets/css/modal.css b/public/assets/css/modal.css index 4886812..74ac74d 100644 --- a/public/assets/css/modal.css +++ b/public/assets/css/modal.css @@ -62,7 +62,7 @@ body .modal.active ~ main .screen { box-sizing: border-box; padding: var(--padding); border-radius: var(--border-radius); - box-shadow: 0 3px 30px 0 rgba(var(--palette-contrast),.2); + box-shadow: 0 3px 30px 0 rgba(33,33,33,.2); opacity: 0; display: flex; flex-direction: column; diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 0bab0b3..91e0e4b 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -63,7 +63,7 @@ } *::selection { - background-color: var(--swatch-highlight); + background-color: var(--swatch-contrast); color: var(--swatch-accent); } @@ -105,7 +105,7 @@ body.menuActive main { .screen { --background-pattern: linear-gradient(90deg, var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center, - linear-gradient(var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center, var(--swatch-accent); + linear-gradient(var(--swatch-background) calc(var(--padding) + 1px), transparent 1%) center, var(--swatch-contrast); --background-pattern-size: calc(var(--padding) + 2px) calc(var(--padding) + 2px); width: 100vw; @@ -331,12 +331,26 @@ header .logo { margin-top: auto; } +/* WIP */ +.screen.menu .content > .narrow { + align-items: flex-start; + max-width: 900px; + gap: var(--padding); +} + /* -- Media queries -- */ +@media (max-width: 570px) { + .screen.menu .content > .narrow { + flex-direction: column; + } +} + /* Wide-screen */ @media (min-aspect-ratio: 14/9) and (min-height: 300px) { /* -- Cornerstones -- */ + .narrow, header { display: none; } @@ -358,9 +372,12 @@ header .logo { /* -- Screens -- */ - .screen { + .screen.menu, + .screen.landingpage { width: 50vw; flex-direction: row; + background: var(--background-pattern); + background-size: var(--background-pattern-size); } body.dark .screen { @@ -381,9 +398,6 @@ header .logo { --swatch-inverted: rgb(var(--palette-inverted)); --swatch-contrast: rgb(var(--palette-contrast)); --swatch-accent: rgb(var(--palette-accent)); - - background: var(--background-pattern); - background-size: var(--background-pattern-size); } .screen.menu .content { @@ -395,7 +409,7 @@ header .logo { flex-direction: column; justify-content: space-between; box-sizing: border-box; - padding: clamp(var(--padding),5vw,10vh); + padding: clamp(var(--padding),5vw,5vh); width: 100%; height: 100%; overflow-y: auto; @@ -408,17 +422,23 @@ header .logo { } .screen.menu .wide .logo { - --size: clamp(20px,3.5vw,10vh); + --size: clamp(20px,3.5vw,5vh); } .screen.menu .wide h1 { margin: 0; - font-size: clamp(20px,3vw,10vh); + font-size: clamp(20px,3vw,5vh); + } + + .screen.menu .wide h1 span { + background: var(--swatch-contrast); + color: var(--swatch-background); + padding: 0 var(--padding); } .screen.menu .wide p { margin: 0; - font-size: clamp(20px,2vw,2vh); + font-size: clamp(16px,5vw,2vh); } .screen.menu .wide nav { diff --git a/public/index.html b/public/index.html index dd7ca77..8a2613f 100644 --- a/public/index.html +++ b/public/index.html @@ -48,16 +48,20 @@
-

victor westerlund

+

victor westerlund

I create things with code. The things I've created for the public reside as open-source repositories on GitHub, the rest you'll be lucky to hear about some day.

Other topics (seemingly irrelevant to programming) I find facinating include but is in no way limited to astronomy, psychology, sociology, economics, ...

+
+

I create things with code. The things I've created for the public reside as open-source repositories on GitHub, the rest you'll be lucky to hear about some day.

+

Other topics (seemingly irrelevant to programming) I find facinating include but is in no way limited to astronomy, psychology, sociology, economics, ...

+

contact me