Commit 69e4761d authored by IBBoard's avatar IBBoard Committed by Bastien Nocera
Browse files

epubview: Make night mode background colour override everything

Using "!important" is normally a bad thing on web pages (because
it overrides normal specificity rules) but in this case it is
necessary because No Starch Press and Wiley books set a
`background-color: transparent;` rule that isn't overridden

Closes: #22
parent 8c8125d1
Pipeline #101143 passed with stage
in 8 minutes and 22 seconds
......@@ -71,7 +71,7 @@ var EPUBView = new Lang.Class({
let view = new Gepub.Widget();
this.invertedStyle = new WebKit2.UserStyleSheet(
'body { background: black; filter: invert(100%); }',
'body { background: black !important; filter: invert(100%); }',
null, null,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment