Skip to content

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

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

.container {
	position: relative;
	display: flex;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	max-width: calc(100dvw - 1rem);
	max-height: calc(100dvh - 1rem);
	flex-direction: column;
	overflow: hidden;
	border-radius: 0.5rem;
	border: 0.0625rem solid var(--background-modifier-accent);
	background-color: var(--form-surface-background);
}

.body {
	display: flex;
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: row;
}

.sidebar {
	display: flex;
	flex: 0 0 2.875rem;
	width: 2.875rem;
	min-width: 2.875rem;
	padding: var(--spacing-2) 0;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	background-color: var(--form-surface-background);
	box-shadow: inset -0.0625rem 0 0 var(--background-modifier-accent);
}

.sidebarTabList {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: var(--spacing-2);
}

.sidebarFooterActions {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding-top: var(--spacing-2);
}

.sidebarActionButton {
	display: flex;
	width: 1.875rem;
	height: 1.875rem;
	flex: none;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	padding: 0;
	color: var(--text-primary-muted);
	cursor: pointer;
}

:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
	.sidebarActionButton:hover:not(:disabled) {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.sidebarActionButton:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

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

.sidebarTab {
	display: flex;
	width: 1.875rem;
	height: 1.875rem;
	flex: none;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	padding: 0;
	transition:
		color 0.1s ease,
		background-color 0.1s ease;
	cursor: pointer;
}

.tabActive {
	background-color: var(--background-modifier-selected);
	color: var(--text-primary);
}

.tabInactive {
	background-color: transparent;
	color: var(--text-primary-muted);
	box-shadow: none;
}

:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
	.tabInactive:hover {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.content {
	position: relative;
	display: flex;
	min-height: 0;
	flex: 1 1 0%;
	overflow: hidden;
}

.tabContent {
	display: flex;
	flex-direction: column;
	flex: 1 1 0%;
	min-height: 0;
	overflow: hidden;
}

.iconSmall {
	height: 1rem;
	width: 1rem;
}

:global(html.inbox-popout-resizing),
:global(html.inbox-popout-resizing) * {
	cursor: var(--inbox-popout-resize-cursor, nwse-resize) !important;
	user-select: none !important;
	-webkit-user-select: none !important;
}