Skip to content

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

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

.userProfile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.375rem 0.5rem;
	border: 0.0625rem solid transparent;
	border-radius: var(--settings-control-radius, 0.5rem);
	margin-bottom: 0.5rem;
	min-width: 0;
	background: var(--settings-surface-background, var(--form-surface-background));
	color: inherit;
	text-align: start;
	cursor: pointer;
	box-sizing: border-box;
	transition: none;
}

.userProfile:not(.userProfileSelected):hover {
	background: var(--settings-hover-background, var(--surface-interactive-hover-bg));
	color: var(--text-primary);
}

.userProfileSelected {
	background: var(--settings-sidebar-selected-background, var(--surface-interactive-selected-bg));
	color: var(--settings-selected-color, var(--text-primary));
}

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

.userProfileText {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	flex: 1 1 0;
	min-width: 0;
	margin-inline-end: 0.5rem;
}

.userProfileName {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.25rem;
	color: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.userProfileHint {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	color: var(--text-tertiary);
}

.userProfile:hover .userProfileHint,
.userProfileSelected .userProfileHint {
	color: var(--text-secondary);
}

.userProfileHintIcon {
	flex-shrink: 0;
}

.userProfileHintText {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.mobileWrapper {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--background-secondary);
	display: flex;
	flex-direction: column;
}

.mobileHeaderContainer {
	position: relative;
	flex-shrink: 0;
	z-index: 10;
	background: var(--background-primary);
}

.mobileHeaderContent {
	width: 100%;
}

.mobileContentContainer {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
}

.mobileContentPane {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--background-secondary);
	contain: layout style paint;
}

.mobileContentScroller {
	flex: 1;
	min-height: 0;
}

.mobileContentInner {
	width: 100%;
	max-width: 43.5rem;
	margin: 0 auto;
	padding: 1rem;
	padding-bottom: calc(1rem + env(safe-area-inset-bottom, 1.25rem));
}