From 4a5fd08e510e3c8bfda6eab29c245f326b612407 Mon Sep 17 00:00:00 2001 From: d11n Date: Mon, 26 Sep 2022 10:29:35 +0200 Subject: [PATCH] Footer: Improve responsive display (#4163) Enhancement in addition to #4160. --- BTCPayServer/Views/Shared/_Footer.cshtml | 60 +++++++++---------- .../Views/Shared/_LayoutSimple.cshtml | 2 - BTCPayServer/wwwroot/main/layout.css | 10 +--- 3 files changed, 31 insertions(+), 41 deletions(-) diff --git a/BTCPayServer/Views/Shared/_Footer.cshtml b/BTCPayServer/Views/Shared/_Footer.cshtml index 8cdc0dfed..202e951c9 100644 --- a/BTCPayServer/Views/Shared/_Footer.cshtml +++ b/BTCPayServer/Views/Shared/_Footer.cshtml @@ -2,39 +2,37 @@ @inject BTCPayServer.Services.BTCPayServerEnvironment _env diff --git a/BTCPayServer/Views/Shared/_LayoutSimple.cshtml b/BTCPayServer/Views/Shared/_LayoutSimple.cshtml index 64bd31165..cfc72a214 100644 --- a/BTCPayServer/Views/Shared/_LayoutSimple.cshtml +++ b/BTCPayServer/Views/Shared/_LayoutSimple.cshtml @@ -8,10 +8,8 @@ @await RenderSectionAsync("PageHeadContent", false) diff --git a/BTCPayServer/wwwroot/main/layout.css b/BTCPayServer/wwwroot/main/layout.css index 4ce843790..4fede3e69 100644 --- a/BTCPayServer/wwwroot/main/layout.css +++ b/BTCPayServer/wwwroot/main/layout.css @@ -372,7 +372,7 @@ .btcpay-footer { font-size: var(--btcpay-font-size-s); overflow: hidden; - padding: .5em 0; + padding: 0 var(--content-padding-horizontal) 1rem; color: var(--btcpay-footer-text); background: var(--btcpay-footer-bg); } @@ -613,16 +613,10 @@ max-width: calc(100vw - var(--sidebar-width) - (2 * var(--btcpay-space-xl)) - 1rem); /* 1rem for scrollbar */ } - #mainContent > section, - .btcpay-footer > .container { + #mainContent > section { margin: 0; max-width: none; } - - .btcpay-footer { - padding-left: var(--btcpay-space-xl); - padding-right: var(--btcpay-space-xl); - } #SectionNav .nav { margin-top: calc(var(--btcpay-space-m) * -1);