Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #28 from kjantzer/fix/11-audio-mark-in-night-mode
Browse files Browse the repository at this point in the history
Fixing audio sync highlight in night mode #11
  • Loading branch information
hebertialmeida committed Jan 13, 2016
2 parents 770d0b7 + 88c06de commit 2e9fc3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/FolioReaderCenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions Source/Resources/Style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2e9fc3d

Please sign in to comment.