Skip to content

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

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

.memberListItem {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	text-align: start;
	transition: background-color 0.15s;
	cursor: pointer;
	background-color: var(--background-secondary-alt);
	border-radius: 0;
}

.memberListItem:active {
	background-color: var(--background-modifier-hover);
}

.memberListItemOffline {
	opacity: 0.3;
}

.memberContent {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	align-items: flex-start;
	justify-content: center;
}

.memberNameRow {
	display: flex;
	min-width: 0;
	width: 100%;
	align-items: center;
}

.memberName {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5rem;
}

.memberCustomStatus {
	font-size: 0.75rem;
	color: var(--text-secondary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.memberListItem:hover .memberCustomStatus,
.memberListItem:active .memberCustomStatus {
	--emoji-show-animated: 1;
}

.crownContainer {
	margin-top: 0.2em;
	margin-inline-start: 0.25rem;
}

.crownIcon {
	height: 0.875rem;
	width: 0.875rem;
	color: hsl(39, 57%, 64%);
}

.memberTag {
	margin-inline-start: 0.25rem;
}

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

.memberGroupHeader {
	margin-bottom: 0.5rem;
	padding-inline-start: 1rem;
	padding-inline-end: 1rem;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary-muted);
}

.memberGroupList {
	overflow: hidden;
	border-radius: 0.75rem;
	background-color: var(--background-secondary-alt);
}

.memberDivider {
	margin-inline-start: 1rem;
	margin-inline-end: 1rem;
	height: 0.0625rem;
	background-color: var(--background-header-secondary);
	opacity: 0.3;
}

.memberListContent {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
}

.memberListFallbackContainer {
	display: flex;
	padding: 1rem;
}

.memberListFallback {
	flex: 1;
}

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

.topicMarkup {
	min-width: 0;
	flex: 1;
	cursor: pointer;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-secondary);
	transition: opacity 0.15s;
}

.topicMarkup:active {
	opacity: 0.7;
}

.topicMarkupCollapsed {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tabBarContainer {
	display: flex;
	border-bottom: 0.125rem solid var(--background-modifier-accent);
}

.tabButton {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-bottom: 0.125rem solid transparent;
	margin-bottom: -0.125rem;
	padding: 0.75rem 1rem;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5rem;
	transition: color 0.15s;
}

.tabButtonActive {
	color: var(--brand-primary-light);
}

:global(.theme-light) .tabButtonActive {
	color: var(--brand-primary-foreground);
}

.tabButtonInactive {
	color: var(--text-tertiary);
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.tabButtonInactive:hover {
		color: var(--text-primary);
	}
}

.tabIcon {
	height: 1.25rem;
	width: 1.25rem;
}

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

.iconMedium {
	height: 1.25rem;
	width: 1.25rem;
}

.iconLarge {
	height: 1.5rem;
	width: 1.5rem;
}

.channelInfoSection {
	position: relative;
	padding: 1rem;
}

.closeButton {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
}

.channelInfoContainer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-inline-end: 2.5rem;
}

.channelAvatar {
	display: flex;
	height: 3rem;
	width: 3rem;
	align-items: center;
	justify-content: center;
	border-radius: 624.9375rem;
	background-color: var(--background-tertiary);
	flex-shrink: 0;
}

.channelInfoContent {
	flex: 1;
	min-width: 0;
}

.channelInfoUserContainer {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	gap: 0.35rem;
}

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

.channelInfoDiscriminator {
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-tertiary);
	flex-shrink: 0;
}

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

.channelInfoSubtitle {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-secondary);
}

.channelInfoTag {
	margin-inline-start: 0.25rem;
}

.channelNameWithIcon {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.channelNameIcon {
	height: 1.125rem;
	width: 1.125rem;
	color: var(--text-tertiary);
	flex-shrink: 0;
}

.topicSectionContainer {
	margin-top: 0.75rem;
}

.topicWrapper {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.topicExpandButton {
	margin-top: 0.125rem;
	flex-shrink: 0;
	transition: opacity 0.15s;
	cursor: pointer;
}

.topicExpandButton:active {
	opacity: 0.7;
}

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

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

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

.dmMembersContainer {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
}

.newGroupButton {
	margin-top: 0.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.75rem;
	border-radius: 0.5rem;
	background-color: var(--background-secondary-alt);
	padding: 0.75rem;
	cursor: pointer;
}

.newGroupIconContainer {
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 624.9375rem;
	background-color: var(--brand-primary);
}

.newGroupIconWhite {
	color: var(--brand-primary-fill);
}

.newGroupContent {
	flex: 1;
	text-align: start;
}

.newGroupTitle {
	font-weight: 500;
	color: var(--text-primary);
}

.newGroupSubtitle {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-tertiary);
}

.memberItemButton {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	text-align: start;
	transition: background-color 0.15s;
	cursor: pointer;
}

.memberItemButton:active {
	background-color: var(--background-modifier-hover);
}

:global(.theme-light) .memberListItem,
:global(.theme-light) .memberItemButton {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

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

.memberItemName {
	flex: 1;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5rem;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.memberItemYou {
	color: var(--text-tertiary);
	font-weight: 400;
}

.memberItemTags {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.125rem;
}

.ownerCrown {
	height: 0.875rem;
	width: 0.875rem;
	color: hsl(39, 57%, 64%);
}

.memberItemDivider {
	margin-inline-start: 1rem;
	margin-inline-end: 1rem;
	height: 0.0625rem;
	background-color: var(--background-header-secondary);
	opacity: 0.3;
}

.muteSheetContainer {
	display: flex;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
}

.muteSheetContent {
	flex: 1;
	padding: 1rem;
	padding-top: 1rem;
}

.muteStatusBanner {
	margin-bottom: 1rem;
	border-radius: 0.5rem;
	background-color: var(--background-secondary-alt);
	padding: 0.75rem;
}

.muteStatusText {
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-secondary);
}

.muteOptionsContainer {
	overflow: hidden;
	border-radius: 0.75rem;
	background-color: var(--background-secondary-alt);
}

.muteOptionButton {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	text-align: start;
	color: var(--text-primary);
	transition: background-color 0.15s;
	cursor: pointer;
}

.muteOptionButton:active {
	background-color: var(--background-modifier-hover);
}

.muteOptionLabel {
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5rem;
}

.muteOptionDivider {
	margin-inline-start: 1rem;
	margin-inline-end: 1rem;
	height: 0.0625rem;
	background-color: var(--background-header-secondary);
	opacity: 0.3;
}

.quickActionsRow {
	padding: 0 1rem 0.75rem;
}

.quickActionsScroll {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.quickActionButton {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	flex: 1;
	min-width: fit-content;
	padding: 0.625rem 0.5rem;
	border-radius: 0.75rem;
	background-color: var(--background-secondary-alt);
	color: var(--text-primary);
	transition:
		background-color 0.15s,
		transform 0.1s;
	cursor: pointer;
}

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

.quickActionButtonPressed {
	background-color: var(--background-modifier-selected);
	transform: translateY(0.0625rem);
}

.quickActionButtonActive {
	background-color: var(--brand-primary);
	color: var(--brand-primary-fill);
}

@media (hover: hover) and (pointer: fine) {
	.quickActionButtonActive:hover {
		background-color: var(--brand-primary-light);
		color: var(--brand-primary-light-fill);
	}
}

.quickActionButtonDanger {
	color: hsl(350, calc(90% * var(--saturation-factor)), 65%);
}

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

.quickActionIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 1.25rem;
	width: 1.25rem;
}

.quickActionLabel {
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1rem;
	text-align: center;
	white-space: nowrap;
}

:global(.theme-light) .quickActionButton {
	background-color: var(--background-modifier-hover);
}

@media (hover: hover) and (pointer: fine) {
	:global(.theme-light) .quickActionButton:hover {
		background-color: var(--background-modifier-selected);
	}
}

.skeletonItem {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
}

.skeletonAvatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	flex-shrink: 0;
}

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

.skeletonName {
	height: 1rem;
	width: 7.5rem;
	border-radius: 0.25rem;
}

.skeletonStatus {
	height: 0.75rem;
	width: 5rem;
	border-radius: 0.25rem;
}

.skeletonHeader {
	width: 6.25rem;
	height: 0.875rem;
	border-radius: 0.25rem;
}

.skeleton {
	background: linear-gradient(
		90deg,
		var(--background-secondary) 25%,
		var(--background-tertiary) 50%,
		var(--background-secondary) 75%
	);
	background-size: 200% 100%;
	animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}