From aa5dce2a6df89e955cd63db8af01100a31224536 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 30 Jan 2022 18:55:40 -0600 Subject: [PATCH] Alphabetize CSS declarations --- src/epub/css/core.css | 6 +++--- src/epub/css/local.css | 10 +++++----- src/epub/css/se.css | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/epub/css/core.css b/src/epub/css/core.css index ebf5a23..73ac02e 100644 --- a/src/epub/css/core.css +++ b/src/epub/css/core.css @@ -36,13 +36,13 @@ h4, h5, h6, hgroup{ + break-after: avoid; + break-inside: avoid; font-variant: small-caps; hyphens: none; -epub-hyphens: none; - break-after: avoid; - break-inside: avoid; - text-align: center; margin: 3em 0; + text-align: center; } hgroup > *{ diff --git a/src/epub/css/local.css b/src/epub/css/local.css index d8f8396..a5f7107 100644 --- a/src/epub/css/local.css +++ b/src/epub/css/local.css @@ -30,9 +30,9 @@ blockquote[xml|lang]{ } [epub|type~="epigraph"] cite{ - margin-top: 1em; font-style: normal; font-variant: small-caps; + margin-top: 1em; } [epub|type~="epigraph"] cite i{ @@ -143,8 +143,8 @@ footer{ [epub|type~="z3998:postscript"]{ margin-top: 1em; - text-indent: 0; text-align: initial; + text-indent: 0; } /* end of letter */ @@ -188,8 +188,8 @@ footer{ } [epub|type~="z3998:drama"] td{ - vertical-align: top; padding: .5em; + vertical-align: top; } [epub|type~="z3998:drama"] td:last-child{ @@ -329,9 +329,9 @@ i [epub|type~="z3998:persona"]{ #the-vitagraphoscope header{ font-variant: small-caps; - text-align: center; - margin-top: 2em; margin-bottom: 1em; + margin-top: 2em; + text-align: center; } #the-vitagraphoscope header p:nth-child(2){ diff --git a/src/epub/css/se.css b/src/epub/css/se.css index bc25115..54c7538 100644 --- a/src/epub/css/se.css +++ b/src/epub/css/se.css @@ -11,14 +11,14 @@ section[epub|type~="titlepage"] p, section[epub|type~="colophon"] h2, section[epub|type~="imprint"] h2{ font-size: 0; /* Required for Kobo not to add an extra page to the title */ - position: absolute; /* Required for Kindle */ left: -999em; + position: absolute; /* Required for Kindle */ } section[epub|type~="titlepage"] img{ display: block; - width: 100%; margin: 3em auto auto auto; + width: 100%; } section[epub|type~="colophon"],