]> _ Git - fluidbook-html5.git/commitdiff
wait #4346 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 15 Mar 2021 19:38:46 +0000 (20:38 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 15 Mar 2021 19:38:46 +0000 (20:38 +0100)
js/libs/fluidbook/slideshow/fluidbook.slideshow.vacheron.js
style/slideshow/vacheron.less

index b4a9f1c5817f492f2128a30690dd815989b487c6..7e5dd96a344148617100215d2a6bcca6d674c1f0 100644 (file)
@@ -57,6 +57,10 @@ FluidbookVacheronSlideshow.prototype = {
             setTimeout(function () {
                 $(s).addClass('ready');
             }, 100)
+            setTimeout(function () {
+                resize();
+                $(s).find('.fb-slideshow-nav').addClass('visible');
+            }, 250);
         });
     },
 
@@ -128,6 +132,7 @@ FluidbookVacheronSlideshow.prototype = {
         var nav = $(s).find('.fb-slideshow-nav');
         $(nav).css('left', (w - $(nav).outerWidth()) / 2);
 
+
         return {w: w, h: h, fullscreen: fullscreen};
     },
 
index 3cc2f47318ca7339b80080baf0aff3450b366955..539ff9774805eb17aba9f526ed541a5d3957d4f1 100644 (file)
       }
     }
 
+    &.ready {
+      .fb-slideshow-nav.visible {
+        opacity: 1;
+      }
+    }
+
     .fb-slideshow-nav {
       pointer-events: auto;
       position: absolute;
       bottom: 15px;
+      opacity: 0;
+      transition: opacity 250ms;
+      white-space: nowrap;
 
       .fb-slideshow-nav-prev, .fb-slideshow-nav-next {
         @w: 40px;
         margin: 0 10px;
         width: @w;
         height: @w;
-        background-color: #999999;
         border-radius: 50%;
         position: relative;
         top: -13px;
-        border: 3px solid #fff;
+        border: 3px solid transparent;
+        background-color: transparent;
+
+        &:after {
+          content:".";
+          text-indent: -6666px;
+          position: absolute;
+          top: -1px;
+          left: 1px;
+          border-radius: 50%;
+          width: 4px;
+          height: 4px;
+          display: block;
+          background-color: #999999;
+        }
 
         &:hover, &.active {
           background-color: #987e52;
-          border-color: #987e52;
+
+          &:after {
+            display: none;
+          }
         }
       }
     }