From e6ec4cb4357015cf3b2c8f4a8e77193e9ca78c99 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 13 May 2025 10:51:34 +0200 Subject: [PATCH] Adjust headlines aside from front page (#5098) --- .../pretixpresale/event/fragment_product_list.html | 4 ++-- src/pretix/static/pretixpresale/scss/_theme.scss | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html index 399cdac693..17cbab4e71 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -7,7 +7,7 @@ {% load rich_text %} {% for tup in items_by_category %}{% with category=tup.0 items=tup.1 form_prefix=tup.2 %} {% if category %} -
+
{{ category.name }} {% if category.subevent_name %} {{ category.subevent_name }} @@ -24,7 +24,7 @@
{{ category.description|localize|rich_text }}
{% endif %} {% else %} -
+
{% trans "Uncategorized items" %} {% endif %} {% for item in items %} diff --git a/src/pretix/static/pretixpresale/scss/_theme.scss b/src/pretix/static/pretixpresale/scss/_theme.scss index bb54619c32..83556b0a11 100644 --- a/src/pretix/static/pretixpresale/scss/_theme.scss +++ b/src/pretix/static/pretixpresale/scss/_theme.scss @@ -1,10 +1,18 @@ h1, .h1, h2, .h2, h3, .h3 { - margin-top: 2.25 * $line-height-computed; + margin-top: 0.75 * $line-height-computed; margin-bottom: 0.75 * $line-height-computed; } +.front-page, .item-category { + h1, .h1, + h2, .h2, + h3, .h3 { + margin-top: 2.25 * $line-height-computed; + } +} + .page-header { position: relative; padding-bottom: 9px;