$(document).on(this.fluidbook.input.clickEvent, '#open-request', function () {
$this.fluidbook.menu.quickCloseView();
$this.getContactForm();
+ $this.fluidbook.resize.resizeView();
return false;
});
},
updateIcon: function () {
- console.log(this.getItemsNumbers());
$(this.fluidbook).trigger('fluidbook.cart.updateIcon', {number: this.getItemsNumbers()});
},
}
var $this = this;
- var content = '<table id="kimplaycarttable" class="cart-items" cellpadding="0" cellspacing="0">';
+ var content = '<div id="wrap-kimplaycart"><table id="kimplaycarttable" class="cart-items" cellpadding="0" cellspacing="0">';
content += '<thead>';
content += '<tr>';
content += '<th></th>';
content += '</tr>';
});
content += '</tbody>';
- content += '</table>';
+ content += '</table></div>';
content += '<div class="cart-footer">';
content += '<div class="fonctions">';
content += '<a href="#/closeview" class="completeSelection" role="button" aria-label="' + this.fluidbook.l10n.__('close') + '">' + this.fluidbook.l10n.__('compléter ma sélection') + '</a>';
}
break;
case 'cart':
+ case 'cart-kimplay-sendcart':
w = this.fluidbook.cart.getMenuWidth();
h = this.fluidbook.cart.getMenuHeight();
if (ww < w) {
+@breakpoint: ~"(max-width: 1024px)";
+
+#menu_cart {
+ width: max-content;
+
+ .menu-item-title {
+ margin-right: 0;
+ }
+}
+
.link a.active[data-cart-ref] {
background-color: rgba(0, 255, 0, 0.5);
}
font-weight: bold;
display: flex;
justify-content: flex-end;
+ gap: 10px;
+
+ @media @breakpoint {
+ flex-direction: column;
+ padding-left: 0;
+ }
+
+ a {
+ margin: 0
+ }
}
input, textarea {
width: auto;
padding: 16px 25px;
height: 45px;
- margin-left: 10px;
vertical-align: top;
}
text-transform: initial;
line-height: 20px;
max-width: 367px;
+
+ @media @breakpoint {
+ max-width: 100%;
+ }
}
}
+[data-menu="cart"].fs .cart-footer {
+ position: initial;
+}
+
.mview[data-menu="cart-kimplay-qty"] {
width: 605px;
height: 364px;
+ @media @breakpoint {
+ height: max-content;
+ padding-bottom: 30px;
+ }
+
.caption {
height: 50px;
padding: 0;
.content {
display: flex;
+
+ @media @breakpoint {
+ flex-direction: column;
+ gap: 31px;
+ }
}
.image {
vertical-align: middle;
width: 245px;
+ @media @breakpoint {
+ width: 100%;
+ }
+
img {
max-width: 250px;
max-height: 300px;
+
+ @media @breakpoint {
+ max-width: 150px;
+ max-height: 200px;
+ }
}
}
text-transform: uppercase;
padding: 0 0 0 50px;
+ @media @breakpoint {
+ width: 100%;
+ padding: 0;
+ }
+
h3 {
font-size: 16px;
}
margin-left: 0;
}
+ #wrap-kimplaycart {
+ overflow-x: auto;
+ }
+
table {
table-layout: fixed;
+ min-width: 800px;
th {
text-transform: uppercase;
text-align: right;
padding: 30px 0 0;
+ @media @breakpoint {
+ text-align: left;
+ }
+
label {
&.error {
justify-content: flex-end;
gap: 10px;
+ @media @breakpoint {
+ align-items: flex-start;
+ flex-direction: column;
+ }
+
&.textarea {
align-items: flex-start;
text-align: left;
padding: 5px 10px;
font-size: 14px;
+
+ @media @breakpoint {
+ width: 100%;
+ }
}
textarea {