From fe913e1aba8a647e17642fcbba11f12779eb081d Mon Sep 17 00:00:00 2001 From: vr8hub Date: Sat, 26 Oct 2019 00:37:27 -0500 Subject: [PATCH] [HotW] Add subtitle and song CSS --- src/epub/css/local.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/epub/css/local.css b/src/epub/css/local.css index 82e5af0..ee0683c 100644 --- a/src/epub/css/local.css +++ b/src/epub/css/local.css @@ -1,2 +1,25 @@ @charset "utf-8"; @namespace epub "http://www.idpf.org/2007/ops"; + +span[epub|type~="subtitle"]{ + display: block; +} + +[epub|type~="z3998:song"] p{ + text-align: left; + text-indent: 0; +} + +[epub|type~="z3998:song"] p > span{ + display: block; + text-indent: -1em; + padding-left: 1em; +} + +[epub|type~="z3998:song"] p > span + br{ + display: none; +} + +[epub|type~="z3998:song"] + p{ + text-indent: 0; +}