diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-02-15 23:35:52 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-15 23:35:52 -0700 |
| commit | 718a671f25ae7e09cc77ad3c13fb3fc7e8ccd898 (patch) | |
| tree | 4c65a2f0f1a7b6735bb148f44868d5d8adcbd782 /data | |
| parent | d48549425b1fe26c6c5a6d9ffb32924c2ff3c68c (diff) | |
resolves #67 use darker colors on Kindle Paperwhite (PR #160)
- detect Kindle Paperwhite using kf8 + resolution media query
- force darker colors on Kindle Paperwhite
Diffstat (limited to 'data')
| -rw-r--r-- | data/styles/epub3-css3-only.css | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/data/styles/epub3-css3-only.css b/data/styles/epub3-css3-only.css index 7a99542..0f4663b 100644 --- a/data/styles/epub3-css3-only.css +++ b/data/styles/epub3-css3-only.css @@ -104,6 +104,43 @@ body code, body kbd, body pre, pre :not(code) { } } +/* Use darker font colors on Kindle Paperwhite */ +@media amzn-kf8 and (device-height: 1024px) and (device-width: 758px), + amzn-kf8 and (device-height: 758px) and (device-width: 1024px) { + body p, + div.abstract > p, + ul, ol, li, dl, dt, dd, footer, + div.verse .attribution, table.table th, table.table td, + figcaption, caption, + h1, h2, h3, h4, h5 { + color: #000000; + } + + body a:link, + div.abstract > p a:link { + color: #000000; + -webkit-text-fill-color: #000000; + } + + body a:visited { + color: #333332; + -webkit-text-fill-color: #333332; + } + + .chapter-header { + color: #191918; + border-bottom-color: #191918; + } + + h1.chapter-title .subtitle { + color: #000000; + } + + .chapter-header p.byline { + color: #191918; + } +} + .chapter-header p.byline { height: auto; /* Aldiko requires this value to be 0; reset it for all others */ } |
