Created
June 12, 2013 08:10
-
-
Save krzysztofjeziorny/5763601 to your computer and use it in GitHub Desktop.
@media print less for the Omega 3 based Drupal subtheme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* print */ | |
@media print { | |
* { | |
text-shadow: none !important; | |
color: #000 !important; // Black prints faster: h5bp.com/s | |
background: transparent !important; | |
box-shadow: none !important; | |
} | |
.region-page-top, | |
.section-header, | |
.region-sidebar-first, | |
.region-sidebar-second, | |
.zone-postscript, | |
.zone-footer, | |
.zone-service, | |
.tabs, | |
.node-links { | |
display: none; | |
} | |
body.front .region-sidebar-second { | |
display: block; | |
} | |
img { | |
max-width: 500px; | |
} | |
a, | |
a:visited { | |
text-decoration: underline; | |
} | |
pre, | |
blockquote { | |
border: 1px solid #999; | |
page-break-inside: avoid; | |
} | |
thead { | |
display: table-header-group; // h5bp.com/t | |
} | |
tr, | |
img { | |
page-break-inside: avoid; | |
} | |
@page { | |
margin: 0.5cm; | |
} | |
p, | |
h2, | |
h3 { | |
orphans: 3; | |
widows: 3; | |
} | |
h2, | |
h3 { | |
page-break-after: avoid; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment