Skip to content

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

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

.section {
	display: flex;
	flex: 0 1 auto;
	min-height: 0;
	max-height: 45%;
	flex-direction: column;
	border-bottom: 0.0625rem solid var(--background-modifier-accent);
	background-color: var(--form-surface-background);
}

.summary {
	display: flex;
	width: 100%;
	min-height: 3rem;
	flex: none;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0;
	background: transparent;
	color: var(--text-primary);
	text-align: start;
	cursor: pointer;
}

:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
	.summary:hover {
	background-color: var(--background-modifier-hover);
}

.stack {
	display: inline-flex;
	flex: none;
	align-items: center;
}

.stackAvatars {
	--avatar-stack-padding-block-start: 0px;
	--avatar-stack-padding-block-end: 0px;
	--avatar-stack-extra-height: 0px;
	--avatar-stack-outline-color: var(--form-surface-background);
}

.summaryText {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.caret {
	width: 1rem;
	height: 1rem;
	flex: none;
	color: var(--text-primary-muted);
	transition: transform 0.15s ease;
}

.caretCollapsed {
	transform: rotate(-90deg);
}

:global(html.reduced-motion) .caret {
	transition: none;
}

.groups {
	display: flex;
	min-height: 0;
	flex-direction: column;
	gap: 0.25rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 0.5rem 0.5rem;
	scrollbar-width: thin;
}

.group {
	display: flex;
	flex-direction: column;
	padding-top: 0.5rem;
}

.group + .group {
	border-top: 0.0625rem solid var(--background-modifier-accent);
}

.groupHeader {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0 0.25rem 0.375rem;
}

.groupTitle {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	margin: 0;
}

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

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

.rows {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.row {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	border-radius: 0.375rem;
}

:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard)) .row:hover {
	background-color: var(--background-modifier-hover);
}

.rowButton {
	display: flex;
	min-width: 0;
	min-height: 2.5rem;
	flex: 1 1 auto;
	align-items: center;
	gap: 0.625rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.375rem;
	background: transparent;
	color: inherit;
	text-align: start;
	cursor: pointer;
}

.rowText {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
}

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

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

.unreadDot {
	width: 0.5rem;
	height: 0.5rem;
	flex: none;
	margin-inline: 0.25rem;
	border-radius: 50%;
	background-color: var(--text-primary);
}

.iconButton {
	display: flex;
	width: 1.875rem;
	height: 1.875rem;
	flex: none;
	align-items: center;
	justify-content: center;
	margin-inline-end: 0.25rem;
	padding: 0;
	border-radius: 0.375rem;
	color: var(--text-primary-muted);
	cursor: pointer;
}

:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
	.iconButton:hover:not(:disabled) {
	background-color: var(--background-modifier-selected);
	color: var(--text-primary);
}

.iconButton:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.icon {
	width: 1rem;
	height: 1rem;
}

.subheading {
	padding: 0.5rem 0.5rem 0.25rem;
	color: var(--text-tertiary);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
}

.mention {
	display: flex;
	border-radius: 0.375rem;
}

:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
	.mention:hover {
	background-color: var(--background-modifier-hover);
}

.mentionButton {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	align-items: flex-start;
	gap: 0.625rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.375rem;
	background: transparent;
	color: inherit;
	text-align: start;
	cursor: pointer;
}

.mentionBody {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.125rem;
}

.mentionMeta {
	display: flex;
	min-width: 0;
	align-items: baseline;
	gap: 0.5rem;
}

.mentionAuthor {
	flex: none;
	max-width: 60%;
	overflow: hidden;
	color: var(--text-primary);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mentionContext {
	min-width: 0;
	overflow: hidden;
	color: var(--text-tertiary);
	font-size: 0.75rem;
	line-height: 1rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mentionPreview {
	display: -webkit-box;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.8125rem;
	line-height: 1.125rem;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}