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 {
position: fixed;
top: 0;
left: 0;
z-index: calc(var(--z-index-modal) - 2);
width: 20rem;
aspect-ratio: 16 / 9;
border-radius: 0.75rem;
overflow: hidden;
box-shadow:
0 0.5rem 2rem var(--voice-shadow-strong),
0 0.125rem 0.5rem var(--voice-shadow-soft);
cursor: grab;
pointer-events: auto;
user-select: none;
touch-action: none;
background-color: var(--voice-surface-2, var(--background-secondary-alt));
will-change: transform;
contain: layout style;
}
.container:active {
cursor: grabbing;
}
.container[data-resize-edge] {
--floating-pane-grip-opacity: 1;
}
.container[data-resize-edge='top'],
.container[data-resize-edge='bottom'] {
cursor: ns-resize;
}
.container[data-resize-edge='left'],
.container[data-resize-edge='right'] {
cursor: ew-resize;
}
.container[data-resize-edge='top-left'],
.container[data-resize-edge='bottom-right'] {
cursor: nwse-resize;
}
.container[data-resize-edge='top-right'],
.container[data-resize-edge='bottom-left'] {
cursor: nesw-resize;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.container:hover {
--floating-pane-grip-opacity: 1;
}
@media (hover: none) {
.container {
--floating-pane-grip-opacity: 1;
}
}
.hoverOverlay {
position: absolute;
inset: 0;
z-index: 30;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.container:hover
.hoverOverlay {
opacity: 1;
}
.containerInteractionActive .hoverOverlay {
opacity: 1;
}
.headerGradient {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3rem;
background: linear-gradient(to bottom, var(--voice-overlay-strong) 0%, transparent 100%);
display: flex;
align-items: flex-start;
padding: 0.5rem 1.25rem;
pointer-events: auto;
}
.headerContent {
display: flex;
align-items: center;
justify-content: space-between;
min-width: 0;
width: 100%;
}
.headerLeft {
display: flex;
align-items: center;
flex: 1 1 0;
min-width: 0;
}
.returnToCallButton {
display: inline-flex;
align-items: center;
gap: 0.375rem;
min-width: 0;
max-width: 100%;
color: var(--voice-text-strong);
cursor: pointer;
background: none;
border: none;
padding: 0;
border-bottom: 0.0625rem solid transparent;
transition: border-color 150ms;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.returnToCallButton:hover {
border-bottom-color: currentColor;
}
.returnToCallIcon {
width: 0.875rem;
height: 0.875rem;
flex-shrink: 0;
}
.returnToCallLabel {
font-size: 0.8125rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
}
.footerGradient {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3rem;
background: linear-gradient(to top, var(--voice-overlay-strong) 0%, transparent 100%);
display: flex;
align-items: flex-end;
padding: 0.5rem 1.25rem;
pointer-events: auto;
}
.footerContent {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
min-width: 0;
gap: 0.5rem;
}
.footerLeft {
display: flex;
align-items: center;
min-width: 0;
flex: 1 1 0;
}
.streamerName {
font-size: 0.75rem;
font-weight: 500;
color: var(--voice-text-strong);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.footerRight {
display: flex;
align-items: center;
gap: 0.375rem;
flex-shrink: 0;
}
.spectatorBadge {
display: flex;
align-items: center;
gap: 0.1875rem;
color: var(--voice-text-muted);
font-size: 0.75rem;
font-weight: 500;
}
.spectatorIcon {
width: 0.875rem;
height: 0.875rem;
}
.actionButton {
display: flex;
align-items: center;
justify-content: center;
width: 1.75rem;
height: 1.75rem;
border-radius: 0.375rem;
cursor: pointer;
transition: background-color 150ms;
color: var(--voice-text-strong);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.actionButton:hover {
background-color: var(--voice-overlay-light);
}
.disconnectButton {
color: var(--voice-text-strong);
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
.disconnectButton:hover {
background-color: var(--voice-overlay-light);
}
.actionIcon {
width: 1rem;
height: 1rem;
}