From 5655b61a2cf72614a385b990a530a162f7a95247 Mon Sep 17 00:00:00 2001 From: Valexr Date: Wed, 24 Apr 2024 21:36:54 +0200 Subject: [PATCH] fix: styles --- src/App.svelte | 45 ++++++++++++++++++++++++++++++--- src/css/base.css | 6 +++++ src/lib/components/Quote.svelte | 7 +++-- 3 files changed, 53 insertions(+), 5 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 432f00a..5869bc5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -82,9 +82,48 @@ {/await} {/await} @@ -105,7 +144,7 @@ padding: 0 1em; flex: 1 0 100%; scroll-snap-align: center; - align-content: start; + align-content: center; } section#add { align-content: center; diff --git a/src/css/base.css b/src/css/base.css index 2599828..a6fe59e 100644 --- a/src/css/base.css +++ b/src/css/base.css @@ -67,6 +67,12 @@ button:hover:active { background-color: var(--active); } +button.box { + aspect-ratio: 1/1; + align-items: center; + display: flex; +} + a { color: inherit; } diff --git a/src/lib/components/Quote.svelte b/src/lib/components/Quote.svelte index 3d9b5a9..33669ff 100644 --- a/src/lib/components/Quote.svelte +++ b/src/lib/components/Quote.svelte @@ -11,17 +11,20 @@ {@const [text, author] = quote}

{text}

- ~ {author} +

+ ~ {author} +

{/if}