cremeaux/assets/styles/print.sass

81 lines
994 B
Sass
Raw Normal View History

2020-09-02 16:54:03 +02:00
/* Print */
@media print
*
background: transparent !important
box-shadow: none !important
text-shadow: none !important
2020-09-02 16:54:03 +02:00
body
width: auto
margin: auto
font-family: serif
font-size: 12pt
2020-09-02 16:54:03 +02:00
p,
.p-like,
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
h4,
.h4-like,
h5,
.h5-like,
h6,
.h6-like,
blockquote,
ul,
ol
color: #000
margin: auto
2020-09-02 16:54:03 +02:00
img
max-width: 100% !important
2020-09-02 16:54:03 +02:00
.print
display: block
2020-09-02 16:54:03 +02:00
.no-print
display: none
2020-09-02 16:54:03 +02:00
p,
.p-like,
blockquote
orphans: 3
widows: 3
2020-09-02 16:54:03 +02:00
blockquote,
ul,
ol,
img
page-break-inside: avoid
2020-09-02 16:54:03 +02:00
h1,
.h1-like
page-break-before: always
2020-09-02 16:54:03 +02:00
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
caption
page-break-after: avoid
2020-09-02 16:54:03 +02:00
a
color: #000
2020-09-02 16:54:03 +02:00
a[href^="http"]:not([href*="cremeaux.fr"]):after
content: " (" attr(href) ")"
2020-09-02 16:54:03 +02:00
a[href^="javascript:"]::after,
a[href^="#"]::after
content: ""
2020-09-02 16:54:03 +02:00
abbr[title]:after
content: " (" attr(title) ")"