[ehnancement] Add custom CSS file by reference (instead of importing it's content)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
It would be nice, if I could convince Calibre to preserve some of my custom CSS by reference (= by <link rel>, CSS @import, link in content.opf, or whatever), without interpreting it (or even accessing) at the conversion time.
Currently, as I see, Calibre is flattening my custom CSS (set by Conversion/Common Options/Extra CSS) by loading it's content into my HTML files. Even @import directives are handled this way. This is generally good way as it makes books self-contained, but …
… but I'd like to keep single CSS file on my device (Sony Reader), reference it from my books, and be able to edit CSS in one place (say - to replace font, or margins), impacting all books on the device, without the need to reconvert them.
To have this, I'd just need to add /Data/Custom/
Maybe the most general option to solve would be to provide "Raw CSS" conversion option which would allow one to specify any kind of CSS passed as-is to the output file. I'd use it to specify @import, but it could work in other unexpected cases.
calibre's conversion pipeline is designed to flatten css. It needs to do this
to function correctly. If you want some CSS to always appear in your output
files, simply paste it into the Extra CSS box in conversion settings.
status wontfix