mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Output: Fix heading styles that have the same font size as body text getting incorrect font sizes after conversion. Fixes #1811616 [Word to EPUB changes size of Heading 2 style](https://bugs.launchpad.net/calibre/+bug/1811616)
This commit is contained in:
parent
b53f33db0e
commit
57438b58ef
@ -445,8 +445,9 @@ class Styles(object):
|
|||||||
|
|
||||||
/* In word all paragraphs have zero margins unless explicitly specified in a style */
|
/* In word all paragraphs have zero margins unless explicitly specified in a style */
|
||||||
p, h1, h2, h3, h4, h5, h6, div { margin: 0; padding: 0 }
|
p, h1, h2, h3, h4, h5, h6, div { margin: 0; padding: 0 }
|
||||||
/* In word headings only have bold font if explicitly specified */
|
/* In word headings only have bold font if explicitly specified,
|
||||||
h1, h2, h3, h4, h5, h6 { font-weight: normal }
|
similarly the font size is the body font size, unless explicitly set. */
|
||||||
|
h1, h2, h3, h4, h5, h6 { font-weight: normal; font-size: 1rem }
|
||||||
/* Setting padding-left to zero breaks rendering of lists, so we only set the other values to zero and leave padding-left for the user-agent */
|
/* Setting padding-left to zero breaks rendering of lists, so we only set the other values to zero and leave padding-left for the user-agent */
|
||||||
ul, ol { margin: 0; padding-top: 0; padding-bottom: 0; padding-right: 0 }
|
ul, ol { margin: 0; padding-top: 0; padding-bottom: 0; padding-right: 0 }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user