diff options
author | Case Duckworth | 2015-03-27 15:40:42 -0700 |
---|---|---|
committer | Case Duckworth | 2015-03-27 15:40:42 -0700 |
commit | 643d9ceb308c206a6e572c7c555168ff0ca60bc1 (patch) | |
tree | 8878d45b3dcc5c894a21d4e379be0f7293c5d345 /style.css | |
parent | Change verse lines '$' -> '^| ' (diff) | |
download | autocento-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.css | 10 |
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 {{{ */ |