View Single Post
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