bookmarkLabel: function () {
if (!this.fluidbook.bookmarks.enabled) {
- return;
+ return '';
}
// The bookmark help element is a bit complex because it must be placed in a section of the help overlay that is
// not already used by the icon labels. Since the menu can be either on the left or right, this needs to be taken
html += $('<div class="bookmark-help-label">' + this.fluidbook.l10n.__('add / remove bookmark') + '</div>')[0].outerHTML;
var wrapper = $('<div class="bookmark-help">' + html + '</div>')[0].outerHTML
+ if(wrapper===undefined || wrapper==='undefined'){
+ return '';
+ }
return wrapper;
}
}
-;
padding: 10px 10px 25px 10px;
margin: 0 5px 15px;
position: relative;
- width: 200px;
+ width: unit(@thumb-width*2, px);
cursor: pointer;
text-align: center;
box-sizing: content-box;
vertical-align: top;
&.singlemode {
- width: 100px;
+ width: @thumb-width;
}
}
padding: 20px @padding 0;
.doubleThumb {
- width: 100px;
+ width: @thumb-width;
.rtl & {
position: relative;
&.simple {
.overlay {
- width: 100px;
+ width: @thumb-width;
}
&.left {
}
.thumb {
- @thumb-width: 100px;
position: absolute;
width: @thumb-width;
height: @thumb-height;
}
&.simple {
- width: 100px;
+ width: @thumb-width;
&.right {
- margin-left: 100px;
+ margin-left: @thumb-width;
}
}
&.left {
- margin-right: 100px;
+ margin-right: @thumb-width;
}
@extrashadowheight: min(22, @thumb-height*0.2);
opacity: 0.65;
top: -5px;
left: -5px;
- width: 111px;
+ width: unit(@thumb-width+11, px);
height: @shade-height;
z-index: 0;
}
.doubleThumb {
&.simple {
- width: 100px;
+ width: @thumb-width;
}
}
}
.thumb.right {
- left: 100px; // Override default so there's no gap between pages
+ left: @thumb-width; // Override default so there's no gap between pages
}
// Blank pages
.thumb.blank {
- width: 100px;
+ width: @thumb-width;
height: @thumb-height;
// We need to mask the shadow so the :after layer can sit on top with
.bookmark-thumbnails {
.thumb {
&:before {
- width: 113px; // Controls drop shadow on right side of thumbnail
+ width: unit(@thumb-width+13, px); // Controls drop shadow on right side of thumbnail
}
&:nth-child(1) {
}
&:nth-child(2) {
- left: 50px;
+ left: unit(@thumb-width/2, px);
z-index: 2;
.rtl & {
- right: 50px;
+ right: unit(@thumb-width/2, px);
left: auto;
}
}
&:nth-child(3) {
- left: 100px;
+ left: @thumb-width;
z-index: 1;
.rtl & {
- right: 100px;
+ right: @thumb-width;
left: auto;
z-index: 3;
}
&[for="allPages"] {
.doubleThumb {
- left: 100px;
+ left: @thumb-width;
}
}
}
background-color: @slider-thumb-background;
padding: 25px;
display: none;
- width: 250px;
+ width: unit(@thumb-width*2+50, px);
height: @sliderthumb-height;
&.single {
- width: 150px;
+ width: unit(@thumb-width+50, px);
&:after {
- left: 59px;
+ left: unit(@thumb-width/2+9, px);
}
.doubleThumb .thumb.right {
content: "";
position: absolute;
bottom: -16px;
- left: 109px;
+ left: unit(@thumb-width+9, px);
width: 0;
height: 0;
border-left: 16px solid transparent;
> .thumb {
&.right {
- left: 100px;
+ left: @thumb-width;
}
a.bookmark {