aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsamuel-weinhardt <[email protected]>2023-09-24 00:18:48 -0400
committerJohn MacFarlane <[email protected]>2023-09-23 22:10:52 -0700
commit957489de8587485622ec53ef5a38a277db3971e9 (patch)
treea154242b4d7cc7bec1fb514405c48f871c7dc27d /data
parent35b23526b23b8e56be3157b84c42e16966e6a02f (diff)
Format styles
Diffstat (limited to 'data')
-rw-r--r--data/epub.css81
1 files changed, 60 insertions, 21 deletions
diff --git a/data/epub.css b/data/epub.css
index 49990e480..b0512b7d8 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;