149 lines
4.0 KiB
CSS
149 lines
4.0 KiB
CSS
.video-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: var(--player-z-video);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.video-element {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
object-fit: contain;
|
|
pointer-events: auto;
|
|
background-color: #000;
|
|
}
|
|
|
|
.video-element::-webkit-media-controls,
|
|
.video-element::-webkit-media-controls-enclosure,
|
|
.video-element::-webkit-media-controls-panel {
|
|
display: none !important;
|
|
}
|
|
|
|
.video-element::-moz-media-controls {
|
|
display: none !important;
|
|
}
|
|
|
|
::cue,
|
|
.video-element::cue {
|
|
font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
|
|
font-size: 1.28rem !important;
|
|
font-weight: 500 !important;
|
|
line-height: 1.45 !important;
|
|
letter-spacing: 0.01em !important;
|
|
color: #ffffff !important;
|
|
background-color: rgba(15, 15, 15, 0.78) !important;
|
|
padding: 0.35em 0.75em !important;
|
|
border-radius: var(--player-radius-sm) !important;
|
|
text-shadow: none !important;
|
|
white-space: pre-line !important;
|
|
}
|
|
|
|
::-moz-cue,
|
|
.video-element::-moz-cue {
|
|
font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
|
|
font-size: 1.28rem !important;
|
|
font-weight: 500 !important;
|
|
line-height: 1.45 !important;
|
|
letter-spacing: 0.01em !important;
|
|
color: #ffffff !important;
|
|
background-color: rgba(15, 15, 15, 0.78) !important;
|
|
padding: 0.35em 0.75em !important;
|
|
border-radius: var(--player-radius-sm) !important;
|
|
text-shadow: none !important;
|
|
white-space: pre-line !important;
|
|
}
|
|
|
|
::cue(b),
|
|
::cue(strong),
|
|
.video-element::cue(b),
|
|
.video-element::cue(strong),
|
|
::-moz-cue(b),
|
|
::-moz-cue(strong) {
|
|
font-weight: 700 !important;
|
|
}
|
|
|
|
::cue(i),
|
|
::cue(em),
|
|
.video-element::cue(i),
|
|
.video-element::cue(em),
|
|
::-moz-cue(i),
|
|
::-moz-cue(em) {
|
|
font-style: italic !important;
|
|
}
|
|
|
|
::cue(u),
|
|
.video-element::cue(u),
|
|
::-moz-cue(u) {
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
.video-element::-webkit-media-text-track-container {
|
|
position: absolute !important;
|
|
left: 0 !important;
|
|
right: 0 !important;
|
|
bottom: var(--player-subtitle-bottom) !important;
|
|
width: 100% !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
padding: 0 18px !important;
|
|
margin: 0 !important;
|
|
z-index: var(--player-z-subtitle) !important;
|
|
pointer-events: none !important;
|
|
transition: bottom var(--player-transition-fast) ease !important;
|
|
}
|
|
|
|
.video-player.controls-hidden .video-element::-webkit-media-text-track-container {
|
|
bottom: var(--player-subtitle-bottom-hidden) !important;
|
|
}
|
|
|
|
.video-element::-webkit-media-text-track-display {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
text-align: center !important;
|
|
}
|
|
|
|
video::-moz-text-track-display,
|
|
.video-element::-moz-text-track-display {
|
|
position: absolute !important;
|
|
left: 0 !important;
|
|
right: 0 !important;
|
|
bottom: var(--player-subtitle-bottom) !important;
|
|
width: 100% !important;
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
padding: 0 18px !important;
|
|
margin: 0 !important;
|
|
text-align: center !important;
|
|
z-index: var(--player-z-subtitle) !important;
|
|
pointer-events: none !important;
|
|
transition: bottom var(--player-transition-fast) ease !important;
|
|
}
|
|
|
|
.video-player.controls-hidden video::-moz-text-track-display,
|
|
.video-player.controls-hidden .video-element::-moz-text-track-display {
|
|
bottom: var(--player-subtitle-bottom-hidden) !important;
|
|
}
|
|
|
|
.video-element:fullscreen::cue,
|
|
:fullscreen .video-element::cue,
|
|
::-moz-cue:fullscreen,
|
|
video:fullscreen::-moz-cue,
|
|
:fullscreen ::-moz-cue {
|
|
font-size: 1.6rem !important;
|
|
padding: 0.4em 0.85em !important;
|
|
}
|