Quote:
Originally Posted by DyckBook
Many of my ebooks have a page_styles.css with just the following:
Code:
@page {
margin-bottom: 5pt;
margin-top: 5pt;
}
A Google search reveals "The @page CSS at-rule is used to modify some CSS properties when printing a document."
So...if I want to read the book on my Kindle not print it do I even need the CSS file?
|
You actually don't need that rule. I tend to remove it from any books I find page-styles.css in, most of which are calibre conversions.
Quote:
Originally Posted by DyckBook
The reason I ask is that using Modify ePub I can add styles I want, BUT they are added to every CSS file. So I end up with a page_styles.css with all of the styles that I wanted added to the stylesheet.css as well. Safely deleting the page_styles.css file would solve that bloat!
|
The only caution is that calibre conversions tend to put any font-face declarations for embedded fonts into page-styles.css.
Quote:
Originally Posted by DyckBook
The next question, of course, is, is there a plugin that would allow me to delete a specific file from a set of books?
|
I'd suggest using either calibre's editor or Sigil instead of a plugin. Most of my cleanup tends towards setting the body and two paragraph directives one with and one without indentation.