Closed ggrossetie closed 10 years ago
I had exactly this same problem while using Asciidoctor and the browser extension recently. I agree, we need to have a way to control this.
I think the main issue is that the print stylesheet in Foundation is way too conservative. There are some things it does good for printing. But stripping out all the styles is insane.
Here are the print styles I ended up using:
@media print { html,body { font-size: 90%; }
body { font-family: 'Liberation Sans', sans-serif; }
a, a:visited { text-decoration: underline; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
thead { display: table-header-group; }
tr, img { page-break-inside: avoid; }
img { max-width: 100% !important; }
@page { margin: 0.5cm; }
p, h2, h3, #toctitle, .sidebarblock > .content > .title { orphans: 3; widows: 3; }
h2, h3, #toctitle, .sidebarblock > .content > .title { page-break-after: avoid; }
.hide-on-print { display: none !important; }
.print-only { display: block !important; }
.hide-for-print { display: none !important; }
.show-for-print { display: inherit !important; } }
Perhaps we can build on this. We could still offer a way to totally disable print styles as well, but the current print styles suck even if you want them.
Resolved by #13.
Reference: https://github.com/asciidoctor/asciidoctor-chrome-extension/issues/23
I think setting the
$include-print-styles
tofalse
in_defaults.scss
[1] will allow users to quickly save their pages as pdf using their browsers.[1] https://github.com/asciidoctor/asciidoctor-stylesheet-factory/blob/master/sass/settings/_defaults.scss#L69