From 3ad710e7fd15cb1c87d05cb319cff2466b1e914c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 17 Apr 2018 13:59:54 +0200 Subject: [PATCH] wip #1927 @1.5 --- .../cart/fluidbook.cart.remarkable.js | 14 +++-- js/libs/fluidbook/fluidbook.menu.js | 3 + style/fluidbook.less | 58 ++++++++++++++++++- 3 files changed, 70 insertions(+), 5 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js b/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js index e3e97423..cd2ef9b7 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.remarkable.js @@ -114,7 +114,7 @@ FluidbookCartRemarkable.prototype = { var ht = item.price * quantity; var ttc = ht * (1 + item.tax); content += ''; - content += '' + item.name + ''; + content += '' + item.name + '
Prix unitaire : ' + $this.formatPrice(item.price, 'HT') + '
Prix HT : ' + $this.formatPrice(ht, 'HT') + '
Prix TTC : ' + $this.formatPrice(ttc, 'TTC') + '
'; content += ''; content += '' + $this.formatPrice(item.price, 'HT') + ''; content += '' + $this.formatPrice(ht, 'HT') + ''; @@ -200,16 +200,22 @@ FluidbookCartRemarkable.prototype = { res += '
'; res += ''; res += ''; + res += '
'; + + res += '
'; + res += ''; + res += ''; + res += '
'; + + res += '
'; res += '

Adresse de facturation :

'; res += ''; res += ''; res += ''; res += ''; res += '
'; - + res += '
'; - res += ''; - res += ''; res += '

Adresse de livraison - Enseigne (si différente) :

'; res += ''; res += ''; diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 44898945..0db9909d 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -407,6 +407,9 @@ FluidbookMenu.prototype = { break; case 'cart': w = 1024; + if (ww < 1024) { + fullscreen = true; + } break; case 'bookmarks': var max = Math.floor((ww * 0.8) / 120) * 120 + 40; diff --git a/style/fluidbook.less b/style/fluidbook.less index 37633444..29a0a093 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -864,8 +864,61 @@ a.bookmark { padding: 50px; } + &.fs { + table { + td { + &.name { + width: 100%; + .m { + display: block; + } + } + &.price, &.price_excluding_taxes, &.price_unit { + display: none; + } + } + } + + .cart-footer { + clear: both; + width: 100%; + text-align: left; + position: relative; + top: -40px; + p { + float: none; + width: 100%; + font-size: 0.8em; + padding: 0 30px 30px; + margin: 0; + } + + .fonctions { + float: none; + width: 100%; + } + } + + .cart-shipping-form { + margin-top: 30px; + .col { + &.col-left, &.col-right { + width: 100%; + left: 0; + margin-top: 0; + margin-right: 0; + padding: 0 30px; + } + } + .cart-footer{ + top: 0; + } + } + + } + table { - width: 1004px; + max-width: 1004px; margin-left: 10px; td { padding: 15px; @@ -874,6 +927,9 @@ a.bookmark { white-space: nowrap; &.name { white-space: normal; + .m { + display: none; + } } &.price { font-weight: 700; -- 2.39.5