From da4c13672b55c1c719ec4d2286842e64c6d922f3 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 15 May 2024 00:51:05 +0200 Subject: [PATCH] feat(team): make shift boxes full-size links by default --- shiftregister/core/templates/base.html | 8 ++++++ .../team/templates/helper_detail.html | 4 +-- .../team/templates/partials/shift_box.html | 25 +++++++++---------- shiftregister/team/templates/shift_list.html | 4 +-- .../team/templates/shift_overview.html | 4 +-- 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/shiftregister/core/templates/base.html b/shiftregister/core/templates/base.html index 17aa5b1..41f49a0 100644 --- a/shiftregister/core/templates/base.html +++ b/shiftregister/core/templates/base.html @@ -14,6 +14,10 @@ src: url("{% static 'MavenPro-VariableFont:wght.ttf' %}"); } + a:hover > .box { + background: #eee; + } + body { font-family: "Maven Pro", sans-serif !important; min-height: 100vh; @@ -68,6 +72,10 @@ } @media (prefers-color-scheme: dark) { + a:hover > .box { + background: #1a1a1a; + } + :root { --background: #17181c; } diff --git a/shiftregister/team/templates/helper_detail.html b/shiftregister/team/templates/helper_detail.html index fdd60e5..6760931 100644 --- a/shiftregister/team/templates/helper_detail.html +++ b/shiftregister/team/templates/helper_detail.html @@ -13,9 +13,7 @@
Schichten
{% for reg in helper.shiftregistration_set.all %} - - {% include 'partials/shift_list_item.html' with shift=reg.shift %} - + {% include 'partials/shift_list_item.html' with shift=reg.shift %} {% endfor %}
Nachrichtenverlauf
diff --git a/shiftregister/team/templates/partials/shift_box.html b/shiftregister/team/templates/partials/shift_box.html index b0e0c08..7fcb4b3 100644 --- a/shiftregister/team/templates/partials/shift_box.html +++ b/shiftregister/team/templates/partials/shift_box.html @@ -1,18 +1,17 @@ -
- + diff --git a/shiftregister/team/templates/shift_list.html b/shiftregister/team/templates/shift_list.html index 0a8dbc8..d678283 100644 --- a/shiftregister/team/templates/shift_list.html +++ b/shiftregister/team/templates/shift_list.html @@ -6,9 +6,7 @@

{{ title }}

{% for shift in object_list %} - - {% include "partials/shift_list_item.html" %} - + {% include "partials/shift_list_item.html" %} {% endfor %}
{% endblock %} diff --git a/shiftregister/team/templates/shift_overview.html b/shiftregister/team/templates/shift_overview.html index 0f4aa6c..9cfac67 100644 --- a/shiftregister/team/templates/shift_overview.html +++ b/shiftregister/team/templates/shift_overview.html @@ -25,9 +25,7 @@ {% for shift in next_shifts_per_room %}
{{ shift.room.name }}
- - {% include "partials/shift_box.html" %} - + {% include "partials/shift_box.html" %}
{% endfor %}