From 70ccc637021048cdc6f6bca2d702055da1ea6829 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 21 Jun 2021 10:37:34 +0200 Subject: [PATCH] core: remove default flow background from default css, set static in base_full and dynamically in if/flow closes #1056 Signed-off-by: Jens Langhammer --- authentik/core/templates/if/flow.html | 5 +++++ authentik/core/templates/login/base_full.html | 8 ++++++++ web/src/authentik.css | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/authentik/core/templates/if/flow.html b/authentik/core/templates/if/flow.html index cdb9afbd5..b1435d2f6 100644 --- a/authentik/core/templates/if/flow.html +++ b/authentik/core/templates/if/flow.html @@ -11,6 +11,11 @@ {% block head %} + {% endblock %} {% block body %} diff --git a/authentik/core/templates/login/base_full.html b/authentik/core/templates/login/base_full.html index b236bb7a7..8750fb341 100644 --- a/authentik/core/templates/login/base_full.html +++ b/authentik/core/templates/login/base_full.html @@ -7,6 +7,14 @@ {% endblock %} +{% block head %} + +{% endblock %} + {% block body %}
diff --git a/web/src/authentik.css b/web/src/authentik.css index e4eb584a4..bb409f2f1 100644 --- a/web/src/authentik.css +++ b/web/src/authentik.css @@ -68,7 +68,7 @@ html > form > input { /* ensure background on non-flow pages match */ .pf-c-background-image::before { - background-image: var(--ak-flow-background, url("/static/dist/assets/images/flow_background.jpg")); + background-image: var(--ak-flow-background); background-position: center; }