Skip to content

Commit 1e16954

Browse files
committed
Add generic captions container class & style
1 parent 0bcd8f4 commit 1e16954

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎scripts/buildplayer.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function addBuildplayerFunctions(AblePlayer) {
3434
// add container that captions or description will be appended to
3535
// Note: new Jquery object must be assigned _after_ wrap, hence the temp captionsContainer variable
3636
captionsContainer = $('<div>');
37+
captionsContainer.addClass('able-captions-container');
3738
if (this.mediaType === 'video') {
3839
captionsContainer.addClass('able-vidcap-container');
3940
} else if (this.mediaType === 'audio') {

‎styles/ableplayer.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@
188188
margin: 0 6px;
189189
}
190190

191+
.able-captions-container {
192+
background: var(--able-control-background);
193+
}
194+
191195
.able .able-vidcap-container {
192196
left: 0;
193197
margin: 0;

0 commit comments

Comments
 (0)