Skip to content

Commit

Permalink
Merge pull request #1715 from sul-dlss/style-css-button
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo authored Nov 10, 2023
2 parents dd4d663 + cd24421 commit ed3d63f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/assets/stylesheets/media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
right: 0;
top: 0;
}

// Style the CC button when they have captions enabled
// This won't work on Firefox unless enabled by layout.css.has-selector.enabled in about:config
// Other than this, there doesn't seem to be a way to style the state
.vjs-subs-caps-button:has(+ .vjs-menu > .vjs-menu-content > .vjs-selected.vjs-captions-menu-item) {
border-bottom: 2px solid red;
}
}

.media-component {
Expand Down

0 comments on commit ed3d63f

Please sign in to comment.