From e2cb4b220d4d62a7037a594e29cddbec750c54a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Wed, 22 Jan 2025 21:26:06 +0000 Subject: [PATCH] Fix CSS stuff (#61) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Halfdan Mouritzen Co-authored-by: halfd Reviewed-on: https://git.data.coop/data.coop/membersystem/pulls/61 Co-authored-by: Víðir Valberg Guðmundsson Co-committed-by: Víðir Valberg Guðmundsson --- src/project/static/css/dark-style.css | 5 + src/project/static/css/style.css | 29 +++- src/project/templates/account/email.html | 7 +- src/project/templates/account/login.html | 7 +- .../templates/account/password_reset.html | 75 +++++---- .../account/password_reset_done.html | 29 +++- src/project/templates/account/signup.html | 146 ++++++++++-------- 7 files changed, 176 insertions(+), 122 deletions(-) diff --git a/src/project/static/css/dark-style.css b/src/project/static/css/dark-style.css index ebafa9b..da95fbd 100644 --- a/src/project/static/css/dark-style.css +++ b/src/project/static/css/dark-style.css @@ -65,3 +65,8 @@ html.dark input[type="email"] { width: 100%; color: var(--light-dust); } + +html.dark div.services>div, +html.dark div.infobox { + background: var(--dark); +} \ No newline at end of file diff --git a/src/project/static/css/style.css b/src/project/static/css/style.css index d845d2c..769f07e 100644 --- a/src/project/static/css/style.css +++ b/src/project/static/css/style.css @@ -51,7 +51,6 @@ h6 { --light-dust: #fefef9; --dust: #f4f1ef; --medium-dust: #dadada; - --medium-dust : #dadada; --dark-dust: #bfbfbf; --fade: #878787; --twilight: #4a4a4a; @@ -72,16 +71,24 @@ h6 { --outer-space: var(--double-space); } +/* Media queries */ @media (min-width: 1380px) { :root { --outer-space: 15%; } } +@media (max-width: 720px) { + body header h1 { + font-size: 1em; + } +} + html, body { height: 100%; - font-size: 1.05em; + /* font-size: 1.05em; */ + font-size: 16px; } h1, @@ -375,6 +382,12 @@ article table#user_email_table tbody tr td:first-child { text-align: center; } +article table tbody td input[type="radio"] { + width: var(--double-space); + height: var(--double-space); + vertical-align: middle; +} + form>div { margin: 0 0 var(--double-space); } @@ -386,9 +399,9 @@ form>div>label { form>div>input[type="text"], form>div>input[type="password"], -input[type="email"] { +form>div>input[type="email"] { border: 2px solid var(--twilight); - border-radius: 6px; + border-radius: var(--quarter-space); padding: 8px; background: var(--light-dust); width: 100%; @@ -423,7 +436,7 @@ form div.buttonHolder button { padding: var(--double-space); } -#email-add-overlay .content-view p { +#email-add-overlay .panel-body div { margin: var(--double-space) 0; } @@ -505,7 +518,9 @@ footer { opacity: 0.8; } -footer a, footer a:visited, footer a:active { +footer a, +footer a:visited, +footer a:active { color: var(--dust); text-decoration: underline; } @@ -562,4 +577,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 7900a34..0b33a71 100644 --- a/src/project/templates/account/email.html +++ b/src/project/templates/account/email.html @@ -81,14 +81,13 @@

{% trans "Add E-mail" %}

-
+ {% csrf_token %} - {{ form.as_p }} + {{ form.as_div }} - +
diff --git a/src/project/templates/account/login.html b/src/project/templates/account/login.html index 523d32b..60aa982 100644 --- a/src/project/templates/account/login.html +++ b/src/project/templates/account/login.html @@ -3,7 +3,6 @@ {% load static %} {% block non_login_content %} -
{% endfor %} {% endif %} -

Login

+

{% trans "Login "%}

{% csrf_token %} @@ -46,8 +45,7 @@
@@ -60,5 +58,4 @@ - {% endblock %} diff --git a/src/project/templates/account/password_reset.html b/src/project/templates/account/password_reset.html index ce8be80..138c6de 100644 --- a/src/project/templates/account/password_reset.html +++ b/src/project/templates/account/password_reset.html @@ -6,44 +6,51 @@ {% block head_title %}{% trans "Password Reset" %}{% endblock %} {% block non_login_content %} +
+ {% endblock %} diff --git a/src/project/templates/account/password_reset_done.html b/src/project/templates/account/password_reset_done.html index 6a9ac20..2e1be72 100644 --- a/src/project/templates/account/password_reset_done.html +++ b/src/project/templates/account/password_reset_done.html @@ -6,11 +6,30 @@ {% block head_title %}{% trans "Password Reset" %}{% endblock %} {% block non_login_content %} -

{% trans "Password Reset" %}

+
+ + +
{% endblock %} diff --git a/src/project/templates/account/signup.html b/src/project/templates/account/signup.html index 27eb870..554190d 100644 --- a/src/project/templates/account/signup.html +++ b/src/project/templates/account/signup.html @@ -3,73 +3,85 @@ {% load static %} {% block non_login_content %} -

{% trans "Become a member" %}

+
+ {% endblock %}