From 00ea0b8900b1785da6a6de272302554e3ad6f635 Mon Sep 17 00:00:00 2001 From: samuel-weinhardt Date: Sun, 24 Sep 2023 00:18:48 -0400 Subject: [PATCH] Format styles --- data/epub.css | 81 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 60 insertions(+), 21 deletions(-) diff --git a/data/epub.css b/data/epub.css index 49990e480704..b0512b7d82c4 100644 --- a/data/epub.css +++ b/data/epub.css @@ -2,7 +2,13 @@ @page { margin: 10px; } -html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, ol, ul, li, dl, dt, dd { +html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, +blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, +ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, +fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, figure, figcaption, footer, header, +hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, ol, +ul, li, dl, dt, dd { margin: 0; padding: 0; border: 0; @@ -86,8 +92,8 @@ pre code { overflow-wrap: normal; } .sourceCode { - background-color: transparent; - overflow: visible; + background-color: transparent; + overflow: visible; } hr { background-color: #1a1a1a; @@ -132,40 +138,73 @@ header { #TOC a:not(:hover) { text-decoration: none; } -code{white-space: pre-wrap;} -span.smallcaps{font-variant: small-caps;} +code { + white-space: pre-wrap; +} +span.smallcaps { + font-variant: small-caps; +} /* This is the most compatible CSS, but it only allows two columns: */ -div.column{ display: inline-block; vertical-align: top; width: 50%; } -/* If you can rely on CSS3 support, use this instead: -div.columns{display: flex; gap: min(4vw, 1.5em);} -div.column{flex: auto; overflow-x: auto;} -*/ +div.column { + display: inline-block; + vertical-align: top; + width: 50%; +} +/* If you can rely on CSS3 support, use this instead: */ +/* div.columns { + display: flex; + gap: min(4vw, 1.5em); +} +div.column { + flex: auto; + overflow-x: auto; +} */ -div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} -ul.task-list{list-style: none;} +div.hanging-indent { + margin-left: 1.5em; + text-indent: -1.5em; +} +ul.task-list { + list-style: none; +} ul.task-list li input[type="checkbox"] { width: 0.8em; margin: 0 0.8em 0.2em -1.6em; vertical-align: middle; } -.display.math{ +.display.math { display: block; text-align: center; margin: 0.5rem auto; } + /* For title, author, and date on the cover page */ h1.title { } p.author { } p.date { } -nav#toc ol, -nav#landmarks ol { padding: 0; margin-left: 1em; } -nav#toc ol li, -nav#landmarks ol li { list-style-type: none; margin: 0; padding: 0; } -a.footnote-ref { vertical-align: super; } -em, em em em, em em em em em { font-style: italic;} -em em, em em em em { font-style: normal; } -q { quotes: "“" "”" "‘" "’"; } + +nav#toc ol, nav#landmarks ol { + padding: 0; + margin-left: 1em; +} +nav#toc ol li, nav#landmarks ol li { + list-style-type: none; + margin: 0; + padding: 0; +} +a.footnote-ref { + vertical-align: super; +} +em, em em em, em em em em em { + font-style: italic; +} +em em, em em em em { + font-style: normal; +} +q { + quotes: "“" "”" "‘" "’"; +} @media screen { /* Workaround for iBooks issue; see #6242 */ .sourceCode { overflow: visible !important;