From 6873ede288816857a1667b679ab5edbb5cf91b5e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 20 Sep 2022 20:00:35 +0200 Subject: [PATCH] Tweak CSS --- app/scss/main.scss | 10 ++++++++++ app/templates/error.html | 2 +- app/templates/layout.html | 2 +- app/templates/login.html | 21 ++++++++++++--------- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/app/scss/main.scss b/app/scss/main.scss index 49fcfe7..bfd8ecb 100644 --- a/app/scss/main.scss +++ b/app/scss/main.scss @@ -212,6 +212,7 @@ a { } } #main { + display: flex; flex: 1; } main { @@ -220,10 +221,19 @@ main { margin: 30px auto; } +.main-flex { + display: flex; + flex: 1; +} + .centered { display: flex; + flex: 1; justify-content: center; align-items: center; + div { + display: block; + } } footer { diff --git a/app/templates/error.html b/app/templates/error.html index 99511b5..c45a567 100644 --- a/app/templates/error.html +++ b/app/templates/error.html @@ -1,6 +1,6 @@ {%- import "utils.html" as utils with context -%} {% extends "layout.html" %} - +{% block main_tag %} class="main-flex"{% endblock %} {% block head %} {{ title }} {% endblock %} diff --git a/app/templates/layout.html b/app/templates/layout.html index f2b8c64..3c30d2a 100644 --- a/app/templates/layout.html +++ b/app/templates/layout.html @@ -14,7 +14,7 @@
-
+ {% if is_admin %}
{% macro admin_link(url, text) %} diff --git a/app/templates/login.html b/app/templates/login.html index a849c8a..96297bd 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -1,15 +1,18 @@ {%- import "utils.html" as utils with context -%} {% extends "layout.html" %} +{% block main_tag %} class="main-flex"{% endblock %} {% block content %}
-{% if error %} -

Invalid password.

-{% endif %} -
- - - - -
+
+ {% if error %} +

Invalid password.

+ {% endif %} +
+ + + + +
+
{% endblock %}