From 0a563e6121803636a340f4fc6537b99151d3e66e Mon Sep 17 00:00:00 2001 From: ari melody Date: Thu, 10 Jul 2025 18:11:49 +0100 Subject: [PATCH 1/2] rework post design; refine light theme --- src/lib/app.css | 16 ++++++++++++---- src/lib/ui/Navigation.svelte | 4 ++++ src/lib/ui/post/Body.svelte | 1 - src/lib/ui/post/Post.svelte | 10 +++++----- src/lib/ui/post/ReplyContext.svelte | 3 +-- src/routes/+page.svelte | 1 + 6 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/lib/app.css b/src/lib/app.css index 2119752..cca7bbd 100644 --- a/src/lib/app.css +++ b/src/lib/app.css @@ -8,6 +8,12 @@ --bg-600: #edf5ba; --accent: #899911; --text: #11100d; + + --bg-1000: #fffcf7; + --bg-800: #f2e8d7; + --bg-700: #d9ccad; + --accent: #92a40a; + --text: #322e1f; } @media (prefers-color-scheme: dark) { @@ -31,10 +37,6 @@ } } -@supports (font-variation-settings: normal) { - body { font-family: InterVariable, sans-serif; } -} - body { margin: 0; padding: 0; @@ -48,6 +50,12 @@ body { box-sizing: border-box; } +@supports (font-variation-settings: normal) { + body { + font-family: InterVariable, sans-serif; + } +} + a { color: var(--accent); text-decoration: none; diff --git a/src/lib/ui/Navigation.svelte b/src/lib/ui/Navigation.svelte index a5bedfd..bb09632 100644 --- a/src/lib/ui/Navigation.svelte +++ b/src/lib/ui/Navigation.svelte @@ -200,6 +200,8 @@ height: calc(100vh - 32px); border-radius: 8px; background-color: var(--bg-800); + transition: background-color .1s linear; + user-select: none; } .server-header { @@ -213,6 +215,7 @@ background-size: cover; background-color: var(--bg-600); background-image: linear-gradient(to top, var(--bg-800), var(--bg-600)); + transition: background .1s linear; } .server-icon { @@ -270,6 +273,7 @@ font-size: .9em; opacity: .6; text-align: center; + user-select: text; } .version ul { diff --git a/src/lib/ui/post/Body.svelte b/src/lib/ui/post/Body.svelte index 2760b56..5cb160f 100644 --- a/src/lib/ui/post/Body.svelte +++ b/src/lib/ui/post/Body.svelte @@ -84,7 +84,6 @@ } .post-text { - font-size: .9em; line-height: 1.45em; word-wrap: break-word; } diff --git a/src/lib/ui/post/Post.svelte b/src/lib/ui/post/Post.svelte index 1178a24..819d994 100644 --- a/src/lib/ui/post/Post.svelte +++ b/src/lib/ui/post/Post.svelte @@ -73,19 +73,19 @@