![]() |
#46 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
Adobes default font size (1em) is 12pt. Kobos Access default font size is/was 14pt. That is why the text on my Touch is always bigger when using the Access renderer. But can be different now. Or different on a Aura HD. Code:
body { font-size:12pt; /* default font size 12pt = 100% = 1em */ } Adobe 12 pt (default). 14pt (116.667%) Access 14 pt (default). 12pt (85.714%) Try this css. It should give the same results but the redundancies are removed. Only the different settings from the body defaults are specified. Code:
@page { margin: 5pt !important; } body { /* default settings */ margin: 0 !important; padding: 0 !important; padding-bottom: 0.2em !important; font-size: 150% !important; text-indent: 0 !important; text-align: left !important; line-height: 1.0 !important; widows: 0 !important; orphans: 0 !important; -webkit-hyphens: auto !important; } div { text-indent: 4% !important; } p { text-indent: 4% !important; margin:0; padding:0; } A brief example when the output will be different: Code:
p { margin: 0 !important; } Code:
p { margin: 0 0 0 0 !important; } If a class is defined as Code:
.example { margin-top: 5em; } When defining default values it is best to define as margin:0 !important instead of margin: 0 0 0 0 !important or margin-left, -right, -top, -bottom. The same applies for other selectors. Last edited by Anak; 08-05-2013 at 06:59 AM. |
|
![]() |
![]() |
![]() |
#47 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,471
Karma: 169115146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
So now, I will have to fiddle with the css file to see if I can see any differences. Who needs to read ebooks when you can have more fun playing with the ereader? ![]() Regards, David |
||
![]() |
![]() |
Advert | |
|
![]() |
#48 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
Reading? Can't even remember the last time. ![]() Did some further testing and !important rules only work on that specific code. margin:0 !important; sets al margins to 0 (obvious) but does not affect, more precise settings of the same selector: margin:2em 1em 2em 1em; margin:2em 1em; margin-top: 5%; margin-bottom: 2em; margin-left: 1em; margin-right: 24px; but does overrule margin:2em; (margins are set to 0) Which is good as you probably don't want to change the original layout completely. Last edited by Anak; 08-06-2013 at 04:54 AM. |
|
![]() |
![]() |
![]() |
#49 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,775
Karma: 2694823
Join Date: Dec 2011
Location: The Netherlands
Device: Kobo Touch, Glo, Clara HD
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#50 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2017
Device: Kobo Glo
|
Hello, I have a Kobo Glo (first generation, not Kobo Glo HD), running the 3.19.5761 firmware version.
I've tried to create the kepub-book.css file in the correct directory, and added some custom rules to it, but apparently it doesn't work, my ebooks don't display these customization. Is this still feature still supported? |
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
No not in the same way it used to be. It's now part of the internal libnickel.so.1.0.0 file rather than being stored in the user-accessible area.
However, depending on what you want to do to it you may find some of the Kobo patches helpful because some of them do make changes to this file. |
![]() |
![]() |
![]() |
#52 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 158116
Join Date: Oct 2015
Device: Kobo Glo HD (landscape), Kobo Aura One
|
does this help you https://www.mobileread.com/forums/sho...&postcount=158
I use it on my HD to switch to horizontal |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-950 A little web too to generate custom CSS | gsgleason | Sony Reader | 0 | 12-18-2011 06:51 PM |
Custom CSS | Japes | Conversion | 5 | 07-09-2011 08:15 PM |
PRS-300 Stuck in Opening Book, Loading, restart cycle | tiggertiffin87 | Sony Reader | 0 | 10-18-2010 08:33 PM |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
Custom covers for Kobo's book loading screen? | Gianorama | Kobo Reader | 7 | 07-28-2010 11:44 AM |