Merge pull request #1728 from dragos-efy/efy

fix captions
This commit is contained in:
Bnyro 2022-11-11 15:46:52 +01:00 committed by GitHub
commit e925ae98e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -670,14 +670,16 @@ export default {
.shaka-text-wrapper > span {
background: #0008 !important;
backdrop-filter: blur(20rem);
border: 1.5rem solid var(--efy_color_border);
border-radius: var(--efy_radius);
padding: 8rem 12rem;
line-height: 28rem;
padding: 6rem 10rem;
line-height: 24rem;
}
.shaka-text-wrapper > span:empty {
display: none !important;
}
.shaka-text-wrapper > span * {
background: transparent !important;
}
/* apply to all spans that don't include multiple other spans to avoid the style being applied to the text container too when the subtitles are two lines */
.shaka-text-wrapper > span > span *:first-child:last-child {
background: transparent !important;