Skip to content

Commit

Permalink
resolves #67 use darker colors on Kindle Paperwhite (PR #160)
Browse files Browse the repository at this point in the history
- detect Kindle Paperwhite using kf8 + resolution media query
- force darker colors on Kindle Paperwhite
  • Loading branch information
mojavelinux committed Feb 16, 2018
1 parent d485494 commit 718a671
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions data/styles/epub3-css3-only.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit 718a671

Please sign in to comment.