Open leif81 opened 8 years ago
I'm completely in support of this, a compact them is important to have.
Getting there (the right way) means solving the underlying theme issue. We need to overhaul the stylesheet factory so that it builds themes for embedded documents (i.e., previews) in addition to full documents. (see https://github.com/asciidoctor/asciidoctor-stylesheet-factory/issues/18) Then, we need to publish them properly so that they can be pulled down as a dependency.
Hello @leif81, you can already do it by adding a custom theme in the option page:
And here is the result (on left the standard theme and on the right the compact theme):
I really like the compact theme and I think we should add it to the "Default" theme section (no manual upload required).
Based on @Mogztter idea I am using a slightly modified solution. I have added a custom JavaScript and experimented with zoom, transform and transform-origin attributes. In the end I found the following line of code solving my printing issues.
$('body').css('zoom','0.85');
It is theme-agnostic as well.
The
brackets-asciidoctor-preview
project ships with a compact version of the asciidoctor theme:https://github.com/asciidoctor/brackets-asciidoc-preview/blob/master/themes/asciidoctor-compact.css
Any chance of bringing this over to the chrome extension? I find it'd be especially useful when printing documents. As much as I like the the default asciidoctor theme (colours, fonts, etc) I find it is excessively generous with size of margins, padding, etc. Printed documents seem to be as much as twice as many pages as I'd expect the content to require.