View Single Post
Old 11-11-2019, 03:48 PM   #24
GarryB123
Enthusiast
GarryB123 began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by deback View Post
I did the same thing and have a css.txt file with many classes that I copy into the current *.css file (when I'm editing and reformatting books), and then I go through and find/replace the current classes in the book with the names I've assigned to those corresponding classes. I also have a lot of macros set up to do various things. For example, to change only the paragraph class when it has top and bottom margins of 1em (or some other number), I highlight the lines below "display: block" in the CSS file for the body text class, and then hit CTRL-SHIFT-7. Like this:

margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; text-indent: 1.2em;

Then I hit the Beautify button to sort the lines in the *.css file.

I do a lot of other things when converting files to make changes automatically, but that's way too involved for this discussion (extra CSS, transform, remove all fonts and add my favorite font, etc).

You could also install the Modify ePub plugin that will do several things for you automatically, including removing all fonts, without running the Convert module.
This is awesome and some is a little beyond me currently (the plugin). Knowing myself I will dig only as deep into this as achieves the look I'm after. But maybe my goals will change as I learn.
GarryB123 is offline   Reply With Quote