From 69aec23d1d1e43c296bf86b5496493b08d994f96 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 5 Mar 2022 13:08:57 +0100 Subject: [PATCH] Style fix for background image relative to X-Forwarded-Prefix when running via reverse proxy subdirectory --- changedetectionio/static/styles/styles.css | 3 --- changedetectionio/static/styles/styles.scss | 5 +---- changedetectionio/templates/base.html | 6 ++++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/changedetectionio/static/styles/styles.css b/changedetectionio/static/styles/styles.css index c456afb2..f31e96d8 100644 --- a/changedetectionio/static/styles/styles.css +++ b/changedetectionio/static/styles/styles.css @@ -96,9 +96,6 @@ body::after { body::before { content: ""; - background-image: url(/static/images/gradient-border.png); } - -body:before { background-size: cover; } body:after, body:before { diff --git a/changedetectionio/static/styles/styles.scss b/changedetectionio/static/styles/styles.scss index a1c1fb7c..2871338f 100644 --- a/changedetectionio/static/styles/styles.scss +++ b/changedetectionio/static/styles/styles.scss @@ -125,11 +125,8 @@ body::after { } body::before { + // background-image set in base.html so it works with reverse proxies etc content: ""; - background-image: url(/static/images/gradient-border.png); -} - -body:before { background-size: cover } diff --git a/changedetectionio/templates/base.html b/changedetectionio/templates/base.html index 88c75dc0..d003feac 100644 --- a/changedetectionio/templates/base.html +++ b/changedetectionio/templates/base.html @@ -12,7 +12,13 @@ {% endfor %} {% endif %} + +