mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
improve captions style
This commit is contained in:
parent
a4588b643f
commit
b8bbf49158
1 changed files with 15 additions and 0 deletions
|
@ -652,4 +652,19 @@ export default {
|
|||
.shaka-video-container:-webkit-full-screen {
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue