Underscoring partial included files
This commit is contained in:
parent
34a923e2ef
commit
a21d58070c
29 changed files with 71 additions and 88 deletions
86
less/_08-print.less
Normal file
86
less/_08-print.less
Normal file
|
@ -0,0 +1,86 @@
|
|||
/* quick print reset */
|
||||
@media print {
|
||||
|
||||
* {
|
||||
background: transparent !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;
|
||||
}
|
||||
|
||||
.no-print {
|
||||
display: none;
|
||||
}
|
||||
|
||||
img {
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
|
||||
/* no orphans, no widows */
|
||||
p,
|
||||
blockquote {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
|
||||
/* no breaks inside these elements */
|
||||
blockquote,
|
||||
ul,
|
||||
ol {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
/* page break before main headers */
|
||||
h1 {
|
||||
page-break-before: always;
|
||||
}
|
||||
|
||||
/* no breaks after these elements */
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
caption {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #000 !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
/* displaying URLs */
|
||||
a[href]:after {
|
||||
content: " (" attr(href) ")";
|
||||
}
|
||||
|
||||
a[href^="javascript:"]:after,
|
||||
a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue