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