From: soufiane Date: Thu, 29 Jan 2026 17:22:11 +0000 (+0100) Subject: wait #7957 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5ea6981228b45dea4e86c8517d3fd518dab3624a;p=fluidbook-html5.git wait #7957 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.newheidi.js b/js/libs/fluidbook/cart/fluidbook.cart.newheidi.js index 211c8883..42c10a16 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.newheidi.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.newheidi.js @@ -233,12 +233,12 @@ FluidbookCartNewHeidi.prototype = { var subTotal = $this.normalizePrice((parseFloat(item.price) * parseFloat(item.quantity)).toFixed(2), false); content += ''; - content += '' + i + ''; + content += '' + i + ''; content += '' + item.name + ''; - content += '' + item.batch + ''; - content += '' + $this.normalizePrice(item.price.toFixed(2), false) + ''; + content += '' + item.batch + ''; + content += '' + $this.normalizePrice(item.price.toFixed(2), false) + ''; content += ''; - content += '' + subTotal + ''; + content += '' + subTotal + ''; content += '' + getSpriteIcon('interface-close') + ''; content += ''; }); diff --git a/style/cart/newheidi.less b/style/cart/newheidi.less index af9b2379..dddcc482 100644 --- a/style/cart/newheidi.less +++ b/style/cart/newheidi.less @@ -10,7 +10,13 @@ } .link a.active[data-cart-ref] { - background-color: rgba(0, 255, 0, 0.5); + background-color: rgba(222, 229, 154, 0.6); +} + +.icon-cart span.number { + background-color: #dee59a; + color: #000000; + font-weight: bold; } .mview[data-menu="cart"], @@ -33,6 +39,10 @@ &[data-menu=cart] { max-width: 1060px !important; + + @media @breakpoint { + min-width: 100% !important; + } } &[data-menu=cart-newheidi-sendcart] { @@ -187,21 +197,10 @@ margin-left: 0; } - #wrap-newheidicart { - overflow-x: auto; - position: relative; - - .ps__rail-x { - opacity: 1; + table,tbody,th,tr,td { - @media @breakpoint { - display: block; - } - } - - .ps__thumb-x { - height: 5px; - bottom: 0; + @media @breakpoint { + display: block; } } @@ -210,7 +209,7 @@ min-width: 800px; @media @breakpoint { - min-width: 1023px; + min-width: 100%; } th { @@ -223,6 +222,10 @@ height: 60px; font-size: 13px; + @media @breakpoint { + display: none; + } + &.center { text-align: center; } @@ -258,6 +261,13 @@ } } + tr { + + @media @breakpoint { + margin-bottom: 20px; + } + } + td { padding: 0 13px; height: 80px; @@ -276,6 +286,10 @@ &.reference { padding-left: 33px; + + @media @breakpoint { + padding-left: 0; + } } &.commentaire,&.reference { @@ -307,6 +321,22 @@ width: 10px; } } + + @media @breakpoint { + width: max-content; + height: auto; + padding: 1px 0; + display: block; + text-align: left !important; + } + + &:not(.designation) span:before { + + @media @breakpoint { + content: attr(data-label) ' : '; + font-weight: bold; + } + } } } @@ -337,12 +367,20 @@ left: 36px; background-size: 5px 2px; background-image: url("data:image/svg+xml;utf8, "); + + @media @breakpoint { + left: 4px; + } } &.increase { right: 36px; background-size: 8px 6px; background-image: url("data:image/svg+xml;utf8, "); + + @media @breakpoint { + right: 4px; + } } }