Merge pull request #43 from dancek/master
Rewrite CSS to support scaling
This commit is contained in:
commit
a411938b73
32
html.cfg
32
html.cfg
|
@ -2,15 +2,31 @@
|
||||||
|
|
||||||
\Configure{tableofcontents*}{chapter,section,subsection}
|
\Configure{tableofcontents*}{chapter,section,subsection}
|
||||||
|
|
||||||
\Css{* :not(img) {
|
\Css{html {
|
||||||
max-width: 100\%;
|
width: 100vw;
|
||||||
width: 50vw;
|
overflow-x: hidden;
|
||||||
height: auto;
|
|
||||||
margin: 0 auto;
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
\Css{* {
|
\Css{body {
|
||||||
font-size: 1vw;
|
max-width: 50rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 1rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}}
|
||||||
|
|
||||||
|
\Css{div.author {
|
||||||
|
white-space: normal;
|
||||||
|
}}
|
||||||
|
|
||||||
|
\Css{img.math {
|
||||||
|
height: 1rem;
|
||||||
|
vertical-align: top;
|
||||||
|
}}
|
||||||
|
|
||||||
|
\Css{figure, .fancyvrb, .verbatim {
|
||||||
|
margin-inline: 0;
|
||||||
|
overflow-x: auto;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
\Css{.ecrm-0500 {
|
\Css{.ecrm-0500 {
|
||||||
|
@ -33,4 +49,4 @@
|
||||||
}}
|
}}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\EndPreamble
|
\EndPreamble
|
||||||
|
|
Loading…
Reference in New Issue
Block a user