View Single Post
Old 10-04-2025, 06:58 AM   #3
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,964
Karma: 150249633
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
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.
Given the state of the patches on the current firmware, the idea was to use the extra CSS to just add CSS to KePub to make the font sizes the same or similar to ePub.
JSWolf is offline   Reply With Quote