Skip to content

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

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

.container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

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

.sectionTitle {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	max-height: 2.8em;
	color: var(--text-primary);
}

.sectionDescription {
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--text-tertiary);
	margin: 0;
}

.notificationSection {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

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

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

.overridesSection {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.overridesHeader {
	margin-top: 0.5rem;
	display: none;
	grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-tertiary);
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	.overridesHeader {
		display: grid;
	}
}

.overridesHeaderCell {
	text-align: center;
}

.overridesHeaderCellLeft {
	text-align: start;
}

.overridesHeaderCellMute {
	padding-inline-start: 0.5rem;
	text-align: center;
}

.overrideItem {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border-radius: 0.5rem;
	border: 0.0625rem solid var(--background-header-secondary);
	padding: 0.75rem;
	transition: background-color 0.2s;
}

.overrideItem:hover {
	background-color: var(--background-secondary);
}

@media (min-width: 1024px) {
	.overrideItem {
		display: grid;
		grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
		align-items: center;
		gap: 0.5rem;
		min-height: 4rem;
		cursor: pointer;
	}
}

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

@media (min-width: 1024px) {
	.overrideHeader {
		display: contents;
	}
}

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

.channelIcon {
	flex-shrink: 0;
	color: var(--text-tertiary);
}

.channelDetails {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

.channelName {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	max-height: 2.8em;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
}

.categoryName {
	font-size: 0.75rem;
	line-height: 1.4;
	max-height: 2.8em;
	color: var(--text-tertiary);
}

.mobileOverrideOptions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 0.5rem;
	border-top: 0.0625rem solid var(--background-header-secondary);
}

@media (min-width: 1024px) {
	.mobileOverrideOptions {
		display: none;
	}
}

.desktopNotificationOptions {
	display: none;
}

@media (min-width: 1024px) {
	.desktopNotificationOptions {
		display: contents;
	}
}

.checkboxCell {
	display: flex;
	justify-content: center;
	align-items: center;
}

.removeButton {
	display: flex;
	height: 1.5rem;
	width: 1.5rem;
	min-width: 1.5rem;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	box-sizing: border-box;
	border: 0;
	border-radius: 624.9375rem;
	background-color: var(--background-tertiary);
	color: var(--text-tertiary);
	transition:
		background-color 0.2s,
		color 0.2s;
	cursor: pointer;
}

.removeButton:hover {
	background-color: var(--status-danger);
	color: white;
}

@media (min-width: 1024px) {
	.removeButton {
		position: absolute;
		top: 50%;
		inset-inline-end: -0.75rem;
		transform: translateY(-50%);
		background-color: var(--status-danger);
		color: white;
		opacity: 0;
		transition: opacity 0.2s;
	}

	.overrideItem:hover .removeButton {
		opacity: 1;
	}

	.removeButton:hover {
		opacity: 0.8;
	}
}

.iconTertiary {
	color: var(--text-tertiary);
}