2024-07-15 15:52:29 +02:00

88 lines
1.6 KiB
SCSS

.VideoPlayer {
position: relative;
display: inline-flex;
flex-direction: column;
overflow: hidden;
@media (max-width: 600px) {
overflow: visible;
}
@media (max-height: 640px) {
margin-bottom: 1.75rem;
@at-root .has-footer #{&} {
margin-bottom: 0;
}
}
video {
display: block;
max-height: calc(100vh - 8.25rem);
margin: auto;
object-fit: contain;
outline: none;
width: 100%;
height: 100%;
background: no-repeat 50% 50%;
background-size: contain;
@media (max-height: 640px) {
max-height: calc(100vh - 10rem);
}
// Disable fullscreen on double tap on mobile devices
.is-touch-env & {
pointer-events: none;
}
}
.play-button {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 3.25rem;
height: 3.25rem;
background-color: rgba(0, 0, 0, 0.5) !important;
z-index: 3;
body:not(.no-page-transitions) & {
transition: opacity 0.3s ease !important;
}
.icon-play {
font-size: 1.75rem;
position: relative;
left: 0.125rem;
}
}
.spinner-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
.buffering {
background: rgba(0, 0, 0, 0.25);
color: #fff;
font-size: 0.75rem;
position: absolute;
left: 0.1875rem;
top: 0.1875rem;
z-index: 1;
padding: 0 0.375rem;
border-radius: 0.75rem;
line-height: 1.125rem;
}
.ProgressSpinner {
cursor: var(--custom-cursor, pointer);
}
}
}