]> _ Git - fluidbook-html5.git/commitdiff
wait #4854 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Nov 2021 10:45:26 +0000 (11:45 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Nov 2021 10:45:26 +0000 (11:45 +0100)
images/symbols/cart-overlay.svg
js/libs/fluidbook/fluidbook.cart.js
style/cart.less

index 2096d4bde0d44fe0b4a9ad7f580f10d04e65b7c3..4d6ed28ee44d7cd32074b60344e72aa2c3875b81 100644 (file)
@@ -1,19 +1,19 @@
 <svg xmlns="http://www.w3.org/2000/svg" style="display:none;">
-    <symbol id="link-cart-add-hover" viewBox="0 0 35 35">
+    <symbol id="link-cart-add" viewBox="0 0 35 35">
         <path d="M17.5,0.5c-9.4,0-17,7.6-17,17c0,9.4,7.6,17,17,17c9.4,0,17-7.6,17-17C34.5,8.1,26.9,0.5,17.5,0.5z M26.2,18.5
                h-7.8v7.8h-2v-7.8H8.8v-2h7.8V8.8h2v7.8h7.8V18.5z"/>
     </symbol>
-    <symbol id="link-cart-remove-hover" viewBox="0 0 35 35">
+    <symbol id="link-cart-remove" viewBox="0 0 35 35">
         <path d="M17.5,0.5c-9.4,0-17,7.6-17,17c0,9.4,7.6,17,17,17s17-7.6,17-17C34.5,8.1,26.9,0.5,17.5,0.5z M26.2,18.5H8.8
                v-2h17.5V18.5z"/>
     </symbol>
-    <symbol id="link-cart-add" viewBox="0 0 35 35">
+    <symbol id="link-cart-add-hover" viewBox="0 0 35 35">
         <path d="M17.5,0C7.9,0,0,7.9,0,17.5S7.9,35,17.5,35S35,27.1,35,17.5S27.1,0,17.5,0z M17.5,34C8.4,34,1,26.6,1,17.5
                S8.4,1,17.5,1S34,8.4,34,17.5S26.6,34,17.5,34z"/>
         <polygon points="18.5,8.8 16.5,8.8 16.5,16.5 8.8,16.5 8.8,18.5 16.5,18.5 16.5,26.2 18.5,26.2 18.5,18.5 26.3,18.5
                26.3,16.5 18.5,16.5     "/>
     </symbol>
-    <symbol id="link-cart-remove" viewBox="0 0 35 35">
+    <symbol id="link-cart-remove-hover" viewBox="0 0 35 35">
         <path d="M17.5,0C7.9,0,0,7.9,0,17.5S7.9,35,17.5,35S35,27.1,35,17.5S27.1,0,17.5,0z M17.5,34C8.4,34,1,26.6,1,17.5
                S8.4,1,17.5,1S34,8.4,34,17.5S26.6,34,17.5,34z"/>
         <rect x="8.7" y="16.5" width="17.5" height="2"/>
index 6ca7ef480e9afa0b995fbba6af541b58f09e2be9..78d00ae45a1b94808245d02b419481e6de6ae3ea 100644 (file)
@@ -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
index 79946a4b27544052f0f8d0a1182b17894d1a0988..832bc4b64c2dec22f840c4f048ae1c8c3efb912d 100644 (file)
@@ -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;