View Single Post
Old 11-11-2019, 02:07 AM   #18
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Originally Posted by retiredbiker View Post
I spent a long time modifying CSS, using whatever was there, just changing the odd margin or font size, etc. One day I realized I was doing the same thing over and over, so I copied CSS entries I liked into a text file...basically my very own off-line CSS file. Now I can just copy and past from that into any book to get some style I like...just replace the contents of a paragraph style, for example, and it's instantly the way you want it. Just a suggestion to make work easier!
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.

Last edited by deback; 11-11-2019 at 01:08 PM.
deback is offline   Reply With Quote