From eba339ba27aae166ba04d7b8a68a6a855283877b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Jun 2022 14:20:23 +0200 Subject: [PATCH] core: improve loading speed of flow background Signed-off-by: Jens Langhammer --- authentik/core/templates/if/flow.html | 3 ++- authentik/core/templates/login/base_full.html | 8 +++++++- internal/outpost/proxyv2/templates/error.html | 9 +++++++++ web/src/authentik.css | 6 ++++++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/authentik/core/templates/if/flow.html b/authentik/core/templates/if/flow.html index 742a24867..d334fdae1 100644 --- a/authentik/core/templates/if/flow.html +++ b/authentik/core/templates/if/flow.html @@ -5,6 +5,7 @@ {% block head_before %} {{ block.super }} + {% if flow.compatibility_mode and not inspector %} {% endif %} @@ -19,7 +20,7 @@ window.authentik.flow = { {% block head %} diff --git a/authentik/core/templates/login/base_full.html b/authentik/core/templates/login/base_full.html index 4e7b729c3..e5562df7d 100644 --- a/authentik/core/templates/login/base_full.html +++ b/authentik/core/templates/login/base_full.html @@ -4,13 +4,19 @@ {% load i18n %} {% block head_before %} + {% endblock %} {% block head %} diff --git a/web/src/authentik.css b/web/src/authentik.css index 52c90791e..dca5b6a9b 100644 --- a/web/src/authentik.css +++ b/web/src/authentik.css @@ -9,6 +9,12 @@ --ak-dark-background-light: #1c1e21; --ak-dark-background-light-ish: #212427; --ak-dark-background-lighter: #2b2e33; + + --pf-c-background-image--BackgroundImage: var(--ak-flow-background); + --pf-c-background-image--BackgroundImage-2x: var(--ak-flow-background); + --pf-c-background-image--BackgroundImage--sm: var(--ak-flow-background); + --pf-c-background-image--BackgroundImage--sm-2x: var(--ak-flow-background); + --pf-c-background-image--BackgroundImage--lg: var(--ak-flow-background); } html {