Commit 4a58c220 authored by Antoine-Gelgon's avatar Antoine-Gelgon
Browse files

[visual-langage] page break @print

parent c656984b
......@@ -220,16 +220,21 @@ img[alt=bottom]{
margin: 0;
padding: 0;
}
.content {
display: block;
flex-wrap: inherit;
justify-content: inherit;
}
article {
/*border: none;*/
.row {
page-break-inside: avoid;
flex-grow: 1;
flex-shrink: 1;
flex-basis:45%;
}
display: flex;
}
article {
page-break-before: always;
}
}
/* article { */
/* page-break-before: always; */
/* } */
}
......@@ -39,7 +39,7 @@ function loadSvg(svg, src, clss) {
function pageprint() {
var divs = $("article");
console.log(divs)
for(var i = 0; i < divs.length; i+=3) {
for(var i = 0; i < divs.length; i+=2) {
divs.slice(i, i+2).wrapAll("<div class='row'></div>");
}
window.print()
......
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