Quote:
Originally Posted by JSWolf
I do remember seeing one Kindle eBook (I think self-published) where the CSS was nothing but media queries. Quite a mess.
Vellum makes more of a mess of the code then InDesign. At least with InDesign, you can sort of see some method to the madness. With Vellum, it's madness to the madness with no method.
|
To me, Vellum is actually quite sensible. One stylesheet for standard CSS and one for media queries. I spend about 30 minutes one day checking the media.css from 5 of my spouse's books and generated a combined file with any Kindle specific media queries/code removed and the media queries removed from the rest so only the CSS was left.
Basically, I now replace the body, p and p.subsq code in the styles.css stylesheet and copy/paste the modified dequeried code over the media.css stylesheet. Remove the unused stylesheet entries, clean up the undefined classes in the html files and run my saved search/replaces and I'm are pretty much done.
My spouse is much happier with the formatting in those epubs after the cleanup. Since the cleanup on the stylesheets and the saved searches takes just a few minutes, I'm happy as well.
Now if you were talking about the mass of undefined classes and IDs in a Vellum generated ebook, that is a bit of a head scratcher though @wrCisco's cssUndefinedClasses plugin for Sigil makes them go away in one swell foop.