improve captions style

This commit is contained in:
Bnyro 2022-07-23 18:15:40 +02:00
parent a4588b643f
commit b8bbf49158

View file

@ -652,4 +652,19 @@ export default {
.shaka-video-container:-webkit-full-screen { .shaka-video-container:-webkit-full-screen {
max-height: none !important; max-height: none !important;
} }
/* captions style */
.shaka-text-wrapper * {
text-align: left !important;
}
.shaka-text-wrapper > span > span {
background-color: 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-color: rgba(0, 0, 0, 0.6) !important;
padding: 0.09em 0;
}
</style> </style>