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 %}