aboutsummaryrefslogtreecommitdiff
path: root/data/epub.css
AgeCommit message (Collapse)Author
2022-11-06Remove stray character in epub.css.John MacFarlane
2022-11-02epub.css: left-align h1, as before.John MacFarlane
2022-10-17EPUB CSS changes.John MacFarlane
With this change, we reduce the amount of inline CSS used for EPUBs. Almost everything is now in the default EPUB CSS (`data/epub.css`), which can be overridden either by putting `epub.css` in the user data directory or by using `--css` on the command line. Inline styles are only used for syntax highlighting (which depends on the style specified, and is only included on pages with highlighted code) and for bibliography formatting (which can depend on the CSL style, and is only used in the page containing the bibliography). Note that, for compatibility with older readers, we don't use flexbox to style `column/columns` divs by default, as we do in HTML. Instead, we use an older method which only works when there are two `column` divs inside a `columns` div. If you need more than two columns and aren't worried about support for older EPUB readers, you can modify the default CSS (there is a comment in the CSS telling you what to do). Closes #8379.
2020-08-30epub.css: Fix cover page selectors and add note explaining their use. (#6649)a-vrma
2020-05-18epub.css: wrap overlong lines in highlighted code blocks.John MacFarlane
This fixes a problem in iBooks v2.4 with our earlier horizontally scrolling code blocks. The problem seems to be a bug in iBooks, not pandoc, but since iBooks is a major target we're changing pandoc's default behavior so that pandoc-produced epubs work on that platform. Closes #6242.
2019-09-05Add CSS for hanging-indent div to epub.css.John MacFarlane
This is for hanging indents with pandoc-citeproc, to be supported in a later release.
2019-05-03EPUB2/3 templates: Move inline styles to default epub.css.John MacFarlane
Those who use a custom CSS stylesheet with EPUB should add these lines: ```css code{ white-space: pre-wrap; } span.smallcaps{ font-variant: small-caps; } span.underline{ text-decoration: underline; } q { quotes: "“" "”" "‘" "’"; } div.column{ display: inline-block; vertical-align: top; width: 50%; } ``` See #5466.
2019-01-02EPUB writer: small fixes to nav.xhtml.John MacFarlane
* 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.
2017-10-31HTML Writer: consistently use dashed class-namesmb21
see #3556
2015-08-07added selectors for nested emphasis (epub.css)Pablo Rodríguez
2015-05-11Don't use sup element for epub footnotes.John MacFarlane
Instead, just use an a element with class `footnoteRef`. This allows more styling options, and provides better results in some readers (e.g. iBooks, where anything inside the a tag breaks popup footnotes). Closes #1995.
2013-07-13Simplified margin fields in default epub CSS file.John MacFarlane
2013-07-13Default epub CSS: Removed highlighting styles.John MacFarlane
These are added automatically to individual chapter files, depending on the highlighting style selected on the command line.
2013-03-03EPUB writer: Include html TOC even in epub2.John MacFarlane
* The TOC is included in `<spine>`, but `linear` is set to `no` unless the `--toc` option is specified. * Include `<guide>` element in OPF. * This should allow the TOC to be useable in Kindles when converted with kindlegen. * Results validate with epubcheck 3.0 for both epub and epub3 output. * Closes #773.
2013-01-05Epub CSS: left-align headers by default.John MacFarlane
This is more consistent with the rest of the writers.
2012-12-29Moved all data files and templates to data/.John MacFarlane