From fcadaf855f6cf6bd9cc360036d855a24bbea169d Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Wed, 7 May 2025 13:38:01 +0200 Subject: [PATCH] Little changes on forms presentation --- backend/scss/main.scss | 46 +++++------------------------ backend/src/data/db/user.rs | 1 - backend/src/services/user.rs | 4 +-- backend/templates/profile.html | 4 +-- backend/templates/sign_in_form.html | 2 ++ backend/templates/toast.html | 2 +- 6 files changed, 15 insertions(+), 44 deletions(-) diff --git a/backend/scss/main.scss b/backend/scss/main.scss index db60a61..473af2f 100644 --- a/backend/scss/main.scss +++ b/backend/scss/main.scss @@ -27,7 +27,7 @@ body { margin: 0px; .user-message { - font-weight: bold; + font-weight: 600; color: consts.$color-highlight; } @@ -256,46 +256,16 @@ body { form { display: grid; grid-template-columns: auto 1fr; - gap: 3px; - - input, - button { - border-width: 1px; - } - } - - #sign-up form { - display: grid; - grid-template-columns: auto 1fr auto; - - input[type="submit"] { - grid-column: 2 - } - } - - #sign-in form { - input[type="submit"] { - grid-column: 2 - } - } - - #ask-reset-password form { - grid-template-columns: auto 1fr auto; - - input[type="submit"] { - grid-column: 2 - } - } - - #reset-password form { - grid-template-columns: auto 1fr auto; - - input[type="submit"] { - grid-column: 2 - } + gap: calc(consts.$margin / 2); + align-items: center; } + #sign-up form, + #sign-in form, + #ask-reset-password form, + #reset-password form, #user-edit form { + // + + diff --git a/backend/templates/toast.html b/backend/templates/toast.html index 9724e18..bb5b2f6 100644 --- a/backend/templates/toast.html +++ b/backend/templates/toast.html @@ -2,7 +2,7 @@
icon -
+
\ No newline at end of file