diff options
Diffstat (limited to 'assets/css/_print.scss')
-rw-r--r-- | assets/css/_print.scss | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/assets/css/_print.scss b/assets/css/_print.scss new file mode 100644 index 0000000..cc4b147 --- /dev/null +++ b/assets/css/_print.scss @@ -0,0 +1,59 @@ +/* Print */ + +@media print { + @page { + size: A4; + margin: 0; + } + + html, body { + background: #fff; + margin: 0; + padding: 0; + } + + .paper, main.paper { + margin: 0; + width: 210mm; + height: 297mm; + overflow: hidden; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; + page-break-after: always; + } + + a { + text-decoration: none; + + &:not(.non-existing)::after { + content: " (" attr(href) ")"; + margin: 0; + font-weight: 400; + font-size: 0.75rem; + color: scale-color($text-color, $lightness: 30%); + } + + .item-title & { + &::after { + content: attr(href); + display: block; + margin: 0; + } + } + + .section-publications & { + &::after { + content: attr(href); + display: block; + margin: 0 0.75rem; + } + } + } + + .item-title {} + + footer { + display: none; + } +} |