Skip to content

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

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

.headerSearch {
	margin-top: var(--spacing-3);
	width: 100%;
}

.headerSearchInput {
	width: 100%;
	height: 2.75rem;
	background-color: var(--settings-surface-background, var(--form-surface-background));
}

.searchIcon {
	height: 1.25rem;
	width: 1.25rem;
	color: var(--text-secondary);
}

.selectorRoot {
	height: 45rem;
}

.selectorContent {
	display: flex;
	flex-direction: column;
	padding: 0;
}

:global(html.mobile-layout) .selectorRoot {
	height: auto;
}

:global(html.mobile-layout) .selectorContent {
	--selector-modal-content-height: clamp(20rem, 48vh, 23.75rem);
	height: var(--selector-modal-content-height);
	min-height: var(--selector-modal-content-height);
	max-height: var(--selector-modal-content-height);
}

.listContainer {
	position: relative;
	flex: 1;
	min-height: 0;
}

.scroller {
	--scrollbar-track-bg: var(--background-secondary);
	height: 100%;
}

.emptyState {
	display: flex;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 1rem;
	font-weight: 500;
}

.itemList {
	display: flex;
	flex-direction: column;
	gap: 0.0625rem;
	padding: 0 0 1rem;
}

.itemButton {
	position: relative;
	display: flex;
	width: 100%;
	min-width: 0;
	min-height: 2.75rem;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-3);
	border: 0;
	border-radius: 0;
	padding: 0.5rem 1rem;
	background-color: transparent;
	text-align: start;
	cursor: pointer;
	box-sizing: border-box;
	transition: none;
}

.itemButton::before {
	content: '';
	position: absolute;
	inset: 0 var(--spacing-2);
	border-radius: var(--radius-md);
	transition: background-color 0.15s ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.itemButton:hover:not(:disabled)::before {
		background-color: var(--background-modifier-hover);
	}
}

.itemButtonSelected {
	background-color: transparent;
}

.itemButtonSelected::before {
	background-color: var(--background-modifier-hover);
}

.itemButtonDisabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.itemButtonDisabled:hover {
	background-color: transparent;
}

.itemButtonDisabled:hover::before {
	background-color: transparent;
}

.itemContent {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	flex: 1;
	align-items: center;
	gap: var(--spacing-3);
}

.itemInfo {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	justify-content: center;
}

.itemName {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--text-primary);
}

.itemSecondary {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-tertiary);
	font-size: 0.75rem;
}

.itemAction {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	pointer-events: none;
}

.subtitle {
	display: flex;
	align-items: center;
	gap: var(--spacing-1-5);
	margin: -0.625rem 0 0;
	font-size: 0.75rem;
	color: var(--text-secondary);
	line-height: 1.4;
}

.footer {
	padding: var(--spacing-4);
}