From 88a6c4ada933138921af9426e088952571cb256c Mon Sep 17 00:00:00 2001 From: "matthias@matsewe.de" Date: Tue, 21 May 2024 14:31:59 +0200 Subject: [PATCH] simplify styles --- static/site.css | 8 ++++---- templates/voting.html | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/static/site.css b/static/site.css index 9bfe174..75fc18a 100644 --- a/static/site.css +++ b/static/site.css @@ -184,7 +184,7 @@ .categories { width: 60%; overflow: hidden; - cursor: grab; + /*cursor: grab;*/ white-space: nowrap; font-size: 0.7em; line-height: 1.2em; @@ -199,7 +199,7 @@ color: white; max-width: 10em; overflow: clip; - background-color: var(--main-color); + background-color: hsl(calc(var(--hue) * 360), 100%, 40%); /*color-mix(in srgb, var(--main-color) 60%, transparent);*/ } .vote-buttons { @@ -225,8 +225,8 @@ h1 { padding-left: 0.2em; margin-bottom: 1rem; font-size: 1.5em; - background-color: color-mix(in srgb, var(--main-color) 60%, transparent); - border-bottom: 0.3rem solid var(--main-color); + background-color: hsl(calc(var(--hue) * 360), 100%, 70%); /*color-mix(in srgb, var(--main-color) 60%, transparent);*/ + border-bottom: 0.3rem solid hsl(calc(var(--hue) * 360), 100%, 40%); } #yt-player, diff --git a/templates/voting.html b/templates/voting.html index 0cba5a2..7c34a33 100644 --- a/templates/voting.html +++ b/templates/voting.html @@ -8,7 +8,6 @@ - @@ -117,7 +116,7 @@
{% for main_category, songs in songs_by_category.items() %} -

{{ main_category }}

+

{{ main_category }}

{% for song in songs -%}
@@ -132,7 +131,7 @@ song.aca_artist != song.og_artist %} / {{ song.aca_artist }}{% endif %}{% else %}{{ song.aca_artist }}{% endif %}
{% for category_name, is_in_category in song.categories.items() %}{% - if is_in_category %}{{ category_name }}{% + if is_in_category %}{{ category_name }}{% endif %}{% endfor %}