diff options
Diffstat (limited to 'data/templates')
| -rw-r--r-- | data/templates/default.epub2 | 4 | ||||
| -rw-r--r-- | data/templates/default.epub3 | 4 | ||||
| -rw-r--r-- | data/templates/styles.citations.html | 22 |
3 files changed, 28 insertions, 2 deletions
diff --git a/data/templates/default.epub2 b/data/templates/default.epub2 index 28de9c11b..dbc3905be 100644 --- a/data/templates/default.epub2 +++ b/data/templates/default.epub2 @@ -7,7 +7,9 @@ <meta name="generator" content="pandoc" /> <title>$pagetitle$</title> <style type="text/css"> - $styles.html()$ +$if(csl-css)$ + $styles.citations.html()$ +$endif$ $if(highlighting-css)$ $highlighting-css$ $endif$ diff --git a/data/templates/default.epub3 b/data/templates/default.epub3 index 19961ab13..3aa98b939 100644 --- a/data/templates/default.epub3 +++ b/data/templates/default.epub3 @@ -6,7 +6,9 @@ <meta name="generator" content="pandoc" /> <title>$pagetitle$</title> <style> - $styles.html()$ +$if(csl-css)$ + $styles.citations.html()$ +$endif$ $if(highlighting-css)$ $highlighting-css$ $endif$ diff --git a/data/templates/styles.citations.html b/data/templates/styles.citations.html new file mode 100644 index 000000000..2f7c1023a --- /dev/null +++ b/data/templates/styles.citations.html @@ -0,0 +1,22 @@ +div.csl-bib-body { } +div.csl-entry { + clear: both; +$if(csl-entry-spacing)$ + margin-bottom: $csl-entry-spacing$; +$endif$ +} +.hanging div.csl-entry { + margin-left:2em; + text-indent:-2em; +} +div.csl-left-margin { + min-width:2em; + float:left; +} +div.csl-right-inline { + margin-left:2em; + padding-left:1em; +} +div.csl-indent { + margin-left: 2em; +} |
