KNACSS/sass/_08-print.scss

93 lines
1.3 KiB
SCSS
Raw Normal View History

2014-05-04 15:48:00 +02:00
/* quick print reset */
@media print {
2015-07-01 13:47:48 +02:00
* {
background: transparent !important;
box-shadow: none !important;
text-shadow: none !important;
}
2015-07-01 13:47:48 +02:00
body {
width: auto;
margin: auto;
2015-07-01 13:47:48 +02:00
font-family: serif;
font-size: 12pt;
}
2015-07-01 13:47:48 +02:00
p,
.#{$kna-namespace}p-like,
h1,
.#{$kna-namespace}h1-like,
h2,
.#{$kna-namespace}h2-like,
h3,
.#{$kna-namespace}h3-like,
h4,
.#{$kna-namespace}h4-like,
h5,
.#{$kna-namespace}h5-like,
h6,
.#{$kna-namespace}h6-like,
blockquote,
ul,
ol {
color: #000;
margin: auto;
2015-07-01 13:47:48 +02:00
}
2015-07-01 13:47:48 +02:00
.#{$kna-namespace}print {
display: block;
}
2015-07-01 13:47:48 +02:00
.#{$kna-namespace}no-print {
display: none;
}
2015-07-01 13:47:48 +02:00
/* no orphans, no widows */
p,
.#{$kna-namespace}p-like,
blockquote {
orphans: 3;
widows: 3;
}
2015-07-01 13:47:48 +02:00
/* no breaks inside these elements */
blockquote,
ul,
ol {
page-break-inside: avoid;
}
2015-07-01 13:47:48 +02:00
/* page break before main headers
h1,
.h1-like {
page-break-before: always;
}
*/
2015-07-01 13:47:48 +02:00
/* no breaks after these elements */
h1,
.#{$kna-namespace}h1-like,
h2,
.#{$kna-namespace}h2-like,
h3,
.#{$kna-namespace}h3-like,
caption {
page-break-after: avoid;
}
2015-07-01 13:47:48 +02:00
a {
color: #000;
2015-07-01 13:47:48 +02:00
}
/* displaying URLs
2015-07-01 13:47:48 +02:00
a[href]::after {
content: " (" attr(href) ")";
}
*/
2015-07-01 13:47:48 +02:00
a[href^="javascript:"]::after,
a[href^="#"]::after {
content: "";
}
2014-05-07 11:12:14 +02:00
}