google-code-export / fanficdownloader

Automatically exported from code.google.com/p/fanficdownloader
0 stars 0 forks source link

Background is always white #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Any download from ff.net (only site I've used so far)

What is the expected output? What do you see instead?

I use a custom CSS in the Calibre Viewer.  This gives me a Dark background and 
light text, better for reading at night.  When I view a file downloaded with 
this plugin the background is white dispute the viewers custom CSS.

What version of the product are you using? On what operating system?

Calibre is 0.8.42, plugin is 1.5.9 (downloaded today)

Please provide any additional information below.

Custom CSS is included in screenshot below.

Original issue reported on code.google.com by e.b.hea...@me.com on 17 Mar 2012 at 2:12

Attachments:

GoogleCodeExporter commented 9 years ago
FFDL writes a stylesheet in the epub that, by default, sets the BG color and 
few other things.  The stylesheet in the epub overrides your view settings.

You can go into FFDL Configure -> personal.ini tab and add an output_css 
parameter to the [epub] section to change the CSS written in the epub.  Remove 
the body parameter and your viewer's BG color will show.

Something like so:

[epub]
output_css:
 .CI {
     text-align:center;
     margin-top:0px;
     margin-bottom:0px;
     padding:0px;
     }
 .center   {text-align: center;}
 .cover    {text-align: center;}
 .full     {width: 100%%; }
 .quarter  {width: 25%%; }
 .smcap    {font-variant: small-caps;}
 .u        {text-decoration: underline;}
 .bold     {font-weight: bold;}

Note the space at the beginning of each CSS line to continue the parameter and 
the %% escaping.

This will only change new or updated books.  You can force it into existing 
books with 'Update Always'.

Original comment by retiefj...@gmail.com on 17 Mar 2012 at 2:45

GoogleCodeExporter commented 9 years ago
Brilliant.  Thanks.

Thanks for the very fast response too

Original comment by e.b.hea...@me.com on 17 Mar 2012 at 2:54