Skip to content

Commit

Permalink
add media rule to print.css
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Jul 19, 2021
1 parent c158b51 commit 41c580a
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions print.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,34 @@ resources:
- https://github.com/h5bp/main.css/blob/main/src/_print.css
*/

*, ::before, ::after {
box-shadow: none !important;
text-shadow: none !important;
}
@media print {

html {
--width:auto;
--color-bg:#fff;
--color-text:#000;
/*font-size:12pt; ?? */
}
*, ::before, ::after {
box-shadow: none !important;
text-shadow: none !important;
}

header, footer {
display: none;
}
html {
--width:auto;
--color-bg:#fff;
--color-text:#000;
/*font-size:12pt; ?? */
}

a:link:after {
content: " (" attr(href) ") ";
font-size:.9em;
}
a[href^="#"]:after, a[href^="javascript:"]:after {
content: "";
}
header, footer {
display: none;
}

a:link:after {
content: " (" attr(href) ") ";
font-size:.9em;
}
a[href^="#"]:after, a[href^="javascript:"]:after {
content: "";
}

a:link {
text-decoration: underline;
}
a:link {
text-decoration: underline;
}

}

0 comments on commit 41c580a

Please sign in to comment.