diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2022-12-20 17:48:37 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2022-12-20 17:48:37 +0300 |
| commit | 2dd21aa2c0f3ca5fb49e3604d0ac59644bcbba4d (patch) | |
| tree | 00738857a5cd4cacb73eaa531db86e61bdaf6c00 /data | |
| parent | 497f3f34c19c5a1858365de4b1cab02995fb83a9 (diff) | |
resolves #394 use prose font for verse blocks
Diffstat (limited to 'data')
| -rw-r--r-- | data/styles/epub3-css3-only.scss | 2 | ||||
| -rw-r--r-- | data/styles/epub3.scss | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/data/styles/epub3-css3-only.scss b/data/styles/epub3-css3-only.scss index 6fdfbd5..cd2d600 100644 --- a/data/styles/epub3-css3-only.scss +++ b/data/styles/epub3-css3-only.scss @@ -25,7 +25,7 @@ h1 :not(code), h2 :not(code), h3:not(.list-heading) :not(code), h4 :not(code), h } /* QUESTION what about nested elements inside code? */ -body code, body kbd, body pre, pre :not(code) { +body code, body kbd, body :not(.verse) > pre, :not(.verse) > pre :not(code) { /* !important required to override custom font setting in Kindle / Gitden / Namo */ /* Gitden requires the extra weight of a parent selector */ /* Kindle and Gitden require the override on pre child elements */ diff --git a/data/styles/epub3.scss b/data/styles/epub3.scss index 9a67b49..ea16581 100644 --- a/data/styles/epub3.scss +++ b/data/styles/epub3.scss @@ -822,6 +822,7 @@ div.verse { /* TODO we may want to reenable hyphens here, but not for kf8 */ div.verse > pre { + font-family: "M+ 1p", sans-serif; background-color: transparent; border: none; font-size: 1.2em; |
