Skip to content

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

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

.overlay {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--voice-surface-1, #151517);
	border-radius: inherit;
	overflow: hidden;
}

.overlayCall {
	background-color: #000;
}

.overlay[data-transition='enter'] {
	animation: popped-out-overlay-in 240ms cubic-bezier(0.2, 0, 0, 1) both;
}

.overlay[data-transition='exit'] {
	animation: popped-out-overlay-out 200ms cubic-bezier(0.2, 0, 0, 1) both;
	pointer-events: none;
}

.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-3);
	padding: var(--spacing-4);
	text-align: center;
	color: #fff;
}

.overlay[data-transition='enter'] .content {
	animation: popped-out-content-in 280ms cubic-bezier(0.2, 0, 0, 1) both;
}

.overlayCompact .content {
	gap: var(--spacing-2);
	padding: var(--spacing-3);
}

.icon {
	color: rgb(255 255 255 / 72%);
}

.message {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #fff;
}

.overlayCompact .message {
	font-size: 0.8125rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-2);
	margin-top: var(--spacing-1);
}

@container (max-height: 150px) {
	.icon {
		display: none;
	}
}

@container (max-width: 240px) or (max-height: 110px) {
	.message {
		display: none;
	}
}

@container (max-width: 150px) or (max-height: 80px) {
	.actions {
		display: none;
	}

	.icon {
		display: block;
	}
}

@keyframes popped-out-overlay-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes popped-out-overlay-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes popped-out-content-in {
	from {
		opacity: 0;
		transform: translateY(0.375rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}