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 */

.card {
	display: flex;
	flex-direction: column;
	gap: var(--active-now-card-gap);
	padding: var(--active-now-card-padding-block) var(--active-now-card-padding-inline);
	border-radius: var(--active-now-card-radius);
	background-color: var(--background-secondary);
	border: 0.0625rem solid var(--border-color, rgba(255, 255, 255, 0.04));
	width: 100%;
	align-self: stretch;
	box-shadow: var(--active-now-card-shadow);
}

.headerContextGroup {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.headerRow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.headerLeft {
	display: flex;
	align-items: center;
	gap: var(--active-now-context-gap);
	min-width: 0;
	flex: 1;
}

.activityLabel {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.streamingLabel {
	color: var(--status-danger);
}

.contextButton {
	display: flex;
	align-items: center;
	gap: var(--active-now-context-gap);
	min-width: 0;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	text-align: start;
	outline: none;
}

.contextButton:hover .contextChannelName {
	color: var(--text-primary);
}

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

.actionIcon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: currentColor;
}

.contextGuildIcon {
	border-radius: 50%;
	flex-shrink: 0;
}

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

.contextChannelName {
	font-size: 0.8125rem;
	color: var(--text-primary-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.contextDmAvatar {
	flex-shrink: 0;
}

.participantsRow {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: visible;
}

.previewContainer {
	width: 100%;
	border-radius: var(--radius-sm, 0.25rem);
	overflow: hidden;
	position: relative;
	aspect-ratio: 16 / 9;
	height: auto;
	background-color: var(--background-tertiary);
	cursor: pointer;
}

.previewSubmitting {
	opacity: 0.6;
	pointer-events: none;
}

.previewContainer:hover .previewHoverOverlay {
	background-color: var(--voice-overlay, rgba(0, 0, 0, 0.55));
	opacity: 1;
}

.previewImage {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.6);
}

.previewFallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-primary-muted);
	font-size: 0.8rem;
}

.previewHoverOverlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0);
	opacity: 0;
	transition:
		opacity 0.15s ease,
		background-color 0.15s ease;
	pointer-events: none;
	z-index: 1;
}

.previewHoverText {
	color: var(--voice-text-strong, #fff);
	font-size: 0.8rem;
	font-weight: 600;
	text-shadow: 0 0.0625rem 0.1875rem var(--voice-shadow-strong, rgba(0, 0, 0, 0.4));
}

.actionRow {
	display: flex;
}

.actionButton {
	width: 100%;
	justify-content: center;
}