-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
issue: the player uses the shaka UITextDisplayer plugin to render text tracks with our container but does not load all relevant CSS class fix: update the CSS file and replace the container solves: FEC-12479
- Loading branch information
1 parent
8916fb9
commit f7676d9
Showing
2 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
.shaka-text-container { | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
width: 100%; | ||
min-width: 48px; | ||
transition: bottom cubic-bezier(0.4, 0, 0.6, 1) 0.1s; | ||
transition-delay: 0.5s; | ||
font-size: 20px; | ||
line-height: 1.4; | ||
.shaka-text-container{ | ||
position:absolute; | ||
left:0; | ||
right:0; | ||
top:0; | ||
bottom:0; | ||
pointer-events:none; | ||
width:100%; | ||
min-width:48px; | ||
transition:bottom cubic-bezier(.4, 0, .6, 1) .1s; | ||
transition-delay:0s; | ||
font-size:20px; | ||
line-height:1.4; | ||
color:#fff; | ||
font-family: Roboto-Regular, Roboto, sans-serif, TengwarTelcontar; | ||
} | ||
.shaka-text-container span.shaka-text-wrapper{ | ||
display:inline; | ||
background:0 0; | ||
text-align: center; | ||
} | ||
|
||
:fullscreen .shaka-text-container{ | ||
font-size:4.4vmin | ||
} | ||
|
||
.shaka-text-container * { | ||
font-size: 20px; | ||
line-height: 1.4; | ||
:-webkit-full-screen .shaka-text-container{ | ||
font-size:4.4vmin | ||
} | ||
|
||
.shaka-text-container span { | ||
background-color: rgba(0, 0, 0, 0.8); | ||
color: #fff; | ||
display: inline-block; | ||
:-moz-full-screen .shaka-text-container{ | ||
font-size:4.4vmin | ||
} | ||
|
||
.shaka-text-container .shaka-nested-cue:not(:last-of-type):after { | ||
content: ' '; | ||
white-space: pre; | ||
:-ms-fullscreen .shaka-text-container{ | ||
font-size:4.4vmin | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters