Skip to content

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

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

.container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	background-color: var(--background-secondary);
	border: 0.0625rem solid var(--background-modifier-accent);
	border-radius: var(--radius-lg, 0.5rem);
}

.fileName {
	margin: 0 0 1.5rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
	word-break: break-word;
}

.progressSection {
	width: 100%;
	margin-bottom: 1rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
}

.progressBar {
	min-width: 0;
}

.timeDisplay {
	font-family: var(--font-mono, monospace);
	font-size: 0.75rem;
	color: var(--text-secondary);
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	min-width: 5.5rem;
	text-align: end;
}

.controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	width: 100%;
}

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

.playButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: none;
	background-color: var(--brand-primary);
	border-radius: 50%;
	color: var(--text-on-brand-primary);
	cursor: pointer;
	transition:
		background-color 150ms ease,
		transform 150ms ease;
}

.playButton:hover {
	background-color: var(--brand-primary-light);
	color: var(--text-on-brand-primary-light);
}

.playButton:active {
	transform: translateY(0.0625rem);
}

.seekButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	border-radius: 50%;
	transition:
		background-color 150ms ease,
		opacity 150ms ease;
}

.seekButton:hover {
	color: var(--text-primary);
	background-color: var(--background-modifier-hover);
}

.seekButton:active {
	opacity: 0.8;
}

.secondaryControls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	width: 100%;
	justify-content: center;
}

.volumeControl {
	color: var(--text-secondary);
}

.playbackRate {
	color: var(--text-secondary);
}

.mobile .container {
	padding: 1.5rem 1rem;
}

.mobile .playButton {
	width: 3.5rem;
	height: 3.5rem;
}

.mobile .seekButton {
	width: 2.75rem;
	height: 2.75rem;
}