From 2bb22a0e78ffe8b6ae4a2998ffe31a76a9c4c269 Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 17 Dec 2023 03:54:04 +0100 Subject: [PATCH] fix: background images in production --- pretalx_musicrate/__init__.py | 2 +- .../static/pretalx_musicrate/{rating.css => rating.scss} | 4 ++-- pretalx_musicrate/templates/pretalx_musicrate/rating.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename pretalx_musicrate/static/pretalx_musicrate/{rating.css => rating.scss} (87%) diff --git a/pretalx_musicrate/__init__.py b/pretalx_musicrate/__init__.py index 906d362..49e0fc1 100644 --- a/pretalx_musicrate/__init__.py +++ b/pretalx_musicrate/__init__.py @@ -1 +1 @@ -__version__ = "0.6.0" +__version__ = "0.7.0" diff --git a/pretalx_musicrate/static/pretalx_musicrate/rating.css b/pretalx_musicrate/static/pretalx_musicrate/rating.scss similarity index 87% rename from pretalx_musicrate/static/pretalx_musicrate/rating.css rename to pretalx_musicrate/static/pretalx_musicrate/rating.scss index 8a086a8..35ca0c2 100644 --- a/pretalx_musicrate/static/pretalx_musicrate/rating.css +++ b/pretalx_musicrate/static/pretalx_musicrate/rating.scss @@ -33,12 +33,12 @@ } .rating-container > .rating > input[type=radio]:checked ~ .rating-point { - background-image: url(point-fill.svg); + background-image: url(static('pretalx_musicrate/point-fill.svg')); } .rating-container > .rating > .rating-point { --max-size: calc((100vw - 2em - 2 * 0.1em * var(--num-choices)) / var(--num-choices)); - background: url(point-stroke.svg) no-repeat center/100%; + background: url(static('pretalx_musicrate/point-stroke.svg')) no-repeat center/100%; height: 3em; margin: 0 0.1em; max-height: var(--max-size); diff --git a/pretalx_musicrate/templates/pretalx_musicrate/rating.html b/pretalx_musicrate/templates/pretalx_musicrate/rating.html index b2b07b6..c0af84d 100644 --- a/pretalx_musicrate/templates/pretalx_musicrate/rating.html +++ b/pretalx_musicrate/templates/pretalx_musicrate/rating.html @@ -5,7 +5,7 @@ {% block submission_header %} {% compress css %} - + {% endcompress %} {% compress js %}