Files
player/src/components/VideoElement.css
T

98 lines
1.9 KiB
CSS

.sp-video-container {
position: relative;
width: 100%;
height: 100%;
z-index: var(--player-z-video);
pointer-events: none;
}
.sp-video-element {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
pointer-events: auto;
background-color: #000;
}
.sp-animated-image-element {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
background-color: #000;
}
.sp-video-element::-webkit-media-controls,
.sp-video-element::-webkit-media-controls-enclosure,
.sp-video-element::-webkit-media-controls-panel {
display: none !important;
}
.sp-video-element::-moz-media-controls {
display: none !important;
}
.sp-subtitle-overlay {
position: absolute;
left: 0;
right: 0;
z-index: var(--player-z-subtitle);
display: flex;
justify-content: center;
padding: 0 18px;
pointer-events: none;
}
.sp-subtitle-overlay.bottom {
bottom: var(--player-subtitle-bottom);
transition: bottom var(--player-transition-fast) ease;
}
.sp-video-player.sp-controls-hidden .sp-subtitle-overlay.bottom {
bottom: var(--player-subtitle-bottom-hidden);
}
.sp-subtitle-overlay.top {
top: 24px;
}
.sp-subtitle-overlay.center {
top: 50%;
transform: translateY(-50%);
}
.sp-subtitle-stack {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: 100%;
max-width: min(92%, 1200px);
}
.sp-subtitle-cue {
display: inline-block;
max-width: 100%;
padding: 0.35em 0.75em;
border-radius: var(--player-radius-sm);
font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI',
'Roboto', 'Helvetica Neue', Arial, sans-serif;
font-size: 1.4rem;
font-weight: 500;
line-height: 1.45;
letter-spacing: 0.01em;
color: #fff;
background-color: rgba(15, 15, 15, 0.78);
text-align: center;
text-shadow: none;
white-space: pre-line;
word-wrap: break-word;
}
@media (max-width: 640px) {
.sp-subtitle-cue {
font-size: 1.2rem;
}
}