4 Commits
1.3.0 ... 1.3.4

Author SHA1 Message Date
512ba98500 simplify/fix cover position/size
All checks were successful
release-tag / release-image (push) Successful in 5m4s
2024-07-12 12:14:27 +02:00
fc1734d326 border radius styling
All checks were successful
release-tag / release-image (push) Successful in 4m33s
2024-07-12 11:39:51 +02:00
269decb110 fix minor styling issue
All checks were successful
release-tag / release-image (push) Successful in 4m46s
2024-07-12 11:25:37 +02:00
5074455dac styling
All checks were successful
release-tag / release-image (push) Successful in 5m1s
2024-07-12 11:13:10 +02:00
2 changed files with 21 additions and 14 deletions

View File

@@ -106,9 +106,10 @@ header {
background-color: var(--color-choriosity-red--light); background-color: var(--color-choriosity-red--light);
background-color: var(--color-white-100); background-color: var(--color-white-100);
border: 1px solid var(--color-choriosity-red); border: 1px solid var(--color-choriosity-red);
border: 1px solid hsl(calc(var(--hue) * 360), 100%, 40%);
box-shadow: 4px 4px 8px var(--color-white-90); box-shadow: 4px 4px 8px var(--color-white-90);
padding: 0.4em; padding: 0.4em;
border-radius: 0.5em; border-radius: 0.3em;
width: 30em; width: 30em;
margin-bottom: 1rem; margin-bottom: 1rem;
margin-left: 0.5em; margin-left: 0.5em;
@@ -117,25 +118,30 @@ header {
.cover-container { .cover-container {
position: relative; position: relative;
width: 10.67em; width: 11.91em;
height: 6em; height: 6.7em;
float: left; float: left;
margin-right: 1em; margin-right: 1em;
text-align: center; /*background-color: white;*/
background-color: white; display: flex;
/*align-items: center;*/
justify-content: center;
} }
.cover { .cover {
display: block; /*display: block;*/
max-width: 100%; object-fit: contain;
/*max-width: 100%;
max-height: 100%; max-height: 100%;
scale: 2;
position: absolute; position: absolute;
top: 50%; top: 75%;
left: 50%; left: 75%;
-webkit-transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%); transform: translate(-50%, -50%);*/
transition: .3s ease; transition: .3s ease;
border-radius: 0.3em;
} }
.overlay { .overlay {
@@ -181,6 +187,7 @@ header {
.vote-buttons { .vote-buttons {
display: inline-block; display: inline-block;
margin-top: 0.7em;
} }
.button { .button {
@@ -274,12 +281,12 @@ header {
/*color-mix(in srgb, var(--main-color) 60%, transparent);*/ /*color-mix(in srgb, var(--main-color) 60%, transparent);*/
} }
.vote-buttons { /*.vote-buttons {
margin-top: 1em; margin-top: 1em;
width: 100%; width: 100%;
display: inline-flex; display: inline-flex;
justify-content: center; justify-content: center;
} }*/
.song-title, .song-title,
.song-artist { .song-artist {

View File

@@ -181,7 +181,7 @@
{% for main_category, songs in songs_by_category.items() %} {% for main_category, songs in songs_by_category.items() %}
<h2 style="--hue: {{ all_categories[main_category] / all_categories|length }};">{{ main_category }}</h2> <h2 style="--hue: {{ all_categories[main_category] / all_categories|length }};">{{ main_category }}</h2>
{% for song in songs -%} {% for song in songs -%}
<div class="song{% if (song.vote == -1) or (not song.vote and not song.singable) %} not_singable{% endif %}" <div style="--hue: {{ all_categories[main_category] / all_categories|length }};" class="song{% if (song.vote == -1) or (not song.vote and not song.singable) %} not_singable{% endif %}"
id="song-{{ song.id }}"> id="song-{{ song.id }}">
<div class="cover-container"> <div class="cover-container">
<img src="{{ song.thumbnail }}" class="cover"> <img src="{{ song.thumbnail }}" class="cover">
@@ -197,7 +197,7 @@
<div class="categories" id="container">{% for category_name, is_in_category in song.categories.items() %}{% <div class="categories" id="container">{% for category_name, is_in_category in song.categories.items() %}{%
if is_in_category %}<span style="--hue: {{ all_categories[category_name] / all_categories|length }};">{{ if is_in_category %}<span style="--hue: {{ all_categories[category_name] / all_categories|length }};">{{
category_name }}</span>{% category_name }}</span>{%
endif %}{% endfor %}<span style="--main-color: transparent;">&nbsp;</span> endif %}{% endfor %}<span style="--main-color: transparent; --hue: transparent;">&nbsp;</span>
</div> </div>
<div class="vote-buttons"> <div class="vote-buttons">
<div class="button button-no {% if (song.vote == -1) or (not song.vote and not song.singable) %}selected{% endif %}" <div class="button button-no {% if (song.vote == -1) or (not song.vote and not song.singable) %}selected{% endif %}"