From 62329b5124a0891deae1d6e4a8f7761b3e0d5dfa Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Thu, 18 Nov 2021 23:35:38 +0100 Subject: [PATCH] Tabellenmuster gefixt (`nopattern`-class) --- nateman/static/style.css | 6 +++--- nateman/templates/schueler/versaeumnisse.html.j2 | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/nateman/static/style.css b/nateman/static/style.css index dcbf446..399e981 100644 --- a/nateman/static/style.css +++ b/nateman/static/style.css @@ -337,15 +337,15 @@ table tr.clickable { table tr.clickable:hover, table tr.clickable:focus { - background-color: var(--bg-tertiary); + background-color: var(--bg-tertiary) !important; outline: none; } -table tbody tr:nth-child(odd) { +table tbody tr:nth-child(odd), table.nopattern tbody tr { background-color: var(--bg-primary); } -table tbody tr:nth-child(even) { +table:not(.nopattern) tbody tr:nth-child(even), table tbody tr.explicit-pattern { background-color: var(--bg-secondary); } diff --git a/nateman/templates/schueler/versaeumnisse.html.j2 b/nateman/templates/schueler/versaeumnisse.html.j2 index 8e8f489..fb9a616 100644 --- a/nateman/templates/schueler/versaeumnisse.html.j2 +++ b/nateman/templates/schueler/versaeumnisse.html.j2 @@ -45,7 +45,7 @@ {% if klausur_list|length == 0 %}

keine

{% else %} - +
@@ -68,8 +68,9 @@ {% for klausur in klausur_list %} {% set kt_list = Klausurteilnahme.query .filter_by(klausur=klausur, versaeumt=true, nachgeschrieben=nachgeschrieben).all() %} + {% set klausur_index = loop.index %} {% for kt in kt_list %} - + {% if loop.first %}
Klausur