]> _ Git - bastide-resah.git/commitdiff
wait #6890 @0:30
authorsoufiane <soufiane@cubedesigners.com>
Thu, 2 May 2024 15:13:30 +0000 (17:13 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 2 May 2024 15:13:30 +0000 (17:13 +0200)
resources/webflow/css/custom.css
resources/webflow/js/custom.js

index b342b803d92627499c1a5fe725187cd61e4038d7..907a7ba98f55bb2e0ea779a6b49b6179827dec8e 100644 (file)
@@ -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;
 }
 
     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;
 }
index 04dc657be86e4ec39373395f3af419c9dc979f00..15ab7fdb6608f4f0874c5b4015b7aa188c586388 100644 (file)
@@ -110,6 +110,11 @@ Cart.prototype = {
         view += "</div>";
         $("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) {