fix: prevent content from reaching upper and lower border in print

This commit is contained in:
Massimiliano Mirra 2020-12-29 13:41:27 +00:00
parent 7cc99a0c52
commit 8484878f12
2 changed files with 11 additions and 5 deletions

View file

@ -28,7 +28,6 @@ html {
}
@media print {
margin: 0;
height: paper_height($page-width) * $pages;
}
}
@ -38,9 +37,9 @@ body {
@media print {
@page {
margin: 0;
margin: 12.5mm 0 25mm 0;
size: A4;
}
}
}
::selection {

View file

@ -24,11 +24,18 @@
position: absolute;
float: right;
width: $width-right-col;
background-color: $color-right-col;
height: 100%;
padding: 2rem 3rem;
right: 1rem;
@include shadow(0.5);
@media print {
border-left: 1px solid #e2e2e2;
}
@media screen {
background-color: $color-right-col;
@include shadow(0.5);
}
}
}