diff --git a/Source/FolioReaderCenter.swift b/Source/FolioReaderCenter.swift index 2beaa72a9..7af29cf0b 100755 --- a/Source/FolioReaderCenter.swift +++ b/Source/FolioReaderCenter.swift @@ -438,7 +438,7 @@ class FolioReaderCenter: UIViewController, UICollectionViewDelegate, UICollectio readerConfig.mediaOverlayColor = readerConfig.toolBarBackgroundColor.highlightColor() } - let mediaOverlayStyle = "background: \(readerConfig.mediaOverlayColor.hexString(false)); border-radius: 3px; padding-right: 4px; margin-right: -4px;" + let mediaOverlayStyle = "background: \(readerConfig.mediaOverlayColor.hexString(false)) !important; border-radius: 3px; padding-right: 4px; margin-right: -4px;" // Inject CSS let jsFilePath = NSBundle.frameworkBundle().pathForResource("Bridge", ofType: "js") diff --git a/Source/Resources/Style.css b/Source/Resources/Style.css index d9aaa5b81..6ef4df079 100755 --- a/Source/Resources/Style.css +++ b/Source/Resources/Style.css @@ -188,7 +188,7 @@ html.nightMode { background-color: #131313 !important; } -.nightMode p, .nightMode div, .nightMode span { +.nightMode p, .nightMode div, .nightMode span:not(.epub-media-overlay-playing) { color: #767676 !important; background-color: transparent !important; } @@ -268,7 +268,7 @@ p, span, div { /* default media overlay style */ span.epub-media-overlay-playing { - background: #ccc; + background: #ccc !important; border-radius: 3px; padding-right: 4px; margin-right: -4px