From a2477864a3505f55ef774462276b481bd7bfacab Mon Sep 17 00:00:00 2001 From: justcool393 Date: Mon, 28 Nov 2022 10:55:16 -0600 Subject: [PATCH] move style out of root to minimize html redrawing and improve maintainability --- files/templates/root.html | 15 --------------- files/templates/util/html_head.html | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/files/templates/root.html b/files/templates/root.html index 655b872e8..be35d1078 100644 --- a/files/templates/root.html +++ b/files/templates/root.html @@ -23,20 +23,5 @@ {% block body required %}{% endblock %} - diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index 90c567195..bf5dc8a82 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -107,6 +107,20 @@ {% macro stylesheets(include_user_css) %} + + {% if SITE_NAME == 'rDrama' and (not v or v.is_banned or v.agendaposter) %} + {% set background = '/assets/images/backgrounds/glitter/1.webp?v=3' %} + {% elif v and v.background %} + {% set background = v.background %} + {% endif %} + + {% if v %} {% if v.agendaposter %}