diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/styles/epub3.css | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/data/styles/epub3.css b/data/styles/epub3.css index c61435e..b2bb498 100644 --- a/data/styles/epub3.css +++ b/data/styles/epub3.css @@ -138,6 +138,7 @@ kbd { img { border: 0; + max-width: 100%; } mark { @@ -729,7 +730,15 @@ figure.image { } figure.image img { - max-width: 100%; + /* in the event the viewer adds display: block to the image */ + /*max-width: 95%;*/ + /* max-width not supported in Kindle, need to use a media query to add */ + margin: 0 auto; +} + +/* Kindle requires text-align: center on surrounding div to align image to center */ +figure.image div.content { + text-align: center; } figure.coalesce { @@ -900,18 +909,6 @@ blockquote footer .context { color: #666665; } -/* Kindle requires text-align: center on surrounding div to align image to center */ -figure.image div.content { - text-align: center; -} - -/* in the event the viewer adds display: block to the image */ -figure.image img { - /* max-width not supported in Kindle, need to use a media query to add */ - /*max-width: 95%;*/ - margin: 0 auto; -} - pre { text-align: left; /* fix for Namo */ margin-top: 1em; /* 0.85rem */ |
