Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
4.0 KB
Raw Blame
/* SPDX-License-Identifier: AGPL-3.0-or-later */

.emptyState {
	display: flex;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.emptyStateIcon {
	margin-bottom: 1rem;
	height: 4rem;
	width: 4rem;
	color: var(--text-tertiary);
}

.emptyStateTitle {
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.75rem;
	color: var(--text-primary);
}

.emptyStateDescription {
	max-width: 28rem;
	color: var(--text-tertiary);
}

.callParticipantsRow {
	--call-participant-avatar-size: 4rem;
	--call-participant-gap: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	justify-content: center;
	gap: var(--call-participant-gap);
	width: 100%;
	height: 100%;
	padding: 0;
	min-height: 6rem;
	max-height: 100%;
	overflow: visible;
	background: transparent;
}

.compactCallParticipantsRow {
	width: min(100%, 42rem);
	height: 100%;
	min-height: 0;
	max-height: none;
	overflow: visible;
}

.callParticipant {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--call-participant-avatar-size);
	height: var(--call-participant-avatar-size);
	flex: 0 0 var(--call-participant-avatar-size);
	padding: 0;
	border: none;
	border-radius: 624.9375rem;
	background: transparent;
	color: var(--voice-text-strong);
	cursor: context-menu;
	overflow: visible;
}

.callParticipantAvatar {
	position: relative;
	z-index: 2;
	border-radius: 624.9375rem;
	transition: filter 220ms ease;
}

.callParticipantRinging .callParticipantAvatar {
	filter: brightness(0.55) saturate(0.85);
	animation: call-participant-ring-pulse var(--call-participant-ring-pulse-duration, 2.2s) ease-in-out infinite;
	box-shadow:
		0 0 0 0 transparent,
		0 0 0 transparent;
}

@keyframes call-participant-ring-pulse {
	0%,
	100% {
		box-shadow:
			0 0 0 0 rgba(255, 255, 255, 0.5),
			0 0 1.25rem rgba(255, 255, 255, 0.18);
	}
	50% {
		box-shadow:
			0 0 0 var(--call-participant-ring-pulse-spread, 0.75rem) rgba(255, 255, 255, 0),
			0 0 1.875rem rgba(255, 255, 255, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.callParticipantRinging .callParticipantAvatar {
		animation: none;
	}
}

.callBanner {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--voice-surface-0);
	border-bottom: none;
	min-height: 0;
	color: var(--voice-text-strong);
}

.callBannerBody {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
}

.callBannerResizable {
	height: 100%;
	min-height: 0;
}

.callBannerResizable .callControlBarSection {
	padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.callControlBarSection {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 0 1rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
	z-index: 2;
	pointer-events: none;
}

.callControlBarInner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	justify-content: center;
	pointer-events: auto;
}

.callControls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.callBannerMobile {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0 1rem 1rem;
	background-color: var(--voice-surface-0);
	border-bottom: none;
	color: var(--voice-text-strong);
}

.callBannerMobileLabel {
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
}

.callControlsMobile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.compactCallResizeHandle {
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 0;
	height: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: ns-resize;
	z-index: 2;
	touch-action: none;
}

.compactCallResizePill {
	width: 2.25rem;
	height: 0.25rem;
	border-radius: 624.9375rem;
	background-color: var(--voice-overlay-light-strong);
	transition: opacity 150ms ease;
}

.compactCallResizeHandle:hover .compactCallResizePill {
	opacity: 1;
}