Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Improve printing layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Jun 9, 2022
1 parent ea92a95 commit c71e1f0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/themes/corteza-base/custom.scss
Expand Up @@ -240,3 +240,23 @@ input[type="search"]::-webkit-search-cancel-button {
margin-top: 0.25rem;
}
}

// Supporting CSS to improve print-to-PDF option
@media print {
@page {
size: auto;
}

body {
margin: 0;
}

header, footer, aside, nav {
display: none;
}

.block {
break-inside: avoid;
width: 100%;
}
}

0 comments on commit c71e1f0

Please sign in to comment.