Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2019, 09:52 PM   #271
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 882
Karma: 409970
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Now if Doc thank you very much for the explanation, I needed to adjust some parameters.
Image 1 as I had it.
Image 2 after adjustments.
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	765
Size:	272.5 KB
ID:	176007   Click image for larger version

Name:	2.png
Views:	776
Size:	848.4 KB
ID:	176008  

Last edited by dunhill; 12-30-2019 at 09:58 PM.
dunhill is offline   Reply With Quote
Old 02-07-2020, 04:02 PM   #272
igor23740
Junior Member
igor23740 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2020
Device: naw
Footer

Hello. I use this CSS Code
Code:
P{
margin-left: 1.47em !important;
margin-right: 1.47em !important;
}
body {
margin-top: 0.70em !important;
}

Div{
margin-left: 0.25em !important;
}

*{
color:black !important;
}

div{
max-width: 90vw !important;
}
but it doesn't regulate the footer! Please tell me how to do this?
Attached Thumbnails
Click image for larger version

Name:	2020-02-07_232742.jpg
Views:	793
Size:	257.7 KB
ID:	177000  
igor23740 is offline   Reply With Quote
Advert
Old 02-07-2020, 05:33 PM   #273
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by igor23740 View Post
Hello. I use this CSS Code
Code:
P{
body {
margin-top: 0.70em !important;
}
but it doesn't regulate the footer! Please tell me how to do this?
Margin left and right work, but top and bottom margins do not work. If you make the top margin much bigger than the 0.15em the bottom will slide off the screen. I only use the very small number to move the letters in the top sentences to stop rubbing against the top of the background image.

There is nothing you can do but set the top and bottom margins in the layout and not in extra css.
DoctorOhh is offline   Reply With Quote
Old 02-08-2020, 02:54 AM   #274
igor23740
Junior Member
igor23740 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2020
Device: naw
Footer

Quote:
Originally Posted by DoctorOhh View Post
Margin left and right work, but top and bottom margins do not work. If you make the top margin much bigger than the 0.15em the bottom will slide off the screen. I only use the very small number to move the letters in the top sentences to stop rubbing against the top of the background image.

There is nothing you can do but set the top and bottom margins in the layout and not in extra css.
It turned out like this. Better than nothing. Thanks.
Attached Thumbnails
Click image for larger version

Name:	2020-02-08_104920.jpg
Views:	607
Size:	318.0 KB
ID:	177012  
igor23740 is offline   Reply With Quote
Old 04-02-2020, 01:59 PM   #275
duns
Connoisseur
duns began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Sep 2017
Device: PocketBook
a new question: where is stored (in Linux) custom css?

My question is in the title: neither in /home nor in /opt I managed to find my (custom) css code for Calibre Viewer.
Can someone tell me where is it stored?

Last edited by duns; 04-02-2020 at 02:02 PM.
duns is offline   Reply With Quote
Advert
Old 04-02-2020, 02:22 PM   #276
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,993
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by duns View Post
My question is in the title: neither in /home nor in /opt I managed to find my (custom) css code for Calibre Viewer.
Can someone tell me where is it stored?
I would guess it is stored in the Calibre Preferences folder: in one of the viewer.* files
theducks is online now   Reply With Quote
Old 04-02-2020, 02:57 PM   #277
duns
Connoisseur
duns began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Sep 2017
Device: PocketBook
what folder is stored custom css

Quote:
Originally Posted by theducks View Post
I would guess it is stored in the Calibre Preferences folder: in one of the viewer.* files
Thank you: they are in in /home/.config/calibre/viewer-webengine.json
Unfortunately custom css, in that file, is "mixed" with many other settings, f.e. the last books opened, what is something again and again changing ...
Any way, thanks

EDIT

I tried to link a css file in that json file (with something like
"user_stylesheet": "@import url(/pathto-css-file/mystyle.css);")
but unsuccessfully.
There is a way to link an external css to that json file?

EDIT

Found! This code works:
"user_stylesheet": "@import url(http://localhost/path/pro-calibre.css);"
Excellent!

Last edited by duns; 04-02-2020 at 04:17 PM.
duns is offline   Reply With Quote
Old 04-22-2020, 11:55 AM   #278
DamnedOwl
Junior Member
DamnedOwl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2014
Device: none
Is there any way to style the 'Table of Contents' panel in the viewer?

The issue I'm facing in particular is that when I click an entry, the font changes from normal to bold italic and reduces in size thereafter by about 80%, without restoring to it's original size.

Is this behaviour intended? Having a mechanism to visually see the sections that have already been visited can potentially be useful, of course, but the reduction in font size creates a strange clash of styles that's quite off-putting.
DamnedOwl is offline   Reply With Quote
Old 04-22-2020, 12:04 PM   #279
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,294
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Whatever section you are currently reading is highlighteb in the table fo contents. And the font styling most defintely restores itself after you move on to the next section.
kovidgoyal is offline   Reply With Quote
Old 04-23-2020, 05:16 AM   #280
DamnedOwl
Junior Member
DamnedOwl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Whatever section you are currently reading is highlighteb in the table fo contents. And the font styling most defintely restores itself after you move on to the next section.
All the styling except for the size of the font restores itself.

Click image for larger version

Name:	2020-04-23-111405_451x813_scrot.png
Views:	574
Size:	53.0 KB
ID:	178632
DamnedOwl is offline   Reply With Quote
Old 04-23-2020, 06:40 AM   #281
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,294
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's rather weird what OS is this??
kovidgoyal is offline   Reply With Quote
Old 04-23-2020, 07:38 AM   #282
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,294
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In any case, this should take care of it: https://github.com/kovidgoyal/calibr...8f75c44dd7d1d6
kovidgoyal is offline   Reply With Quote
Old 04-23-2020, 08:31 AM   #283
DamnedOwl
Junior Member
DamnedOwl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
That's rather weird what OS is this??
Linux (Arch)

Actually, just this question alone made me consider whether the issue was originating with the fact that I'm using my distro's calibre package.

And lo and behold, after switching to the binary install, I can say it (probably) is!

I know you generally advise against using distro calibre packages, and I've had my fingers burned by this before when problems I was having with calibre were resolved by using the binary install from the calibre site instead.

Well, a lesson learnt (again (for now)).

Anyway, thanks for this and for all your ceaseless work on calibre (and now kitty too). You truly are a force for good in this world!
DamnedOwl is offline   Reply With Quote
Old 04-23-2020, 08:35 AM   #284
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,294
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome I actually use Arch myself, with calibre built from source ofc, not the distro package, and haven't seen this issue. I suspect it will be caused by some Qt style/theme plugin in your system Qt. My fix above should take care of it though.
kovidgoyal is offline   Reply With Quote
Old 04-23-2020, 08:41 AM   #285
DamnedOwl
Junior Member
DamnedOwl began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
You're welcome I actually use Arch myself, with calibre built from source ofc, not the distro package, and haven't seen this issue. I suspect it will be caused by some Qt style/theme plugin in your system Qt. My fix above should take care of it though.
Would this fix already be reflected in the calibre that the binary installer installs? If so, I suppose I've not quite established whether the issue I was experiencing was specifically with the Arch repo package.

Still, no matter, it's certainly working now.
DamnedOwl is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom CSS for output deckoff Calibre 1 08-28-2010 11:55 PM
ePub with custom .css on a 505 dicknskip Sony Reader Dev Corner 3 06-09-2010 11:34 PM
User stylesheets for ePub files salty-horse Sony Reader Dev Corner 12 02-23-2010 07:44 AM
ePub conversion: override existing css with a custom one sbin Calibre 1 01-09-2010 04:03 AM
Calibre's generated css for epub brewt Calibre 7 12-29-2008 09:59 AM


All times are GMT -4. The time now is 01:34 PM.


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