<div id="shadow">
<div class="shadow left"></div>
<div class="shadow right"></div>
+ <div class="shadow side"></div>
</div>
</div>
<header>
<div id="z" class="nozoom">
<div id="fluidbook">
<div id="edges">
- <div class="edge left"></div>
- <div class="edge right"></div>
+ <div class="edge left">
+ <div class="top"></div>
+ <div class="middle"></div>
+ <div class="bottom"></div>
+ </div>
+ <div class="edge right">
+ <div class="top"></div>
+ <div class="middle"></div>
+ <div class="bottom"></div>
+ </div>
</div>
<div id="pagesnumbers">
<div class="left"></div>
@shadow-height: 160px;
@shadow-offset: 0px;
#shadow {
+ @shadow-width-left: @book-page-width;
+ @shadow-width-right: @book-page-width+12;
position: absolute;
top: 0px;
left: 0px;
- width: unit(@book-page-width*2, px);
+ width: unit(@shadow-width-left+@shadow-width-right, px);
height: unit(@book-page-height, px);
pointer-events: none;
mix-blend-mode: multiply;
- /* !!!!!!!!!!! non !!!!!!!!!!!!!!!!!
- -webkit-transform: translateZ(0);
- -moz-transform: translateZ(0);
- -ms-transform: translateZ(0);
- -o-transform: translateZ(0);
- transform: translateZ(0);*/
> .shadow {
position: absolute;
bottom: -@shadow-height+@shadow-offset;
- left: 0px;
- background-image: url("../images/shadows/back/left.png");
+ left: 0;
+ background-image: url("../images/shadows/back/bottom-left.png");
background-size: 100% @shadow-height;
- width: @book-page-width;
+ width: @shadow-width-left;
height: @shadow-height;
&.right {
display: none;
- background-image: url("../images/shadows/back/right.png");
+ background-image: url("../images/shadows/back/bottom-right.png");
+ width: @shadow-width-right;
.landscape & {
left: @book-page-width;
}
}
+
+ &.side {
+ background-image: url("../images/shadows/back/right.png");
+ top: 0;
+ left: unit(@book-page-width*2, px);
+ height: unit(@book-page-height, px);
+ background-size: 100% 100%;
+ width: 52px;
+
+ }
}
}
height: unit(@book-page-height, px);
pointer-events: none;
+ @edge-scale: 1;
+
> .edge {
position: absolute;
top: 0;
- &.right {
- @right-edge-width: 48px;
- @right-edge-bottom-offset: 45px;
+ height: 100%;
- right: -@right-edge-width;
- width: @right-edge-width;
- height: @book-page-height+@right-edge-bottom-offset;
- background-image: url("../images/edges/edge-right.png");
+ > div {
+ background-size: 100% 100%;
+ position: absolute;
background-repeat: no-repeat;
- background-size: @right-edge-width unit(@book-page-height + @right-edge-bottom-offset, px);
- background-position: 0 5px;
+ }
+
+ .top {
+ top: 0;
+ height: unit(12*@edge-scale, px);
+ }
+
+ .bottom {
+ bottom: 0;
+ height: unit(22*@edge-scale, px);
+ }
+
+ .middle {
+ top: unit(12*@edge-scale, px);
+ bottom: unit(22*@edge-scale, px);
}
&.left {
- @left-edge-width: 9px;
- @left-edge-bottom-offset: 0px;
+ left: unit(-17*@edge-scale, px);
+ width: unit(17*@edge-scale, px);
- left: -@left-edge-width;
- width: @left-edge-width;
- height: @book-page-height + @left-edge-bottom-offset;
- background-image: url("../images/edges/edge-left.png");
- background-repeat: no-repeat;
- background-size: @left-edge-width unit(@book-page-height + @left-edge-bottom-offset, px);
- background-position: 0 0;
+ div {
+ width: unit(17*@edge-scale, px);
+ }
+
+ .top {
+ background-image: url("../images/edges/edge-left-top.png");
+ }
+
+ .bottom {
+ background-image: url("../images/edges/edge-left-bottom.png");
+ }
+
+ .middle {
+ background-image: url("../images/edges/edge-left-middle.png");
+ }
+ }
+
+ &.right {
+ right: unit(-11*@edge-scale, px);
+ width: unit(11*@edge-scale, px);
+
+ div {
+ width: unit(11*@edge-scale, px);
+ }
+
+ .top {
+ background-image: url("../images/edges/edge-right-top.png");
+ }
+
+ .bottom {
+ background-image: url("../images/edges/edge-right-bottom.png");
+ }
+
+ .middle {
+ background-image: url("../images/edges/edge-right-middle.png");
+ }
}
}
}