From a169179061c27670f14196cc21cdf64988fb941c Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Fri, 30 Aug 2019 20:04:04 -0700 Subject: [PATCH 1/5] Start off cart hidden on desktop breakpoint --- BTCPayServer/wwwroot/cart/css/style.css | 36 ++++++------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/BTCPayServer/wwwroot/cart/css/style.css b/BTCPayServer/wwwroot/cart/css/style.css index 1f3b8720b..ec4090ff1 100644 --- a/BTCPayServer/wwwroot/cart/css/style.css +++ b/BTCPayServer/wwwroot/cart/css/style.css @@ -47,6 +47,7 @@ } #sidebar { + margin-right: -400px; width: 400px; position: fixed; top: 0; @@ -59,13 +60,13 @@ transition: all 0.3s; -webkit-overflow-scrolling: touch; } -#sidebar .js-cart { - display: none; -} - #sidebar.active { - margin-right: -400px; + margin-right: 0; +} + +#sidebarCollapse span { + display: none; } /* --------------------------------------------------- @@ -73,7 +74,7 @@ ----------------------------------------------------- */ #content { - width: calc(100% - 400px); + width: 100%; min-height: 100vh; transition: all 0.3s; position: absolute; @@ -82,7 +83,7 @@ } #content.active { - width: 100%; + width: calc(100% - 400px); } .bg-gray { @@ -96,27 +97,6 @@ MEDIAQUERIES ----------------------------------------------------- */ -@media (max-width: 768px) { - #sidebar { - margin-right: -400px; - } - #sidebar .js-cart { - display: inline; - } - #sidebar.active { - margin-right: 0; - } - #content { - width: 100%; - } - #content.active { - width: calc(100% - 400px); - } - #sidebarCollapse span { - display: none; - } -} - @media (max-width: 575px) { #sidebar { width: 100%; From 1ec342da1ea52e4758a3b81ac7c3c2020f4c0e7a Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Fri, 30 Aug 2019 20:06:08 -0700 Subject: [PATCH 2/5] Apply consistent border radius to POS app search bar --- .../Views/AppsPublic/ViewPointOfSale.cshtml | 20 +++++++++---------- BTCPayServer/wwwroot/cart/css/style.css | 9 +++++++++ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml b/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml index 55867c416..a5269e6e8 100644 --- a/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml +++ b/BTCPayServer/Views/AppsPublic/ViewPointOfSale.cshtml @@ -49,7 +49,7 @@ @if (!string.IsNullOrEmpty(Model.EmbeddedCSS)) { - @Safe.Raw($""); + @Safe.Raw($""); } @@ -231,11 +231,11 @@