aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/epub3.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-11-11 19:22:30 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commit77a3e41fb1fa01fe739c5c450a374498abe7f6d0 (patch)
treebf0eee1251d6d68b7d8176482617dad9be76f4e5 /src/doc_reform/output/epub3.d
parent--workon flag, for some under construction code (diff)
0.3.2 css themes, --dark & --light (default)
Diffstat (limited to 'src/doc_reform/output/epub3.d')
-rw-r--r--src/doc_reform/output/epub3.d8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc_reform/output/epub3.d b/src/doc_reform/output/epub3.d
index e862a3f..4d86036 100644
--- a/src/doc_reform/output/epub3.d
+++ b/src/doc_reform/output/epub3.d
@@ -794,14 +794,18 @@ template outputEPub3() {
{ /+ debug +/
if (doc_matters.opt.action.debug_do) {
fn_dbg = pth_epub3.dbg_fn_oebps_css(doc_matters.src.filename);
- File(fn_dbg, "w").writeln(css.epub_css);
+ (doc_matters.opt.action.css_theme_default)
+ ? File(fn_dbg, "w").writeln(css.light.epub)
+ : File(fn_dbg, "w").writeln(css.dark.epub);
}
}
fn = pth_epub3.fn_oebps_css(doc_matters.src.filename);
auto zip_arc_member_file = new ArchiveMember();
zip_arc_member_file.name = fn;
auto zip_data = new OutBuffer();
- zip_data.write(css.epub_css.dup);
+ (doc_matters.opt.action.css_theme_default)
+ ? zip_data.write(css.light.epub.dup)
+ : zip_data.write(css.dark.epub.dup);
zip_arc_member_file.expandedData = zip_data.toBytes();
zip.addMember(zip_arc_member_file);
createZipFile!()(fn_epub, zip.build());