From 6f3540a800edf10777d85ac77f6821e0d0c5aa6c Mon Sep 17 00:00:00 2001 From: yh54321 Date: Sun, 9 Dec 2018 17:02:20 -0500 Subject: [PATCH] Fix heading bug in Style.css Fixes bug which causes certain chapter titles to be stylized incorrectly. (Compare chapter 2 to chapter 3: https://s3.amazonaws.com/moby-dick/moby-dick.epub) Affects elements within elements --- folioreader/src/main/assets/css/Style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folioreader/src/main/assets/css/Style.css b/folioreader/src/main/assets/css/Style.css index 8500ff7d2..a2cfab536 100755 --- a/folioreader/src/main/assets/css/Style.css +++ b/folioreader/src/main/assets/css/Style.css @@ -297,7 +297,7 @@ body { -webkit-hyphens: auto !important; hyphens: auto !important; } -p, span, div { +:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) > p, span, div { font-size: 1rem; line-height: 1.5 !important; } @@ -330,4 +330,4 @@ p, span, div { to { } -} \ No newline at end of file +}