A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
/* SPDX-License-Identifier: AGPL-3.0-or-later */
.container {
--mobile-video-hud-edge: 0.875rem;
--mobile-video-hud-safe-top: calc(var(--mobile-video-hud-edge) + env(safe-area-inset-top, 0px));
--mobile-video-hud-safe-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
--mobile-video-hud-bg: rgb(0 0 0 / 0.58);
--mobile-video-hud-border: rgb(255 255 255 / 0.11);
--mobile-video-hud-button-bg: rgb(255 255 255 / 0.055);
--mobile-video-hud-button-bg-hover: rgb(255 255 255 / 0.13);
--mobile-video-hud-shadow: 0 0.625rem 1.75rem rgb(0 0 0 / 0.42);
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #000;
overflow: hidden;
touch-action: manipulation;
}
.zoomSurface {
width: 100%;
height: 100%;
}
.zoomContent {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.video {
width: 100%;
height: 100%;
object-fit: contain;
backface-visibility: hidden;
}
.seekFeedback {
position: absolute;
top: 50%;
z-index: 3;
display: flex;
align-items: center;
justify-content: center;
min-width: 4.5rem;
height: 3.25rem;
border-radius: 1.125rem;
background-color: rgb(0 0 0 / 0.56);
border: 0.0625rem solid rgb(255 255 255 / 0.12);
box-shadow: var(--mobile-video-hud-shadow);
backdrop-filter: blur(1.75rem);
-webkit-backdrop-filter: blur(1.75rem);
color: #fff;
font-size: 1.125rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
pointer-events: none;
transform: translateY(-50%);
}
.seekFeedbackBackward {
left: max(1.5rem, env(safe-area-inset-left, 0px) + 1.5rem);
}
.seekFeedbackForward {
right: max(1.5rem, env(safe-area-inset-right, 0px) + 1.5rem);
}
.hudOverlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 2;
pointer-events: none;
}
.topBar {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--mobile-video-hud-safe-top) 1rem 0;
pointer-events: auto;
}
.topBarButton {
display: flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border-radius: 0.875rem;
background-color: var(--mobile-video-hud-bg);
border: 0.0625rem solid var(--mobile-video-hud-border);
box-shadow: var(--mobile-video-hud-shadow);
backdrop-filter: blur(2.25rem);
-webkit-backdrop-filter: blur(2.25rem);
color: #fff;
cursor: pointer;
transition: background-color 150ms ease;
}
.topBarButton:hover {
background-color: rgb(255 255 255 / 0.13);
}
.bottomArea {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 0 1rem var(--mobile-video-hud-safe-bottom);
pointer-events: auto;
}
.muteButton {
align-self: flex-end;
display: flex;
align-items: center;
justify-content: center;
width: 2.25rem;
height: 2.25rem;
border-radius: 0.875rem;
background-color: var(--mobile-video-hud-bg);
border: 0.0625rem solid var(--mobile-video-hud-border);
box-shadow: var(--mobile-video-hud-shadow);
backdrop-filter: blur(2.25rem);
-webkit-backdrop-filter: blur(2.25rem);
color: #fff;
cursor: pointer;
transition: background-color 150ms ease;
}
.muteButton:hover {
background-color: rgb(255 255 255 / 0.13);
}
.controlsBar {
display: flex;
align-items: center;
gap: 0.75rem;
background-color: var(--mobile-video-hud-bg);
border: 0.0625rem solid var(--mobile-video-hud-border);
border-radius: 1.125rem;
box-shadow: var(--mobile-video-hud-shadow);
backdrop-filter: blur(2.25rem);
-webkit-backdrop-filter: blur(2.25rem);
padding: 0.5rem 0.75rem;
}
.playPauseButton {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border: none;
border-radius: 0.75rem;
background: var(--mobile-video-hud-button-bg);
color: #fff;
cursor: pointer;
flex-shrink: 0;
}
.playPauseButton:hover {
background: var(--mobile-video-hud-button-bg-hover);
}
.progressBarWrapper {
flex: 1;
display: flex;
align-items: center;
height: 2.125rem;
min-width: 0;
cursor: pointer;
touch-action: none;
-webkit-tap-highlight-color: transparent;
}
.progressTrack {
position: relative;
width: 100%;
height: 0.25rem;
background-color: rgb(255 255 255 / 0.28);
border-radius: 0.125rem;
transition: height 120ms ease;
}
.progressBarWrapper:hover .progressTrack,
.progressBarWrapper:focus-visible .progressTrack,
.progressBarScrubbing .progressTrack {
height: 0.375rem;
}
.progressBuffered,
.progressFill {
position: absolute;
top: 0;
left: 0;
height: 100%;
border-radius: inherit;
will-change: width;
}
.progressBuffered {
background-color: rgb(255 255 255 / 0.38);
}
.progressFill {
background-color: #fff;
transition: width 100ms linear;
}
.progressBarScrubbing .progressFill {
transition: none;
}
.progressThumb {
position: absolute;
top: 50%;
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 0.125rem 0.5rem rgb(0 0 0 / 0.35);
transform: translate(-50%, -50%) scale(0.9);
transition: transform 120ms ease;
pointer-events: none;
will-change: left;
}
.progressBarWrapper:hover .progressThumb,
.progressBarWrapper:focus-visible .progressThumb,
.progressBarScrubbing .progressThumb {
transform: translate(-50%, -50%) scale(1.08);
}
.timeDisplay {
font-size: 0.75rem;
font-weight: 500;
font-variant-numeric: tabular-nums;
color: rgba(255, 255, 255, 0.9);
white-space: nowrap;
flex-shrink: 0;
}