fix: background images in production
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Luca 2023-12-17 03:54:04 +01:00
parent 31c3c820fd
commit 2bb22a0e78
3 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
__version__ = "0.6.0" __version__ = "0.7.0"

View File

@ -33,12 +33,12 @@
} }
.rating-container > .rating > input[type=radio]:checked ~ .rating-point { .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 { .rating-container > .rating > .rating-point {
--max-size: calc((100vw - 2em - 2 * 0.1em * var(--num-choices)) / var(--num-choices)); --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; height: 3em;
margin: 0 0.1em; margin: 0 0.1em;
max-height: var(--max-size); max-height: var(--max-size);

View File

@ -5,7 +5,7 @@
{% block submission_header %} {% block submission_header %}
{% compress css %} {% compress css %}
<link rel="stylesheet" href="{% static "pretalx_musicrate/rating.css" %}"> <link rel="stylesheet" type="text/x-scss" href="{% static "pretalx_musicrate/rating.scss" %}">
{% endcompress %} {% endcompress %}
{% compress js %} {% compress js %}
<script defer src="{% static "pretalx_musicrate/rating.js" %}"></script> <script defer src="{% static "pretalx_musicrate/rating.js" %}"></script>