From fedfca25a5920568a84459501a8d1485e26c2c82 Mon Sep 17 00:00:00 2001 From: Halfdan Mouritzen Date: Sat, 2 Mar 2024 17:43:16 +0100 Subject: [PATCH] Adding flow to add new emails to an account --- src/project/static/css/dark-style.css | 11 ++++++ src/project/static/css/style.css | 32 ++++++++++++++-- src/project/templates/account/email.html | 49 ++++++++++++++++-------- 3 files changed, 74 insertions(+), 18 deletions(-) diff --git a/src/project/static/css/dark-style.css b/src/project/static/css/dark-style.css index 2f75768..7f48771 100644 --- a/src/project/static/css/dark-style.css +++ b/src/project/static/css/dark-style.css @@ -53,4 +53,15 @@ html.dark article table tbody tr:nth-child(2n+1) td { html.dark article table tbody tr:last-child td { border-bottom: var(--half-space) solid var(--twilight); +} + +html.dark form>div>input[type="text"], +html.dark form>div>input[type="password"], +html.dark input[type="email"] { + border: 2px solid var(--twilight); + border-radius: 6px; + padding: 8px; + background: var(--dark-dark); + width: 100%; + color: var(--light-dust); } \ No newline at end of file diff --git a/src/project/static/css/style.css b/src/project/static/css/style.css index 5017698..17f12e2 100644 --- a/src/project/static/css/style.css +++ b/src/project/static/css/style.css @@ -244,7 +244,7 @@ article { padding: var(--double-space) var(--outer-space); } -article>div.content-view { +article div.content-view { background: var(--dust); padding: var(--double-space); margin-bottom: var(--space); @@ -320,6 +320,10 @@ button:disabled { cursor: default; } +button.secondary { + background: var(--twilight); +} + article table { width: 100%; border-spacing: 0; @@ -387,7 +391,7 @@ input[type="email"] { padding: 8px; background: var(--light-dust); width: 100%; - color : var(--dark); + color: var(--dark); } form fieldset { @@ -400,6 +404,28 @@ form div.buttonHolder button { display: inline-block; } +#email-add-overlay { + display: none; + position: fixed; + left: 0; + top: 0; + bottom: 0; + right: 0; + background: rgba(0, 0, 0, 0.8); + align-items: center; + justify-content: center; + z-index: 1000; +} + +#email-add-overlay .content-view { + width: 600px; + padding: var(--double-space); +} + +#email-add-overlay .content-view p { + margin: var(--double-space) 0; +} + #login { height: 100%; display: flex; @@ -530,4 +556,4 @@ span.time_remaining { .pagination .page-item.disabled .page-link { cursor: default; -} +} \ No newline at end of file diff --git a/src/project/templates/account/email.html b/src/project/templates/account/email.html index c5cbe38..ec996ca 100644 --- a/src/project/templates/account/email.html +++ b/src/project/templates/account/email.html @@ -16,7 +16,7 @@ {% csrf_token %}
- + @@ -76,21 +76,22 @@ {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

{% endif %} -