Skip to content

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

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

.container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.variantEmbedded .friendItem:active {
	background-color: var(--background-secondary-alt);
}

.scroller {
	flex: 1;
	min-height: 0;
}

.scrollContent {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: var(--quick-switcher-scroll-padding-bottom, 0.5rem);
}

.section {
	display: flex;
	flex-direction: column;
}

.sectionHeader {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-primary-muted);
	margin-bottom: 0.35rem;
}

.sectionList {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.friendItemWrapper {
	width: 100%;
}

.friendItem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	border: none;
	background-color: var(--background-secondary-alt);
	color: var(--text-primary);
	border-radius: var(--radius-lg);
	padding: 0.75rem 1rem;
	cursor: pointer;
	text-align: start;
	transition: background-color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
	.friendItem:hover {
		background-color: var(--background-modifier-hover);
	}
}

.friendItem:active {
	background-color: var(--background-modifier-selected);
}

.friendItemContent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
}

.avatar {
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
}

.friendItemText {
	display: flex;
	flex-direction: column;
	gap: 0.0625rem;
	flex: 1;
	min-width: 0;
}

.friendItemName {
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.125rem;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.friendItemStatus {
	font-size: 0.8125rem;
	line-height: 1rem;
	color: color-mix(in srgb, var(--text-primary-muted) 80%, transparent);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.friendItemCaret {
	height: 1rem;
	width: 1rem;
	flex-shrink: 0;
	color: var(--text-primary-muted);
}

.emptyState {
	padding: 2rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-tertiary);
}

.emptyStateTitle {
	font-weight: 500;
}

.emptyStateHint {
	margin-top: 0.25rem;
	color: var(--text-primary-muted);
	font-size: 0.75rem;
	line-height: 1rem;
}