|
|
#1 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,786
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
KoboTouch driver extra CSS in calibre 8
Would it be possible to modify the extra CSS in the KoboTouch driver for calibre 8 to allow us to have different CSS based on ePub or KePub? Thanks.
|
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
With a bit of creativity, you can (sort of) do this already using the existing single override file, kobo_extra.css.
For example, by taking advantage of the "special Kobo <div>s" which have traditionally been injected during the on-the-fly epub --> kepub transformation: Code:
/* Put all your epub-specific CSS rules first */
div#book-columns > div#book-inner {
/* Put all your kepub-specific CSS rules here */
}
How well it works may depend on what kind of CSS differences you want for epub vs. kepub. Last edited by jackie_w; 10-03-2025 at 06:37 PM. |
|
|
|
|
|
#3 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,786
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#4 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
I just tried the following in the kobo_extra.css file on my Clara 2E running fw4.38.23429 without patch Unify font sizes. Code:
/* This will be ignored by epubs */
div#book-columns > div#book-inner {
font-size: 1.85em;
}
ETA: Of course if patch Unify font sizes resurrects itself in the next firmware then you'd need to resend all your kepubs to remove the font-size hack. Last edited by jackie_w; 10-04-2025 at 12:44 PM. Reason: ETA |
|
|
|
|
|
|
#5 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 120
Karma: 37418
Join Date: Jan 2013
Device: H2OE2, Libra 2
|
This is what I use to add css to kepub's and be ignored by epubs:
/* Improve kepubs word spacing and letter spacing */ #book-columns #book-inner { word-spacing: -0.055em; letter-spacing: -0.005em; } |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Device Plugin] KoboTouch - Metaguide Driver (intellireading) | 0x6f677548 | Plugins | 13 | 09-10-2025 09:16 AM |
| KoboTouch driver & SeriesID | ownedbycats | Devices | 36 | 07-07-2024 01:12 PM |
| Bug with Subtitle in KoboTouch Driver 2.5.1 | JSWolf | Devices | 2 | 01-01-2021 10:35 AM |
| [Device Plugin]KoboTouch driver for calibre 1.48 | davidfor | Plugins | 4 | 12-27-2015 07:03 AM |
| css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 06:09 PM |