From 898a9930bb76c7b24820ffdc606f98a3c82230d8 Mon Sep 17 00:00:00 2001 From: krateng Date: Sat, 25 Dec 2021 03:12:03 +0100 Subject: [PATCH] Improved HTML semantics --- maloja/web/jinja/admin_issues.jinja | 16 ++++++++--- maloja/web/jinja/admin_manual.jinja | 4 +-- maloja/web/jinja/admin_overview.jinja | 6 ++-- maloja/web/jinja/track.jinja | 2 +- maloja/web/static/css/maloja.css | 40 +++++++-------------------- 5 files changed, 28 insertions(+), 40 deletions(-) diff --git a/maloja/web/jinja/admin_issues.jinja b/maloja/web/jinja/admin_issues.jinja index 654263f..a6d7b1e 100644 --- a/maloja/web/jinja/admin_issues.jinja +++ b/maloja/web/jinja/admin_issues.jinja @@ -52,8 +52,12 @@ {% for issue in issuedata.duplicates %} {{ links.link(issue[0]) }} is a possible duplicate of {{ links.link(issue[1]) }} -
{{ issue[1] }} is correct
-
{{ issue[0] }} is correct
+ + + + + + {% endfor %} @@ -62,14 +66,18 @@ {{ links.link(issue[0]) }} sounds like the combination of {{ issue[1].__len__() }} artists: {{ issue[1]|join(", ") }} -
Fix it
+ + + {% endfor %} {% for issue in issuedata.newartists %} Is '{{ issue[0] }}' in '{{ links.link(issue[1]) }}' an artist? -
Yes
+ + + {% endfor %} diff --git a/maloja/web/jinja/admin_manual.jinja b/maloja/web/jinja/admin_manual.jinja index 8e91a02..db3b973 100644 --- a/maloja/web/jinja/admin_manual.jinja +++ b/maloja/web/jinja/admin_manual.jinja @@ -30,8 +30,8 @@
- Scrobble! - + +
diff --git a/maloja/web/jinja/admin_overview.jinja b/maloja/web/jinja/admin_overview.jinja index 964ce97..9d6913d 100644 --- a/maloja/web/jinja/admin_overview.jinja +++ b/maloja/web/jinja/admin_overview.jinja @@ -70,9 +70,9 @@ {% if adminmode %} - Deactivate + {% else %} - Activate + {% endif %}

Links

@@ -85,6 +85,6 @@


- Change + {% endif %} {% endblock %} diff --git a/maloja/web/jinja/track.jinja b/maloja/web/jinja/track.jinja index 56b6561..632fd34 100644 --- a/maloja/web/jinja/track.jinja +++ b/maloja/web/jinja/track.jinja @@ -48,7 +48,7 @@

- {% if adminmode %}Scrobble now{% endif %} + {% if adminmode %}{% endif %} {{ info['scrobbles'] }} Scrobbles

diff --git a/maloja/web/static/css/maloja.css b/maloja/web/static/css/maloja.css index 4bbb2c8..b8712d0 100644 --- a/maloja/web/static/css/maloja.css +++ b/maloja/web/static/css/maloja.css @@ -419,19 +419,26 @@ img.star { -.button { +button { padding:3px; padding-right:6px; padding-left:6px; + border: 0px; + font-family: inherit; + font-size: inherit; background-color: var(--button-color-bg); color: var(--button-color-fg); cursor:pointer; } -.button:hover { +button.important { + background-color:red; + color:white; +} +button:hover { background-color: var(--button-color-bg-focus); color: var(--button-color-fg-focus); } -.button.locked { +button.locked { background-color:grey; color:black; cursor:not-allowed; @@ -650,33 +657,6 @@ table.list tr td.chart div.bronze { } - -table.list tr td.button { - width:200px; - cursor:pointer; - border-color:rgba(0,0,0,0)!important; -} - - -table.list td.button div { - background-color: var(--button-color-bg); - color: var(--button-color-fg); - padding:3px; - border-radius:4px; -} -table.list td.button div:hover { - background-color: var(--button-color-bg-focus); - color: var(--button-color-fg-focus); - padding:3px; - border-radius:4px; -} - -td.button.important div { - background-color:red; - color:white; -} - - table.misc { margin-left:20px; }