mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 23:47:25 +00:00
improve captions style
This commit is contained in:
parent
a4588b643f
commit
b8bbf49158
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user