Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fc1734d326 | |||
| 269decb110 | |||
| 5074455dac |
@@ -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,8 +118,8 @@ header {
|
|||||||
|
|
||||||
.cover-container {
|
.cover-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 10.67em;
|
width: 11.67em;
|
||||||
height: 6em;
|
height: 6.7em;
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -136,6 +137,7 @@ header {
|
|||||||
-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 +183,7 @@ header {
|
|||||||
|
|
||||||
.vote-buttons {
|
.vote-buttons {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin-top: 0.7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
@@ -274,12 +277,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 {
|
||||||
|
|||||||
@@ -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;"> </span>
|
endif %}{% endfor %}<span style="--main-color: transparent; --hue: transparent;"> </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 %}"
|
||||||
|
|||||||
Reference in New Issue
Block a user