]> _ Git - fluidbook-html5.git/commitdiff
wait #7424 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 1 Apr 2025 15:46:26 +0000 (17:46 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 1 Apr 2025 15:46:26 +0000 (17:46 +0200)
js/libs/fluidbook/fluidbook.cart.js
js/libs/fluidbook/fluidbook.js
style/cart.less

index 4ecf36180a2d434c748c60fdd599455f0191cafa..2af033343b89c205445a148d5b77f3642768c87d 100644 (file)
@@ -168,9 +168,7 @@ FluidbookCart.prototype = {
 
                 var paddingTop = 0.5 * ($(this).outerHeight() - bh);
                 var paddingLeft = 0.5 * ($(this).outerWidth() - bw);
-                $(this).attr('data-tooltip', null).addClass('overlay').css({
-                    paddingTop: paddingTop, paddingLeft: paddingLeft
-                }).html('<div class="remove">' + getSpriteIcon('link-cart-remove') + getSpriteIcon('link-cart-remove-hover') + '</div><div class="add">' + getSpriteIcon('link-cart-add') + getSpriteIcon('link-cart-add-hover') + '</div><div class="infos">' + getSpriteIcon('link-cart-info') + '</div>');
+                $(this).attr('data-tooltip', null).addClass('overlay').html('<div style="padding-top: ' + paddingTop + 'px;padding-left: ' + paddingLeft + 'px;"><div class="remove">' + getSpriteIcon('link-cart-remove') + getSpriteIcon('link-cart-remove-hover') + '</div><div class="add">' + getSpriteIcon('link-cart-add') + getSpriteIcon('link-cart-add-hover') + '</div><div class="infos">' + getSpriteIcon('link-cart-info') + '</div></div>');
             });
         }
 
index 0cd445d2b5f269ffd6d4456327f25e5dd75e3712..ceb0237c8e0106e98dcbc6c770094321305a35d4 100644 (file)
@@ -228,6 +228,7 @@ Fluidbook.prototype = {
          */
         this.datas = this.settings;
         $('html').addClass('linksanimation-' + this.settings.linksAnimation);
+        $('html').addClass('linksanimationlayer-' + this.settings.linksAnimationLayer);
     },
 
     setMaxPage: function (p, allowbackwards) {
index b80f326ce6ee4077c853d5a509d47d1f54ab74cb..adf340d44047c39f8c27786521aa081924689621 100644 (file)
@@ -124,7 +124,7 @@ a[data-cart-ref] {
     }
 
     &.displayArea:hover {
-      background-color: rgba(0, 0, 0, 0.65);
+      background-color: @links-area-color;
       mix-blend-mode: multiply;
 
       div {
@@ -132,8 +132,8 @@ a[data-cart-ref] {
       }
     }
 
-    .linksanimation-highlight &:hover {
-      background-color: rgba(0, 0, 0, 0);
+    .linksanimationlayer-under &:hover {
+      opacity: 0;
       mix-blend-mode: multiply;
 
       div {