KNACSS/sass/_library/_print.scss

99 lines
1.2 KiB
SCSS
Raw Normal View History

2016-05-20 08:58:56 +02:00
/* ----------------------------- */
/* ==Print (quick print reset) */
/* ----------------------------- */
2014-05-04 15:48:00 +02:00
@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,
2017-07-31 11:45:22 +02:00
.p-like,
2015-07-01 13:47:48 +02:00
h1,
2017-07-31 11:45:22 +02:00
.h1-like,
2015-07-01 13:47:48 +02:00
h2,
2017-07-31 11:45:22 +02:00
.h2-like,
2015-07-01 13:47:48 +02:00
h3,
2017-07-31 11:45:22 +02:00
.h3-like,
2015-07-01 13:47:48 +02:00
h4,
2017-07-31 11:45:22 +02:00
.h4-like,
2015-07-01 13:47:48 +02:00
h5,
2017-07-31 11:45:22 +02:00
.h5-like,
2015-07-01 13:47:48 +02:00
h6,
2017-07-31 11:45:22 +02:00
.h6-like,
2015-07-01 13:47:48 +02:00
blockquote,
label,
2015-07-01 13:47:48 +02:00
ul,
ol {
color: #000;
margin: auto;
2015-07-01 13:47:48 +02:00
}
2017-07-31 11:45:22 +02:00
.print {
2015-07-01 13:47:48 +02:00
display: block;
}
2017-07-31 11:45:22 +02:00
.no-print {
2015-07-01 13:47:48 +02:00
display: none;
}
2015-07-01 13:47:48 +02:00
/* no orphans, no widows */
p,
2017-07-31 11:45:22 +02:00
.p-like,
2015-07-01 13:47:48 +02:00
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,
2017-07-31 11:45:22 +02:00
.h1-like,
2015-07-01 13:47:48 +02:00
h2,
2017-07-31 11:45:22 +02:00
.h2-like,
2015-07-01 13:47:48 +02:00
h3,
2017-07-31 11:45:22 +02:00
.h3-like,
2015-07-01 13:47:48 +02:00
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) ")";
}
*/
a[href^="javascript:"],
a[href^="#"] {
&::after {
content: "";
}
2015-07-01 13:47:48 +02:00
}
2014-05-07 11:12:14 +02:00
}