Skip to content

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

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

.header {
	display: none;
	grid-template-columns: 4.5rem minmax(12.5rem, 1fr) minmax(11.25rem, 0.85fr);
	align-items: center;
	gap: 0.75rem;
	padding-block: 0 0.5rem;
	padding-inline: calc(0.75rem + 0.0625rem) 0.75rem;
}

.headerCell:first-child {
	text-align: center;
}

.headerCell:nth-child(2) {
	padding-inline-start: 0.5rem;
}

.headerCell {
	font-weight: 600;
	color: var(--text-primary-muted);
	font-size: 0.75rem;
	text-transform: uppercase;
}

@media (min-width: 640px) {
	.header {
		display: grid;
	}
}

.card {
	position: relative;
	border-radius: 0.375rem;
	border: 0.0625rem solid var(--background-header-secondary);
	background-color: var(--background-secondary);
	padding: 0.75rem;
	transition:
		border-color 150ms ease,
		box-shadow 150ms ease;
}

.card:hover {
	border-color: var(--background-modifier-accent);
	box-shadow: 0 0.625rem 1.5625rem -1.125rem rgb(0 0 0 / 0.4);
}

.cardWrapper {
	position: relative;
	overflow: visible;
}

.gridCardWrapper,
.listCardWrapper {
	position: relative;
	overflow: visible;
}

.deleteButton {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(40%, -40%);
	border-radius: 624.9375rem;
	border: 0.0625rem solid var(--background-header-secondary);
	background-color: var(--background-primary);
	padding: 0.5rem;
	color: var(--text-primary-muted);
	opacity: 0;
	z-index: 2;
	box-shadow:
		0 0.25rem 0.375rem -0.0625rem rgb(0 0 0 / 0.1),
		0 0.125rem 0.25rem -0.125rem rgb(0 0 0 / 0.1);
	transition:
		opacity 150ms,
		background-color 150ms,
		border-color 150ms,
		color 150ms;
	cursor: pointer;
}

.card:hover .deleteButton {
	opacity: 1;
}

.cardWrapper:hover .deleteButton {
	opacity: 1;
}

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

.deleteIcon {
	height: 0.75rem;
	width: 0.75rem;
}

.deleteButtonFloating {
	box-shadow: none;
	border: 0.0625rem solid var(--background-modifier-accent);
	background-color: var(--background-secondary);
	transform: translate(40%, -40%);
}

.listCard {
	display: grid;
	grid-template-columns: 4.5rem minmax(12.5rem, 1fr) minmax(11.25rem, 0.85fr);
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
}

@media (max-width: 640px) {
	.listCard {
		grid-template-columns: 1fr;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

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

.listEmojiImage {
	height: 2.5rem;
	width: 2.5rem;
	object-fit: contain;
	image-rendering: auto;
}

.nameInlineEdit {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

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

.nameInlineEditInput {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
}

.listName {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: start;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.listName .nameInlineEdit {
	justify-content: flex-start;
	text-align: start;
}

.listName .nameInlineEditButton {
	justify-content: flex-start;
	text-align: start;
}

.listName .nameInlineEditInput {
	text-align: start;
}

.nameInlineEdit[data-mode='idle'] .nameInlineEditInput {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.nameInlineEdit[data-mode='editing'] .nameInlineEditInput,
.nameInlineEdit[data-mode='saving'] .nameInlineEditInput {
	text-overflow: clip;
	white-space: normal;
	overflow: visible;
	word-break: break-word;
	max-width: min(22ch, 100%);
}

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

.avatar {
	height: 1.5rem;
	width: 1.5rem;
	flex-shrink: 0;
	border-radius: 624.9375rem;
}

.username {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	line-height: 1.25rem;
	max-height: 1.25rem;
}

.unknownUser {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

.gridCard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	text-align: center;
	width: 100%;
}

.gridEmojiWrapper {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.gridEmojiImage {
	height: 3rem;
	width: 3rem;
	object-fit: contain;
	image-rendering: auto;
}

.gridAvatar {
	position: absolute;
	top: -0.35rem;
	inset-inline-start: -0.35rem;
	height: 1.75rem;
	width: 1.75rem;
	border-radius: 624.9375rem;
	border: 0.125rem solid var(--background-secondary);
	box-shadow:
		0 0.25rem 0.375rem -0.0625rem rgb(0 0 0 / 0.15),
		0 0.125rem 0.25rem -0.125rem rgb(0 0 0 / 0.12);
	background-color: var(--background-secondary);
	object-fit: cover;
}

.gridName {
	width: 100%;
	font-weight: 600;
	display: grid;
	place-items: center;
	text-align: center;
	min-height: 1.5rem;
	min-width: 0;
}

.gridNameText {
	width: 100%;
	max-width: 16ch;
	min-width: 0;
	display: block;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gridNameButton {
	width: 100%;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.15rem 0.25rem;
	border: none;
	background: none;
	color: inherit;
	cursor: pointer;
	text-align: center;
	overflow: hidden;
}

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

.renamePopout {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: 0.5rem;
	background-color: var(--form-surface-background);
	border: 0.0625rem solid var(--background-modifier-accent);
	box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.24);
	min-width: min(17.5rem, 90vw);
}

:global(.theme-light) .renamePopout {
	box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 0.14);
}

.renamePopoutHeader {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.renamePopoutTitle {
	font-weight: 700;
	font-size: 0.95rem;
}

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

.renamePopoutActions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}