Bulk changes to css files can also be done by creating a calibre plugin. Of course if you've never written a plugin before there's quite a learning curve but once you've created the framework to loop around the selected books you can use the calibre epub/azw3 container classes (another learning curve) to do a lot of the work and cssutils (yet another learning curve, but the OP's change would be trivial) to do the css edits. I've only written GUI plugins myself but I think there may be something you can do to make plugins run from the commandline if that's what you prefer.
That probably sounds like a lot of work but once it's done it's very easy to add a new small specific css edit as the need arises.
|