Skip to content

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

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

.container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 100%;
	font-size: 0.875rem;
}

.right {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	flex-direction: column;
}

.rightScroller {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 1rem;
	padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
	.rightScroller {
		padding-top: 1.25rem;
	}
}

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

@media (min-width: 640px) {
	.sectionRow {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.sectionRow > button,
	.sectionRow > :last-child:not(.sectionHeader) {
		flex-shrink: 0;
	}
}

.sectionTitle {
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	margin-bottom: 0.25rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.subtleText {
	color: var(--text-primary-muted);
	font-size: 0.8125rem;
}

.sectionHeader {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.sectionSubtitle {
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 1rem 0 0.625rem 0;
	color: var(--text-tertiary);
}

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

@media (min-width: 640px) {
	.displayRow {
		flex-direction: row;
		align-items: flex-start;
	}
}

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

.colorField {
	flex: 0 0 auto;
	min-width: 12.5rem;
}

.settingsGroup {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0.75rem 0;
}

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

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

.permCategories {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	margin-top: 1rem;
}

.permHeaderRow {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.permHelp {
	color: var(--text-primary-muted);
	font-size: 0.8125rem;
	flex: 1;
}

.emptyState {
	padding: 1rem 0;
	text-align: center;
	color: var(--text-primary-muted);
	font-size: 0.875rem;
}

.itemWrap {
	position: relative;
}

.roleButton {
	min-height: 2rem;
}

.dragging {
	opacity: 0.5;
}

.noDrag {
	cursor: default;
}

.lockIcon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: var(--text-primary-muted);
}

.leftTitle {
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--text-tertiary);
}

.overwriteItem {
	position: relative;
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.5rem;
	border-radius: 0.25rem;
	padding: 0.375rem 0.5rem;
	text-align: start;
	cursor: pointer;
	background: transparent;
}

.overwriteItem:not(.overwriteItemSelected):hover,
.overwriteItem:not(.overwriteItemSelected).overwriteItemHovered {
	background: var(--background-modifier-hover);
}

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

.overwriteItemSelected .lockIcon {
	color: inherit;
}

.roleDot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 624.9375rem;
	flex-shrink: 0;
}

.roleIconSlot {
	display: flex;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.overwriteName {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	line-height: 1.2;
	max-height: 1.2em;
}

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

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

.mobileListTitle {
	font-weight: 600;
	font-size: 1rem;
	color: var(--text-primary);
}

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

.mobileRoleItem {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 0.75rem;
	border-radius: 0.375rem;
	background: var(--background-secondary);
	cursor: pointer;
	transition: background-color 150ms ease;
}

.mobileRoleItem:hover {
	background: var(--background-modifier-hover);
}

.mobileRoleName {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	text-align: start;
	line-height: 1.2;
	max-height: 1.2em;
}

.mobileRoleChevron {
	flex-shrink: 0;
	color: var(--text-primary-muted);
}

.mobileBackRow {
	margin-bottom: 0.5rem;
}