From 624f9700a8f30d7edf0c3a03267d7373e2f32ce3 Mon Sep 17 00:00:00 2001 From: Martin Zimandl Date: Tue, 8 Aug 2023 17:47:09 +0200 Subject: [PATCH 1/2] add default style to base_document.html to prevent ugly flickering on load --- lib/action/theme.py | 6 +- templates/base_document.html | 123 +++++++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+), 1 deletion(-) diff --git a/lib/action/theme.py b/lib/action/theme.py index b777443025..903493b3de 100644 --- a/lib/action/theme.py +++ b/lib/action/theme.py @@ -56,5 +56,9 @@ def apply_theme(data, app: Sanic, translate: Callable[[str], str]): logo_inline_css=settings.get('theme', 'logo_inline_css', ''), online_fonts=settings.get_list('theme', 'fonts'), favicon=theme_favicon, - favicon_type=theme_favicon_type + favicon_type=theme_favicon_type, + main_background=os.path.join(public_files_path, 'img/groovepaper2.jpg'), + color_default_text='#010101', + color_light_text='#8d8c8c', + color_default_green='#D1ECBF', ) diff --git a/templates/base_document.html b/templates/base_document.html index 58def9c02d..c782aed913 100644 --- a/templates/base_document.html +++ b/templates/base_document.html @@ -31,6 +31,129 @@ {%- endfor -%} + + {% for item in app_bar_css %} From 3091e7732502529e8475b9235d9e1c7b5c8e7fa5 Mon Sep 17 00:00:00 2001 From: Tomas Machalek Date: Wed, 9 Aug 2023 13:39:31 +0200 Subject: [PATCH 2/2] Make styles from rev f6138b0713 more compact --- templates/base_document.html | 138 +++++------------------------------ 1 file changed, 18 insertions(+), 120 deletions(-) diff --git a/templates/base_document.html b/templates/base_document.html index c782aed913..61f44c3d41 100644 --- a/templates/base_document.html +++ b/templates/base_document.html @@ -32,126 +32,24 @@ {%- endfor -%}