]> _ Git - cubeextranet.git/commitdiff
#1466
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 14 Sep 2017 16:09:52 +0000 (16:09 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 14 Sep 2017 16:09:52 +0000 (16:09 +0000)
inc/ws/Util/html5/bookedges/class.ws.html5.compiler.php

index 9e5b2bcfc6e6c56d1cb8b565d8ba09660b903920..99417ff2c217153eb104485ca589d95305bebe82 100644 (file)
@@ -1160,7 +1160,7 @@ class wsHTML5Compiler {
                        $this->log('Copied image ' . $page);
                }
 
-                       $this->makeThumbSprites($thumbs);
+               $this->makeThumbSprites($thumbs);
                $this->log('Made thumbnails');
        }
 
@@ -1275,6 +1275,8 @@ class wsHTML5Compiler {
                $lessVariables['book-page-width'] = $w;
                $lessVariables['book-page-height'] = $h;
 
+               $lessVariables['shadow-opacity'] = wsHTML5::colorToArray($this->theme->parametres->bookShadeColor)['opacity'] * 1.2;
+
                $res[] = '.portrait #pages,.portrait .doublePage.page,.page,.doublePage._3d{width:' . $w . ';max-width:' . $w . ';height:' . $h . ';max-height:' . $h . '}';
                $res[] = '.doublePage,#pages,#links,#searchHighlights{width:' . $w2 . ';max-width:' . $w2 . ';height:' . $h . ';max-height:' . $h . '}';
                $res[] = '.landscape .doublePage._2d.axis_x.next{' . wsHTML5::writeCSSUA('transform', 'translate3d(' . $w2 . ',0,0)') . '}';