Skip to content

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

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

.badge {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	background-color: var(--status-danger);
	text-align: center;
	font-weight: 600;
	color: white;
	pointer-events: none;
	box-shadow:
		0 0.25rem 0.375rem -0.0625rem rgb(0 0 0 / 0.1),
		0 0.125rem 0.25rem -0.125rem rgb(0 0 0 / 0.1);
}

.badgeSmall {
	height: var(--mention-badge-small-size);
	min-width: var(--mention-badge-small-size);
	padding: 0.25rem 0.375rem;
	font-size: 0.6875rem;
}

.badgeMedium {
	height: var(--mention-badge-medium-size);
	min-width: var(--mention-badge-small-size);
	padding: 0.375rem 0.375rem;
	font-size: 0.75rem;
	line-height: 1rem;
}

.animatedWrapper {
	position: relative;
	display: flex;
	pointer-events: none;
	isolation: isolate;
}

.animatedWrapper::before {
	content: '';
	position: absolute;
	inset: -0.1875rem;
	z-index: -1;
	border-radius: calc(var(--radius-md) + 0.1875rem);
	background-color: var(--mention-badge-cutout-surface, transparent);
}