From e67b39a57bcf34c021ab573820a0eb430867d717 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 11 Nov 2021 12:20:20 +0100 Subject: [PATCH] Increase padding if background color is set (#2301) --- .../static/pretixpresale/scss/_theme.scss | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/pretix/static/pretixpresale/scss/_theme.scss b/src/pretix/static/pretixpresale/scss/_theme.scss index 9fb7525f06..2f8685f805 100644 --- a/src/pretix/static/pretixpresale/scss/_theme.scss +++ b/src/pretix/static/pretixpresale/scss/_theme.scss @@ -40,7 +40,6 @@ } .page-header.logo-large { - margin: 0 -15px; img { width: 100%; @@ -62,6 +61,11 @@ h2.content-header { } @media (max-width: $screen-xs-max) { + .page-header.logo-large { + margin-left: -15px; + margin-right: -15px; + margin-top: 0; + } h2.content-header small { display: block; } @@ -70,12 +74,16 @@ h2.content-header { .main-box { @if ($body-bg != #FFFFFF) { margin: 20px auto; + padding-left: 25px; + padding-right: 25px; border-radius: $border-radius-large; } } .page-header-links-outside { - padding-left: 0; - padding-right: 0; + @if ($body-bg != #FFFFFF) { + padding-left: 0; + padding-right: 0; + } } .page-header-links > div.header-part { @if ($body-bg != #FFFFFF) { @@ -85,6 +93,13 @@ h2.content-header { } .page-header.logo-large { + margin-top: 0; + + @if ($body-bg != #FFFFFF) { + margin-left: -25px; + margin-right: -25px; + } + img { @if ($body-bg != #FFFFFF) { border-top-right-radius: $border-radius-large; @@ -92,7 +107,14 @@ h2.content-header { } } } + .page-header .loginbox { padding-top: 0; } } + +footer { + @if ($body-bg != #FFFFFF) { + padding-bottom: 0; + } +}