From: Vincent Vanwaelscappel Date: Wed, 10 Nov 2021 10:45:26 +0000 (+0100) Subject: wait #4854 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d051ddd20cf9eedd1287a991ee554461d7a055fc;p=fluidbook-html5.git wait #4854 @0.25 --- diff --git a/images/symbols/cart-overlay.svg b/images/symbols/cart-overlay.svg index 2096d4bd..4d6ed28e 100644 --- a/images/symbols/cart-overlay.svg +++ b/images/symbols/cart-overlay.svg @@ -1,19 +1,19 @@ - + - + - + - + diff --git a/js/libs/fluidbook/fluidbook.cart.js b/js/libs/fluidbook/fluidbook.cart.js index 6ca7ef48..78d00ae4 100644 --- a/js/libs/fluidbook/fluidbook.cart.js +++ b/js/libs/fluidbook/fluidbook.cart.js @@ -79,7 +79,7 @@ FluidbookCart.prototype = { $('a[data-cart-ref]').each(function () { var paddingTop = 0.5 * ($(this).outerHeight() - 100); - var paddingLeft = 0.5 * ($(this).outerWidth() - 300); + var paddingLeft = 0.5 * ($(this).outerWidth() - 250); $(this).attr('data-tooltip', null).addClass('overlay').css({ paddingTop: paddingTop, paddingLeft: paddingLeft diff --git a/style/cart.less b/style/cart.less index 79946a4b..832bc4b6 100644 --- a/style/cart.less +++ b/style/cart.less @@ -12,11 +12,11 @@ a[data-cart-ref] { height: @w; &:last-child { - margin-left: @w; + margin-left: unit(@w*0.5, px); } svg { - top:0; + top: 0; left: 0; width: @w; height: @w;