Commit 5e369b47 authored by svilayphiou's avatar svilayphiou

fix spread view

parent 585182f4
......@@ -89,17 +89,19 @@
}
// TODO: changer le format du papier en spread pour pouvoir imprimer en planche
.spread .paper {
float: left;
}
.spread .paper:first-child {
margin-left: @paper-width - @crop;
}
.spread .paper:nth-child(odd) {
padding-left: 0;
}
.spread .paper:nth-child(even) {
padding-right: 0;
.spread {
.paper {
float: left;
}
.paper:nth-child(odd) {
margin-left: -@crop;
}
.paper:nth-child(even) {
margin-right: -@crop;
}
.paper:first-child {
margin-left: @page-width;
}
}
}
......
......@@ -29,10 +29,6 @@ $(function() {
e.preventDefault();
$(this).toggleClass("button-active");
$("html").toggleClass("spread");
w = parseInt($("#master-page").attr("data-width")) * 2 + 100;
$("#pages").css("width", w + "px");
$("html").css("width", w + "px");
$(".paper:first-child").css("margin-left", w/2);
});
// __________________________________ HIGH RESOLUTION __________________________________ //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment