Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 04:51 PM   #1
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,423
Karma: 150249609
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.
JSWolf is offline   Reply With Quote
Old Yesterday, 05:34 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,260
Karma: 16544692
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 */
}
The epub will ignore the rules in the bottom half because it doesn't contain the special Kobo <div>s . The kepub won't ignore the rules in the top half but the bottom half rules come later in the CSS file so can override the rules in the top half if they conflict.

How well it works may depend on what kind of CSS differences you want for epub vs. kepub.

Last edited by jackie_w; Yesterday at 05:37 PM.
jackie_w is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Device Plugin] KoboTouch - Metaguide Driver (intellireading) 0x6f677548 Plugins 13 09-10-2025 08:16 AM
KoboTouch driver & SeriesID ownedbycats Devices 36 07-07-2024 12:12 PM
Bug with Subtitle in KoboTouch Driver 2.5.1 JSWolf Devices 2 01-01-2021 09:35 AM
[Device Plugin]KoboTouch driver for calibre 1.48 davidfor Plugins 4 12-27-2015 06:03 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 01:26 AM.


MobileRead.com is a privately owned, operated and funded community.