Skip to content

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

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

.pageContainer {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	height: 100%;
	min-height: 0;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.headerLeftContent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	color: var(--text-primary);
}

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

.headerLabel {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5rem;
	white-space: nowrap;
}

.content {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
	min-height: 0;
	min-width: 0;
	padding: 1rem 1.25rem;
	box-sizing: border-box;
	overflow: hidden;
	gap: 0.75rem;
}

.toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	min-width: 0;
}

.toolbarLeft {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	min-width: 0;
}

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

.toolbarTitle {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5rem;
	color: var(--text-primary);
	white-space: nowrap;
}

.toolbarRight {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	min-width: 0;
}

.searchInput {
	width: 14rem;
	min-width: 0;
}

.sortButton {
	flex-shrink: 0;
	height: auto;
	min-height: 0;
}

.tableWrapper {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	min-width: 0;
	min-height: 0;
	height: 100%;
	border: 0.0625rem solid var(--background-header-secondary);
	border-radius: 0.5rem;
	background-color: var(--background-secondary-alt);
	overflow: hidden;
}

.tableViewport {
	min-height: 0;
	min-width: 0;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}

.tableSurface {
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr);
	width: 100%;
	min-width: var(--guild-members-min-width);
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
	background-color: var(--background-secondary-alt);
}

.emptyState {
	display: flex;
	min-height: 100%;
	min-width: 0;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	box-sizing: border-box;
}

.emptyStateText {
	margin: 0;
	text-align: center;
	color: var(--text-primary-muted);
}

.tableHead {
	background-color: var(--background-secondary-alt);
}

.tableHeadRow {
	display: grid;
	grid-template-columns: var(--guild-members-columns);
	min-width: 0;
	border-bottom: 0.0625rem solid var(--background-header-secondary);
}

.headerCell {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 0.3125rem 0.875rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--text-tertiary);
	text-align: start;
	white-space: nowrap;
}

.progressSlot {
	height: 0;
	position: relative;
	overflow: hidden;
}

.progressSlotVisible {
	height: 0.125rem;
}

.progressTrack {
	position: absolute;
	inset: 0;
	background: transparent;
	overflow: hidden;
}

.progressBar {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 30%;
	height: 100%;
	background-color: var(--brand-primary-light);
	border-radius: 0.0625rem;
	will-change: transform;
}

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

.thContent {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
	flex-wrap: nowrap;
}

.filterButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.125rem;
	border: none;
	border-radius: 0.25rem;
	background: transparent;
	color: var(--text-tertiary);
	cursor: pointer;
	transition: color 150ms ease;
}

.filterButton:hover,
.filterButton[data-context-menu-open='true'] {
	color: var(--text-primary);
}

.filterButtonActive {
	color: var(--focus-primary);
}

.filterButtonActive:hover,
.filterButtonActive[data-context-menu-open='true'] {
	color: var(--focus-primary);
}

.tableScroller {
	height: 100%;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}

.tableScrollerContent {
	min-height: 100%;
	min-width: 0;
}

.tableBody {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 0;
}

.row {
	display: grid;
	grid-template-columns: var(--guild-members-columns);
	min-width: 0;
	border-bottom: var(--guild-members-table-row-border-width) solid var(--background-header-secondary);
	transition: background-color 0.1s;
	cursor: pointer;
}

.row:last-child {
	border-bottom: none;
}

.row:hover,
.row[data-menu-active],
.row:has(.actionsButton[data-context-menu-open='true']) {
	background-color: var(--background-modifier-hover);
}

.cell {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: var(--guild-members-table-row-min-height);
	padding: 0 0.875rem;
	box-sizing: border-box;
	font-size: 0.875rem;
	color: var(--text-primary);
}

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

.nameColumn,
.dateColumn,
.joinMethodColumn,
.rolesColumn {
	min-width: 0;
}

.actionsColumn {
	justify-content: center;
	padding-inline-start: 0.5rem;
	padding-inline-end: 0.5rem;
}

.nameCell {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-width: 0;
	width: 100%;
	height: 100%;
}

.nameInfo {
	display: flex;
	flex-direction: column;
	gap: 0.0625rem;
	min-width: 0;
}

.nameRow {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
}

.displayName {
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.3;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ownerIcon {
	height: 0.875rem;
	width: 0.875rem;
	flex-shrink: 0;
	color: var(--status-idle);
}

.tag {
	font-size: 0.75rem;
	line-height: 1.25;
	color: var(--text-tertiary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.timestampText {
	display: inline-block;
	max-width: 100%;
	font-size: 0.8125rem;
	color: var(--text-primary-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.125rem 0.5rem;
	border-radius: 62.4375rem;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	background-color: var(--background-secondary);
	color: var(--text-primary-muted);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rolePill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.125rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--text-primary);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

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

.rolesCell {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-wrap: nowrap;
	min-width: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.overflowPill {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	background-color: var(--background-secondary);
	color: var(--text-primary-muted);
	cursor: pointer;
	border: none;
	transition:
		background-color 200ms ease,
		color 200ms ease;
}

.overflowPill:hover,
.overflowPill[data-context-menu-open='true'] {
	background-color: var(--background-secondary-alt);
	color: var(--text-primary);
}

.actionsButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: none;
	border-radius: 50%;
	background-color: var(--background-secondary);
	color: var(--text-tertiary);
	cursor: pointer;
	transition:
		background-color 200ms ease,
		color 200ms ease;
}

.actionsButton:hover {
	background-color: var(--background-secondary-alt);
	color: var(--text-primary);
}

.actionsButton[data-menu-active],
.actionsButton[data-context-menu-open='true'] {
	background-color: var(--background-secondary-alt);
	color: var(--text-primary);
}

.footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.875rem;
	font-size: 0.8125rem;
	color: var(--text-primary-muted);
	flex-shrink: 0;
	border-top: 0.0625rem solid var(--background-header-secondary);
}

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

.footerLabel {
	white-space: nowrap;
}

.pageSizeSelect {
	width: 5.5rem;
	flex-shrink: 0;
}

.paginationBar {
	justify-content: flex-end;
	padding: 0;
}

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

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

.inviterTooltip {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.inviterUser {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.readonlyRoleItem {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

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

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

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