Skip to content

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

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

.option {
	display: flex;
	width: 100%;
	height: 2.25rem;
	align-items: center;
	border: none;
	background: transparent;
	text-align: start;
	border-radius: var(--radius-sm);
	padding: 0 0.5rem;
	cursor: pointer;
	color: var(--qs-text-primary, var(--text-primary));
}

.optionActive {
	background-color: var(--qs-row-hover, var(--background-modifier-accent));
}

:global(html.theme-light) .optionActive {
	background-color: var(--qs-row-hover-light, var(--background-modifier-hover));
}

.option + .option {
	margin-top: 0.125rem;
}

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

.optionText {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}

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

.optionMention {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.optionTitle {
	font-weight: var(--qs-title-weight, 600);
	font-size: var(--qs-title-size, 0.8125rem);
	line-height: 1rem;
	color: var(--qs-title-colour, var(--text-secondary));
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex-shrink: 1;
	min-width: 0;
}

.optionHighlight .optionTitle {
	color: var(--qs-title-highlight-colour, var(--text-primary));
	font-weight: 700;
}

.optionDescription {
	font-size: var(--qs-subtext-size, 0.75rem);
	line-height: 1rem;
	color: var(--qs-subtext-colour, var(--text-secondary));
	font-weight: var(--qs-subtext-weight, 400);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex-shrink: 1;
	min-width: 0;
}

.optionCategory {
	font-size: var(--qs-category-size, 0.5625rem);
	font-weight: 600;
	color: var(--qs-subtext-muted-colour, var(--text-tertiary));
}

.optionUserTag {
	font-weight: var(--qs-subtext-light-weight, 300);
	color: var(--qs-subtext-colour, var(--text-secondary));
}

.optionMeta {
	margin-inline-start: auto;
	max-width: 10rem;
	min-width: 0;
	flex: 0 1 10rem;
	text-align: end;
	font-size: var(--qs-meta-size, 0.8125rem);
	line-height: 1rem;
	font-weight: var(--qs-meta-weight, 400);
	color: var(--qs-meta-colour, var(--text-secondary));
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.optionIcon {
	box-sizing: content-box;
	width: 1.25rem;
	height: 1.25rem;
	padding: 0.125rem;
	flex-shrink: 0;
	color: var(--qs-icon-colour, var(--text-secondary));
}

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

.guildIcon {
	height: 1.5rem;
	width: 1.5rem;
	border-radius: 624.9375rem;
	flex-shrink: 0;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.srOnly {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	padding: 0;
	margin: -0.0625rem;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.section {
	padding: 0 var(--spacing-1);
	margin-bottom: 0.25rem;
}

.section:first-child {
	padding-top: var(--spacing-1);
}

.section:last-child {
	margin-bottom: 0;
	padding-bottom: var(--spacing-1);
}

.sectionHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.25rem 0.5rem;
	margin-bottom: 0.125rem;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--text-tertiary);
}

.sectionHeaderAccount {
	justify-content: flex-start;
	gap: 0.5rem;
	padding-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-secondary);
	letter-spacing: normal;
	text-transform: none;
}

.sectionHeaderAccountName {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.optionUnreadDot {
	width: 0.5rem;
	height: 0.5rem;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--text-primary);
}

.modalRoot {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	max-width: 36rem;
	width: 100%;
	min-height: unset;
	box-sizing: border-box;
}

.container {
	--qs-text-primary: var(--text-tertiary);
	--qs-text-secondary: var(--text-primary-muted);
	--qs-text-muted: var(--text-primary-muted);
	--qs-text-subtle: var(--text-primary-muted);
	--qs-title-size: 0.8125rem;
	--qs-title-weight: 600;
	--qs-title-colour: var(--text-secondary);
	--qs-title-highlight-colour: var(--text-primary);
	--qs-subtext-size: 0.75rem;
	--qs-subtext-weight: 400;
	--qs-subtext-light-weight: 300;
	--qs-subtext-colour: var(--qs-text-secondary);
	--qs-subtext-muted-colour: var(--qs-text-muted);
	--qs-category-size: 0.5625rem;
	--qs-meta-size: 0.75rem;
	--qs-meta-weight: 400;
	--qs-meta-colour: var(--qs-text-muted);
	--qs-icon-colour: var(--qs-text-secondary);
	--qs-icon-highlight-colour: var(--qs-title-highlight-colour);
	--qs-row-hover: var(--background-modifier-accent);
	--qs-row-hover-light: var(--background-modifier-hover);
	width: 100%;
	max-width: 36rem;
	overflow: hidden;
	border-radius: 0.75rem;
	border: 0.0625rem solid var(--background-header-secondary);
	background-color: var(--background-secondary);
	box-shadow: var(--shadow-xl);
}

:global(html.theme-coal) .container {
	background-color: var(--background-textarea);
	border-color: var(--background-modifier-accent);
}

.header {
	padding: 0.75rem;
}

.inputBackground {
	background-color: var(--background-primary);
}

:global(html.theme-coal) .inputBackground,
:global(html.theme-light) .inputBackground {
	background-color: var(--background-secondary);
}

.scrollerContainer {
	--scrollbar-track-bg: var(--background-secondary);
	height: 20rem;
	min-height: 20rem;
	max-height: 20rem;
}

:global(html.theme-coal) .scrollerContainer {
	--scrollbar-track-bg: var(--background-textarea);
}

.emptyState {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--qs-text-muted, var(--text-tertiary));
}

.emptyStateTitle {
	font-weight: 500;
}

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

.footer {
	background-color: var(--background-secondary);
	border-top: 0.0625rem solid var(--background-modifier-accent);
	padding: 0.5rem 0.75rem;
	font-size: 0.6875rem;
	color: var(--qs-text-secondary, var(--text-secondary));
}

:global(html.theme-coal) .footer {
	background-color: var(--background-textarea);
	border-top-color: transparent;
}

.footerCode {
	display: inline-flex;
	height: 1.25rem;
	min-width: 1.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.25rem;
	border: 0.0625rem solid var(--background-modifier-accent);
	background-color: var(--background-primary);
	padding-inline-start: 0.25rem;
	padding-inline-end: 0.25rem;
	font-size: 0.6875rem;
	line-height: 1.25rem;
	color: var(--qs-text-primary, var(--text-primary));
}

.optionHighlight {
	color: inherit;
}

.optionHighlight .optionDescription {
	color: var(--qs-title-highlight-colour, var(--text-primary));
}

.optionHighlight .optionCategory {
	color: var(--qs-text-muted, var(--text-primary-muted));
}

.optionHighlight .optionUserTag {
	color: var(--qs-title-highlight-colour, var(--text-primary));
}

.optionHighlight .optionMeta {
	color: var(--qs-text-muted, var(--text-primary-muted));
}

.optionIconHighlight {
	color: var(--qs-icon-highlight-colour, var(--text-primary));
}