if (visibility.previous) {
footer += '<a class="previous" href="#/page/' + (page - 1) + '">' + getSpriteIcon('interface-previous-simple') + __('Previous') + '</a>';
}
- footer += '<span>' + page + '/' + this.fluidbook.datas.pages + '</span>';
+ footer += '<div class="pagenumbers">' + page + '/' + this.fluidbook.datas.pages + '</div>';
if (visibility.next) {
footer += '<a class="next" href="#/page/' + (page + 1) + '">' + __('Next') + getSpriteIcon('interface-next-simple') + '</a>';
}
position: absolute;
left: 0;
+ font-size: unit(16*@css-scale*@mfscale, px);
width: 100%;
- height: unit(110*@css-scale*@mfscale, px);
+ height: 5.5em;
overflow: hidden;
color: @page-number-color;
- font-size: unit(20*@css-scale*@mfscale, px);
font-weight: 600;
transition: opacity .15s;
}
@media @small {
- @s: 1.25;
- font-size: unit(20*@s*@css-scale*@mfscale, px);
- padding: unit(30*@s*@css-scale*@mfscale, px) 0;
- height: unit(110*@s*@css-scale*@mfscale, px);
+ padding: 1.5em 0;
+ height: 5.5em;
}
- span {
+ .pagenumbers {
display: block;
text-align: center;
- margin-top: 0.9em;
- @media @small {
- margin-top: 0.7em;
- }
+ width: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ margin-top: 1.9em;
+ font-size: 1.1em;
}
a {
line-height: 1;
font-weight: 400;
position: absolute;
- top: 1.5em;
+ top: 1.3em;
height: 2.5em;
- width: 25%;
+ width: 30%;
text-align: center;
padding-top: 0.7em;
@media @small {
- width: 40%;
+ width: 35%;
}
&.next {
svg {
position: absolute;
- top: 0.8em;
+ top: 0.7em;
height: 1em;
width: auto;
}
width: 100%;
height: 100%;
transition: all .6s;
- padding: unit(30*@css-scale*@mfscale, px) 0;
+ padding: 1.3em 0;
&.toreveal {
opacity: 0;
- top: 30px;
+ top: 3em;
}
}