]> _ Git - fluidbook-html5.git/commitdiff
wip #5101 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 16 Feb 2022 11:20:01 +0000 (12:20 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 16 Feb 2022 11:20:01 +0000 (12:20 +0100)
images/symbols/interface.svg
js/libs/fluidbook/fluidbook.bookmarks.js
style/fluidbook.less

index 0c4ca778c3e255cfbaedd636c13d8a3febea9339..bde37479941b56c6f076cf51618c5678b0a3ae00 100644 (file)
         <path d="M26,19.2h-5c-0.6,0-1,0.4-1,1v19.5c0,0.6,0.4,1,1,1h5c0.6,0,1-0.4,1-1V20.2C27,19.8,26.6,19.2,26,19.2z"/>
         <path d="M39,19.2h-5c-0.6,0-1,0.4-1,1v19.5c0,0.6,0.4,1,1,1h5c0.6,0,1-0.4,1-1V20.2C40,19.8,39.6,19.2,39,19.2z"/>
     </symbol>
+    <symbol id="icon-trashbin" viewBox="0 0 21 24">
+        <path d="M16.9,23.3H4.1c-1,0-1.7-0.8-1.7-1.7v-17c0-0.4,0.3-0.7,0.7-0.7s0.7,0.3,0.7,0.7v17c0,0.2,0.2,0.3,0.3,0.3h12.8
+       c0.2,0,0.3-0.2,0.3-0.3v-17c0-0.4,0.3-0.7,0.7-0.7s0.7,0.3,0.7,0.7v17C18.6,22.5,17.9,23.3,16.9,23.3z"/>
+        <path d="M15.2,5.3c-0.4,0-0.7-0.3-0.7-0.7V2.5c0-0.2-0.2-0.3-0.3-0.3H6.9c-0.2,0-0.3,0.2-0.3,0.3v2.1c0,0.4-0.3,0.7-0.7,0.7
+       S5.1,5,5.1,4.6V2.5c0-1,0.8-1.7,1.7-1.7h7.3c1,0,1.7,0.8,1.7,1.7v2.1C15.9,5,15.6,5.3,15.2,5.3z"/>
+        <path d="M19.6,5.3H1.4C1,5.3,0.7,5,0.7,4.6S1,3.9,1.4,3.9h18.3c0.4,0,0.7,0.3,0.7,0.7S20,5.3,19.6,5.3z"/>
+        <path d="M7.2,18.6c-0.4,0-0.7-0.3-0.7-0.7V8.2c0-0.4,0.3-0.7,0.7-0.7s0.7,0.3,0.7,0.7v9.7C7.9,18.3,7.6,18.6,7.2,18.6z"/>
+        <path d="M10.5,18.6c-0.4,0-0.7-0.3-0.7-0.7V8.2c0-0.4,0.3-0.7,0.7-0.7s0.7,0.3,0.7,0.7v9.7C11.2,18.3,10.9,18.6,10.5,18.6z"/>
+        <path d="M13.8,18.6c-0.4,0-0.7-0.3-0.7-0.7V8.2c0-0.4,0.3-0.7,0.7-0.7s0.7,0.3,0.7,0.7v9.7C14.5,18.3,14.2,18.6,13.8,18.6z"/>
+    </symbol>
 
 </svg>
index e1c7f88842542de2b7cce04378555fa1b5d4c84c..6770e4309abab99dbef17645fc928050d60a3884 100644 (file)
@@ -60,8 +60,8 @@ FluidbookBookmarks.prototype = {
             }
             var print = $(this).hasClass('print');
             if ($this.fluidbook.settings.bookmarkFunctionsMainMenu) {
-                $this.fluidbook.menu.openView(print ? 'print' : 'download','','',function(){
-                    $("#bookmarkedPages").prop('checked',true);
+                $this.fluidbook.menu.openView(print ? 'print' : 'download', '', '', function () {
+                    $("#bookmarkedPages").prop('checked', true);
                 });
             } else {
                 $this.openPDF($(this), print);
@@ -500,6 +500,9 @@ FluidbookBookmarks.prototype = {
         }
         index += '</div></div>';
         index += '<div class="fonctions">';
+        if (this.fluidbook.settings.bookmarkEmpty) {
+            index += '<a role="button" aria-label="' + this.fluidbook.l10n.__('empty bookmarks') + '" class="empty noborder icon" href="#">' + getSpriteIcon('icon-trashbin') + this.fluidbook.l10n.__('empty bookmarks') + '</a>';
+        }
         if (this.fluidbook.settings.friend && this.fluidbook.settings.bookmarkSendEnable) {
             index += '<a role="button" aria-label="' + this.fluidbook.l10n.__('send') + '" class="send" href="#">' + this.fluidbook.l10n.__('send') + '</a>';
         }
index 343c329013bdae49fed13bd4ff24f59be62e05fb..77b2211e1b4f326341b9fdb8d0242456d9bd7cc8 100644 (file)
@@ -1744,6 +1744,23 @@ html.ios body.portrait #interface {
       display: inline-block;
       height: 45px;
       text-align: center;
+      position: relative;
+
+      .svg-icon{
+        width: 20px;
+        position: absolute;
+        top:11px;
+        left:-11px;
+      }
+
+      &.noborder {
+        background-color: transparent;
+        text-transform: none;
+
+        &:hover {
+          background-color: transparent;
+        }
+      }
     }
 
     @media @small {