1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-24 18:26:17 +01:00
blog/_src/_assets/styl/_kremalicious/print.styl

81 lines
1.3 KiB
Stylus
Raw Normal View History

2014-07-12 21:22:47 +02:00
//
// kremalicious3
// --------------
// Print
//
@media print
*
background: transparent
color: black !important
box-shadow:none !important
text-shadow: none !important
.entry-content a[href]:after
content: " (" attr(href) ")"
text-transform: none
font-size: $font-size-small
// hide stuff in article view
.related-posts,
2015-08-09 21:50:06 +02:00
.footer .grid:first-child,
2014-07-12 21:22:47 +02:00
.hentry:before,
.topbar
hide()
.hentry
border: none
.footer
color: #ccc !important
.footer-copyright
border-top: 1px solid #000 !important
&:after
hide()
abbr[title]:after
content: " (" attr(title) ")"
// Don't show links for images, or javascript/internal links
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after
content: ""
pre,
blockquote
page-break-inside: avoid
thead
display: table-header-group
tr,
img
page-break-inside: avoid
img
max-width: 100% !important
@page
margin: 5.5cm
p,
h2,
h3
orphans: 3
widows: 3
.hentry
h1
page-break-before: always
&:first-child h1
page-break-before: avoid
h2,
h3
page-break-after: avoid