From ea3e3e0530b91325ab62e8b4fad4d0f359b7ec89 Mon Sep 17 00:00:00 2001 From: bloodwiing Date: Mon, 20 May 2024 23:26:23 +0300 Subject: [PATCH] Design: Compose styling --- src/routes/(app)/compose/+page.svelte | 91 +++++++++++++++++++++++---- static/css/base.scss | 2 +- static/css/form.scss | 35 ++++++++--- 3 files changed, 104 insertions(+), 24 deletions(-) diff --git a/src/routes/(app)/compose/+page.svelte b/src/routes/(app)/compose/+page.svelte index 5eb0cc7..b35ad62 100644 --- a/src/routes/(app)/compose/+page.svelte +++ b/src/routes/(app)/compose/+page.svelte @@ -15,22 +15,87 @@ .composeForm { display: flex; flex-flow: column nowrap; + gap: 32px; + } + + .formContent { + display: flex; + flex-flow: column nowrap; + width: 100%; gap: 16px; } + + .title { + display: flex; + flex-flow: row nowrap; + align-items: baseline; + justify-content: start; + width: 100%; + gap: 16px; + } + + .top { + display: flex; + flex-flow: row; + gap: 16px; + width: 100%; + } + + #category { + width: 100%; + } + + #content { + resize: vertical; + } + + .labelInput { + display: flex; + flex-flow: column; + width: 100%; + + > label { + width: min-content; + } + + &.shrink { + max-width: 250px; + } + } + + + +
-

Compose

- {#if $page.form} - {JSON.stringify($page.form)} - {/if} - {JSON.stringify($toasts)} - - - - +
+

Compose

+ your voice ~ your post +
+ +
+
+
+ + +
+ +
+ + +
+
+ +
+ + +
+
+ +
diff --git a/static/css/base.scss b/static/css/base.scss index 342e88c..e075407 100644 --- a/static/css/base.scss +++ b/static/css/base.scss @@ -53,7 +53,7 @@ a { } } -h1, h2, h3, h4, h5, h6, p, span, input, textarea { +h1, h2, h3, h4, h5, h6, p, span, input, textarea, select { margin: 0; color: white; } diff --git a/static/css/form.scss b/static/css/form.scss index 4390c80..0ecbc91 100644 --- a/static/css/form.scss +++ b/static/css/form.scss @@ -1,16 +1,9 @@ -form.entryForm { +form { display: flex; flex-flow: column nowrap; align-items: center; justify-content: center; gap: 32px; - padding: 32px; - background: #00000090; - border-radius: 16px; - backdrop-filter: blur(16px); - - max-width: 350px; - width: calc(20dvw + 150px); button[type=submit] { background: var(--accent-dim); @@ -21,13 +14,35 @@ form.entryForm { } input[type=text], - input[type=password] { + input[type=password], + select, + textarea { font-size: 1rem; padding: 0.6em 1.5em; - background: #222; border-radius: 8px; border: none; width: calc(100% - 3em); + background: var(--gray); + } + + label { + color: var(--accent-light); + } +} + +form.entryForm { + padding: 32px; + + background: #00000090; + border-radius: 16px; + backdrop-filter: blur(16px); + + max-width: 350px; + width: calc(20dvw + 150px); + + input[type=text], + input[type=password] { + background: #222; } label {