![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2025
Device: none
|
CSS To make illustration images match color schemes
I made this to avoid the jarring white boxes around black and white illustrations when using color schemes. If the text includes full color images those will look weird.
For the Black scheme Code:
img { filter: invert(1)} Code:
img { filter: contrast(.6) sepia(2) grayscale(.8)} Code:
img { filter: contrast(.5) sepia(2) grayscale(.3)} Code:
img { filter: invert(1) contrast(.6) sepia(2) brightness(.8) grayscale(.3)} heres an example using my old paper schemes Code:
body.calibre-viewer-light-colors { filter: contrast(.5) sepia(2) grayscale(.3)} body.calibre-viewer-dark-colors { filter: invert(1) contrast(.6) sepia(2) brightness(.8) grayscale(.3)} |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Having a SVG match the text color | qntnlq | ePub | 19 | 03-19-2025 09:52 PM |
Match html & CSS of two different books? | vanishedsarah | Conversion | 2 | 12-07-2022 11:57 PM |
How to make TOCs match | Kyriosity | Kindle Formats | 1 | 08-27-2020 06:20 PM |
what to install on kobo glo + illustration&css sideload + color A4 e-ink | Doonge | Kobo Developer's Corner | 6 | 11-19-2013 04:44 AM |
css to make all images larger? | 1611mac | ePub | 5 | 03-31-2012 02:18 AM |