Skip to content

Commit

Permalink
Style the CC button when it is active
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 9, 2023
1 parent 422925a commit cd24421
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 cd24421

Please sign in to comment.