KNACSS/sass/08-print.scss

86 lines
1.3 KiB
SCSS
Raw Normal View History

2014-05-04 15:48:00 +02:00
@import "00-config";
2014-05-07 11:33:47 +02:00
/* ----------------------------- */
/* ==print */
/* ----------------------------- */
2014-05-04 15:48:00 +02:00
@media print {
* {
background: transparent !important;
box-shadow: none !important;
text-shadow: none !important;
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
body {
width: auto !important;
margin: auto !important;
font-family: serif;
font-size: 12pt;
background-color: #fff !important;
color: #333 !important;
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
ul,
ol {
color: #000 !important;
margin: auto !important;
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
.print {
display: block; /* displaying .print elements */
}
2014-05-07 11:33:47 +02:00
img {
2014-05-04 15:48:00 +02:00
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
p,
blockquote {
orphans: 3; /* no orphans */
widows: 3; /* no widows */
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
blockquote,
ul,
ol {
page-break-inside: avoid; /* no breaks inside these elements */
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
h1 {
page-break-before: always; /* page break before main headers */
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
h1,
h2,
h3,
caption {
page-break-after: avoid; /* no breaks after these elements */
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
a {
color: #000 !important;
text-decoration: underline !important;
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
a[href]:after {
content: " (" attr(href) ")"; /* displaying URLs */
}
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
2014-05-07 11:33:47 +02:00
}