Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Make footer stick to the bottom of the page
weronka845b044b5816
diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.jsindex 9bc083b8f4..8604bbd094 100644--- a/saleor/static/js/storefront.js+++ b/saleor/static/js/storefront.js@@ -42,6 +42,13 @@ $(document).ready((e) => {})})+// Sticky footer++var navbarHeight = $('.navbar').outerHeight(true)+var footerHeight = $('.footer').outerHeight(true)+var windowHeight = $(window).height()+$('.maincontent').css('min-height', windowHeight - navbarHeight - footerHeight)+// New address dropdownvar $addressShow = $('.address_show label')diff --git a/saleor/static/scss/storefront/components/_footer.scss b/saleor/static/scss/storefront/components/_footer.scssindex 00e3084a9b..1966bfccc7 100644--- a/saleor/static/scss/storefront/components/_footer.scss+++ b/saleor/static/scss/storefront/components/_footer.scss@@ -28,9 +28,7 @@}}-//make footer stick to the bottom.maincontent {- min-height: calc(100vh - 294px - 191px - 30px);@include media-breakpoint-down(sm) {margin-top: $global-margin * 7;}diff --git a/saleor/static/scss/storefront/components/_login.scss b/saleor/static/scss/storefront/components/_login.scssindex aa218d153d..8c52241b5a 100644--- a/saleor/static/scss/storefront/components/_login.scss+++ b/saleor/static/scss/storefront/components/_login.scss@@ -1,5 +1,5 @@.login {- margin: $global-margin * 3 0;+ padding-top: $global-padding * 2;fieldset {margin-bottom: $global-margin;h2 {