e5e103a89b
This changes the layout to use the default font size with a reasonable max width and margins around the body. Elements that would overflow on narrow displays are changed to wrap (.author) or present a scroll bar as necessary (figure, .verbatim, .fancyvrb). The properties on html and body are set such that there is no full-document vertical scrolling. Inline math is displayed in the same size as the surrounding text.
53 lines
856 B
INI
53 lines
856 B
INI
\Preamble{xhtml}
|
|
|
|
\Configure{tableofcontents*}{chapter,section,subsection}
|
|
|
|
\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{figure, .fancyvrb, .verbatim {
|
|
margin-inline: 0;
|
|
overflow-x: auto;
|
|
}}
|
|
|
|
\Css{.ecrm-0500 {
|
|
font-size: 70\%;
|
|
font-style: italic;
|
|
color: gray;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}}
|
|
|
|
\Css{.ecrm-0500:after {
|
|
content:" ";
|
|
white-space: pre;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}}
|
|
|
|
\begin{document}
|
|
\EndPreamble
|