about summary refs log tree commit diff stats
path: root/style.css
diff options
context:
space:
mode:
authorCase Duckworth2015-03-27 15:40:42 -0700
committerCase Duckworth2015-03-27 15:40:42 -0700
commit643d9ceb308c206a6e572c7c555168ff0ca60bc1 (patch)
tree8878d45b3dcc5c894a21d4e379be0f7293c5d345 /style.css
parentChange verse lines '$' -> '^| ' (diff)
downloadautocento-643d9ceb308c206a6e572c7c555168ff0ca60bc1.tar.gz
autocento-643d9ceb308c206a6e572c7c555168ff0ca60bc1.zip
Fix #5: Verse typesetting
Thanks to the pandoc-discussion thread at
<https://groups.google.com/forum/#!topic/pandoc-discuss/_JnTJnsSK3k>,
line breaks in verse have been converted to <span class="line">s,
which enables the CSS to style them with hanging indents, given
a too-small viewport.  This commit also includes a makefile edit to
reflect this change, and the Haskell source and executable of the
pandoc filter.
Diffstat (limited to 'style.css')
-rw-r--r--style.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/style.css b/style.css index 64b498f..4bf7c12 100644 --- a/style.css +++ b/style.css
@@ -300,6 +300,16 @@ a.footnoteRef {
300 display: inline-block; 300 display: inline-block;
301 text-align: left; 301 text-align: left;
302} 302}
303.verse p {
304 margin-bottom: 1em;
305 margin-top: 1em;
306}
307.verse .line {
308 display: block;
309 margin: 0;
310 text-indent: -1em;
311 margin-left: 1em;
312}
303/* .verse }}} */ 313/* .verse }}} */
304/* PROJECT CSS */ 314/* PROJECT CSS */
305/* #COVER {{{ */ 315/* #COVER {{{ */