From 8d24f95579494bf43e1fd78d90d4390adbee0870 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sun, 16 Apr 2023 15:19:57 +0200 Subject: [PATCH] simplify css --- internal/epub/templates/style.css.tmpl | 87 ++----------------------- internal/epub/templates/text.xhtml.tmpl | 4 +- 2 files changed, 9 insertions(+), 82 deletions(-) diff --git a/internal/epub/templates/style.css.tmpl b/internal/epub/templates/style.css.tmpl index da8ed34..606e95c 100644 --- a/internal/epub/templates/style.css.tmpl +++ b/internal/epub/templates/style.css.tmpl @@ -1,87 +1,14 @@ -@charset "UTF-8"; - -html { +body { color: #000; background: #FFF; -} - -body { - font-size: 1em; - text-align: center; -} - -body, -div, -dl, -dt, -dd, -ul, -ol, -li, -h1, -h2, -h3, -h4, -h5, -h6, -th, -td { margin: 0; - padding: 0 + padding: 0; } -table { - border-collapse: collapse; - border-spacing: 0; -} - -fieldset, img { - border: 0; -} - -caption, -th, -var { - font-style: normal; - font-weight: normal; -} - -li { - list-style: none; -} - -caption, -th { - text-align: left; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - -webkit-hyphens:none; - font-weight: normal; -} - -h1 { - font-size: 200%; -} - -h2 { - font-size: 150%; -} - -h3 { - font-size: 120%; -} - -sup { - vertical-align: text-top; -} - -sub { - vertical-align: text-bottom; + position: absolute; + margin: 0; + padding: 0; + top: 0; + left: 0; } \ No newline at end of file diff --git a/internal/epub/templates/text.xhtml.tmpl b/internal/epub/templates/text.xhtml.tmpl index f22efeb..18e7200 100644 --- a/internal/epub/templates/text.xhtml.tmpl +++ b/internal/epub/templates/text.xhtml.tmpl @@ -7,8 +7,8 @@
-