View Single Post
Old 11-05-2021, 04:55 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DyckBook View Post
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 View Post
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 View Post
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.
DNSB is offline   Reply With Quote