From 3c5ccaa1ba24205300a16048d407c92386eac2a6 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 19 Nov 2024 09:26:57 +0100 Subject: [PATCH] improve styling --- .../organizers/customer_profile.html | 25 ++++++++----------- src/pretix/static/pretixbase/scss/_theme.scss | 20 ++++++++++++++- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html b/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html index a225fe7ab8..154d8accac 100644 --- a/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html +++ b/src/pretix/presale/templates/pretixpresale/organizers/customer_profile.html @@ -9,8 +9,8 @@

{% trans "Your account" %}

-
-
+
+
{{ customer.name }}
{{ customer.email }}
@@ -31,7 +31,8 @@
{% trans "Customer ID" %}
#{{ customer.identifier }}
-
+
+
{% if orders %} -
    +
      {% for o in orders %}
    1. -
    2. {% endfor %}
    - {% include "pretixcontrol/pagination.html" %} {% else %}

    {% trans "You don’t have any orders in your account yet." %}

    {% endif %} diff --git a/src/pretix/static/pretixbase/scss/_theme.scss b/src/pretix/static/pretixbase/scss/_theme.scss index 6781031b36..01017ab6b0 100644 --- a/src/pretix/static/pretixbase/scss/_theme.scss +++ b/src/pretix/static/pretixbase/scss/_theme.scss @@ -254,7 +254,7 @@ svg.svg-icon { @include table-row-variant('danger', var(--pretix-brand-danger-lighten-30), var(--pretix-brand-danger-lighten-25)); .text-blob-success, .text-blob-info, .text-blob-warning, .text-blob-danger { - padding: .125em .5em; + padding: .125em .65em 0; border-radius: 1em; font-weight: bold; white-space: nowrap; @@ -282,3 +282,21 @@ svg.svg-icon { color: var(--pretix-brand-danger-darken-5); background: var(--pretix-brand-danger-lighten-43); } + + +.full-width-list { + list-style: none; + margin: 0; + padding: 0; + + li { + padding: 15px 0; + } + li+li { + border-top: 1px solid $table-border-color; + } +} + +.alternating-rows .row:nth-child(even) { + background-color: $table-bg-accent; +}