Skip to content

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

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

.appList {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.appCard {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	box-sizing: border-box;
	padding: 0.625rem 0.75rem;
	border: 0.0625rem solid var(--background-header-secondary);
	border-radius: 0.5rem;
	background-color: var(--background-secondary);
}

@media (min-width: 640px) {
	.appCard {
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
	}
}

.appCardSelectable {
	cursor: pointer;
}

.appCardSelectable:focus-visible {
	outline: 0.125rem solid var(--focus-primary);
	outline-offset: 0.125rem;
}

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

.appActions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

@media (min-width: 640px) {
	.appActions {
		justify-content: flex-end;
	}
}

.appAvatar {
	display: flex;
	width: 2.25rem;
	height: 2.25rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 624.9375rem;
	background-color: var(--background-tertiary);
	color: var(--text-tertiary);
}

.appAvatarImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

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

.appName {
	min-width: 0;
	color: var(--text-primary);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.125rem;
	overflow-wrap: anywhere;
}

.metaText {
	color: var(--text-primary-muted);
	font-size: 0.71875rem;
	line-height: 1rem;
}

.iconButton,
.revokeButton {
	width: 1.75rem;
	height: 1.75rem;
	min-width: 1.75rem;
	min-height: 1.75rem;
	border-radius: 0.25rem;
	background: transparent !important;
	color: var(--text-tertiary);
}

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

.iconButton:active:not(:disabled) {
	background: var(--background-modifier-selected) !important;
	color: var(--text-primary);
}

.revokeButton:active:not(:disabled) {
	background: var(--background-modifier-selected) !important;
	color: var(--button-danger-fill);
}

.actionIcon {
	height: 0.875rem;
	width: 0.875rem;
}

.selectionHint {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.25rem;
	color: var(--text-primary-muted);
}

.scopeList {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2);
}

.scopeTag {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.125rem;
	padding: var(--spacing-2);
	border: 0.0625rem solid var(--background-modifier-accent);
	border-radius: 0.375rem;
	background: var(--background-secondary);
}

.scopeName {
	color: var(--text-primary);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1rem;
	overflow-wrap: anywhere;
}

.scopeDescription {
	min-width: 0;
	color: var(--text-secondary);
	font-size: 0.75rem;
	line-height: 1rem;
	overflow-wrap: anywhere;
}

.loadingContainer {
	display: flex;
	min-height: 10rem;
	align-items: center;
	justify-content: center;
}