From 5685e1dba9b485939c833ba86f4e5c2e5e34453b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 14 Mar 2015 11:33:26 -0700 Subject: Mostly fix #11: Dedication/epigraph alignment So the issue is solved in terms of how it looks, though it adds a gross extra div into every page and uses :only-child, which I don't think is super-supported. But it's the best I can do that I know of until we get to better flexbox support. Or you know, maybe later I can try doing some templating fixes-- injecting classes so that normally, .dedication is right-aligned but when an epigraph is present, change the class to .dedication-left or something. IDK. Either way is sort of ugly. :( --- .template.html | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to '.template.html') diff --git a/.template.html b/.template.html index 19d5254..952cc41 100644 --- a/.template.html +++ b/.template.html @@ -41,25 +41,27 @@ $if(title)$

$title$

$endif$ $if(subtitle)$

$subtitle$

$endif$ - $if(dedication)$ - -
$dedication$
- $endif$ - - $if(epigraph.content)$ - -
- $if(epigraph.link)$ - $epigraph.content$ - $else$ - $epigraph.content$ +
+ $if(dedication)$ + +
$dedication$
$endif$ - $if(epigraph.attrib)$ -
$epigraph.attrib$
+ $if(epigraph.content)$ + +
+ $if(epigraph.link)$ + $epigraph.content$ + $else$ + $epigraph.content$ + $endif$ + + $if(epigraph.attrib)$ +
$epigraph.attrib$
+ $endif$ +
$endif$ -
- $endif$ +
$if(ekphrastic.image)$ -- cgit 1.4.1-21-gabe81