From 579f16fc51c6a8b5ff34b1afee8c2518b05e22d3 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 19 Mar 2022 21:33:52 +0100 Subject: create common styles for account forms --- web/pw-server/src/routes/__layout.svelte | 21 ++--------- web/pw-server/src/routes/index.svelte | 2 +- web/pw-server/src/routes/login.svelte | 29 +++++++++------ web/pw-server/src/routes/register.svelte | 57 ++--------------------------- web/pw-server/src/styles/account_forms.scss | 52 ++++++++++++++++++++++++++ web/pw-server/src/styles/variables.scss | 1 + 6 files changed, 79 insertions(+), 83 deletions(-) create mode 100644 web/pw-server/src/styles/account_forms.scss create mode 100644 web/pw-server/src/styles/variables.scss (limited to 'web/pw-server') diff --git a/web/pw-server/src/routes/__layout.svelte b/web/pw-server/src/routes/__layout.svelte index 250cdef..c22591e 100644 --- a/web/pw-server/src/routes/__layout.svelte +++ b/web/pw-server/src/routes/__layout.svelte @@ -1,4 +1,6 @@ @@ -7,16 +9,13 @@ - + diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index dcc40ca..984910e 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -182,7 +182,7 @@ \ No newline at end of file diff --git a/web/pw-server/src/routes/register.svelte b/web/pw-server/src/routes/register.svelte index 1b0b84a..51cc106 100644 --- a/web/pw-server/src/routes/register.svelte +++ b/web/pw-server/src/routes/register.svelte @@ -31,67 +31,16 @@

Create account

-
+ - +
\ No newline at end of file diff --git a/web/pw-server/src/styles/account_forms.scss b/web/pw-server/src/styles/account_forms.scss new file mode 100644 index 0000000..36cc96b --- /dev/null +++ b/web/pw-server/src/styles/account_forms.scss @@ -0,0 +1,52 @@ +.page-card { + margin: 50px auto; + width: 40%; + max-width: 600px; + border: 1px solid #b5b5b5; + box-sizing: border-box; + border-radius: 0px; +} + +.page-card-content { + margin: 20px 50px; +} + +.page-card-header { + padding-top: 0.5em; + padding-bottom: 1em; + text-align: center; +} + +.account-form { + box-sizing: border-box; + display: flex; + flex-direction: column; + font-size: 18px; +} + +.account-form label { + margin: 10px 5px; + font-weight: 500; +} + +.account-form input { + margin: 10px 5px; + font-size: 1rem; + // height: 2.5em; + display: block; + border-radius: 4px; + border: 1px solid #b5b5b5; + padding: 0.75rem 1rem; +} + +.account-form button { + background-color: lightgreen; + padding: 8px 16px; + border-radius: 8px; + border: 0; + font-size: 18pt; + display: block; + margin: 10px auto; + margin-top: 16px; + cursor: pointer; +} diff --git a/web/pw-server/src/styles/variables.scss b/web/pw-server/src/styles/variables.scss new file mode 100644 index 0000000..257a67e --- /dev/null +++ b/web/pw-server/src/styles/variables.scss @@ -0,0 +1 @@ +$bg-color: rgb(41, 41, 41); -- cgit v1.2.3