Skip to content

Commit

Permalink
Merge pull request #43 from dancek/master
Browse files Browse the repository at this point in the history
Rewrite CSS to support scaling
  • Loading branch information
jserv committed Aug 5, 2021
2 parents 466e8a0 + e5e103a commit a411938
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions html.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,31 @@

\Configure{tableofcontents*}{chapter,section,subsection}

\Css{* :not(img) {
max-width: 100\%;
width: 50vw;
height: auto;
\Css{html {
width: 100vw;
overflow-x: hidden;
}}

\Css{body {
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{* {
font-size: 1vw;
\Css{figure, .fancyvrb, .verbatim {
margin-inline: 0;
overflow-x: auto;
}}

\Css{.ecrm-0500 {
Expand All @@ -33,4 +49,4 @@
}}

\begin{document}
\EndPreamble
\EndPreamble

0 comments on commit a411938

Please sign in to comment.