From: soufiane Date: Thu, 2 May 2024 15:13:30 +0000 (+0200) Subject: wait #6890 @0:30 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1384ea2aa3931e1d49530e4a6df85fbdc5ba6821;p=bastide-resah.git wait #6890 @0:30 --- diff --git a/resources/webflow/css/custom.css b/resources/webflow/css/custom.css index b342b80..907a7ba 100644 --- a/resources/webflow/css/custom.css +++ b/resources/webflow/css/custom.css @@ -3,7 +3,7 @@ } #viewOverlay { - position: absolute; + position: fixed; top: 0; left: 0; width: 100%; @@ -22,7 +22,7 @@ } #view { - position: absolute; + position: fixed; top: 0; z-index: 42; display: none; @@ -36,9 +36,9 @@ } #view.active { - top: 103.101px; + top: 50%; opacity: 1; - transform: translate(-50%, 0); + transform: translate(-50%, -50%); display: block; } @@ -46,11 +46,13 @@ background-color: #fff; color: #000; height: 100%; + max-height: 80vh; width: 100%; //min-height: 25vh; min-width: 320px; max-width: 336px; margin: 0 auto; + overflow: auto; } #Bastide_cart * { @@ -172,7 +174,7 @@ input { flex-direction: column; } .form-controls label { - margin-bottom: .625em; + margin-bottom: 4px; text-transform: uppercase; } .form-controls input { @@ -221,6 +223,8 @@ input { transform: translateY(100%); left: 25px; } -#Bastide_register_form .form-controls.condition label { +#Bastide_register_form .form-controls.condition label, +#Bastide_register_form .form-controls.condition label a { text-transform: initial; + font-size: 14px; } diff --git a/resources/webflow/js/custom.js b/resources/webflow/js/custom.js index 04dc657..15ab7fd 100644 --- a/resources/webflow/js/custom.js +++ b/resources/webflow/js/custom.js @@ -110,6 +110,11 @@ Cart.prototype = { view += ""; $("section.main").append(view) $("#viewOverlay,#view").addClass("active") + this.manageScroll("hidden") + }, + + manageScroll: function(overflow) { + $("body").css("overflow",overflow) }, getCartContent: function (action = null) { @@ -230,6 +235,7 @@ Cart.prototype = { closeView: function() { $("#viewOverlay").removeClass("active") $("#view").remove() + this.manageScroll("auto") }, register: function(d) {