aboutsummaryrefslogtreecommitdiff
path: root/data/epub.css
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-02 11:24:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-02 11:24:53 -0800
commit9097ec41a9c333f24fec63085806da392f8108d4 (patch)
treea9eb0bf7a53ebfbfffa0e6b90c0f104786eae706 /data/epub.css
parentea8af33dab2ba5abba12c61ada7e62f9752cb973 (diff)
downloadpandoc-9097ec41a9c333f24fec63085806da392f8108d4.tar.gz
EPUB writer: small fixes to nav.xhtml.
* Add 'landmarks' id attribute to the landmarks nav. * Replace old default CSS removing numbers from ol.toc li with new rules that match `nav#toc ol, nav#landmarks ol`. * We keep the `toc` class on `ol` for backwards compatibility.
Diffstat (limited to 'data/epub.css')
-rw-r--r--data/epub.css7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/epub.css b/data/epub.css
index 34835ced4..742ea7895 100644
--- a/data/epub.css
+++ b/data/epub.css
@@ -10,9 +10,10 @@ h6 { text-align: left; }
h1.title { }
h2.author { }
h3.date { }
-ol.toc { padding: 0; margin-left: 1em; }
-ol.toc li { list-style-type: none; margin: 0; padding: 0; }
+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; }
-