]> _ Git - fluidbook-html5.git/commitdiff
done #1634 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Sep 2017 15:54:11 +0000 (17:54 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Sep 2017 15:54:11 +0000 (17:54 +0200)
js/libs/fluidbook/fluidbook.js
style/fluidbook.less

index f05a43cc6665b6bf8cd5c1ba1fe3d7da7f113190..c513b6aa15d7af5e0558283297fdef2058f11ce8 100644 (file)
@@ -529,7 +529,7 @@ Fluidbook.prototype = {
 
         var left = true, right = true;
         if (this.displayOnePage) {
-            right = false;
+            right = true;
         } else {
             if ((page <= 1 && this.l10n.dir == 'ltr') || (page >= this.datas.pages && this.l10n.dir == 'rtl')) {
                 left = false;
index ed855d83e58b190c569c41ad44c32ff896a291cb..574fbf4dbb95fa0d8e581c7566e0a98d64418bd2 100644 (file)
@@ -356,6 +356,10 @@ body, html {
                        background-size: 100% @shadow-height;
                        height: @shadow-height;
 
+                       .portrait &{
+                               opacity: @shadow-opacity/2;
+                       }
+
                        &.left {
                                left: -12px;
                                width: @shadow-width-left;
@@ -363,7 +367,6 @@ body, html {
                        }
 
                        &.right {
-                               display: none;
                                background-image: url("../images/shadows/back/bottom-right.png");
                                width: @shadow-width-right;
 
@@ -374,7 +377,6 @@ body, html {
                }
 
                &.side {
-
                        top: 0;
                        width: 35px;
                        height: unit(@book-page-height, px);
@@ -410,8 +412,8 @@ body, html {
        height: unit(@book-page-height, px);
        pointer-events: none;
 
-       .portrait & {
-               display: none;
+       .portrait &{
+               width: unit(@book-page-width, px);
        }
 
        @edge-scale: 1;