Skip to content

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

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

.gridItem {
	position: relative;
	background-color: var(--background-secondary);
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: inherit;
	line-height: inherit;
	max-width: 100%;
	width: 100%;
	height: auto;
	min-height: 0.0625rem;
	min-width: 0.0625rem;
	overflow: hidden;
	border-radius: var(--media-border-radius);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.clickableButton {
	cursor: pointer;
	height: 100%;
	width: 100%;
	border: 0;
	background-color: transparent;
	padding: 0;
}

.mediaContainer {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.loadingOverlay {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.placeholderImage {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-width: 100%;
	min-height: 100%;
	max-width: 100%;
}

.mediaImage {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-width: 100%;
	min-height: 100%;
	max-width: 100%;
	transition: opacity 0.2s;
	opacity: 1;
}

.mediaBlurred {
	filter: blur(0.75rem);
	opacity: 0.15;
}

.matureOverlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--spoiler-overlay-color);
	backdrop-filter: blur(0.75rem);
	z-index: 3;
	padding: 0.5rem;
	text-align: center;
}

.playButtonOverlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 2;
}

.playButton {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.75);
}

.playButton svg {
	color: var(--text-on-dark);
}

.audioPlaceholder {
	width: 100%;
	height: 100%;
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--background-tertiary) 0%, var(--background-secondary-alt) 100%);
	overflow: hidden;
	position: relative;
}

.audioPlaceholder svg {
	width: 40%;
	height: 40%;
	max-width: 5rem;
	max-height: 5rem;
	opacity: 0.6;
	color: var(--text-tertiary);
	flex-shrink: 0;
}

.gifIndicator {
	position: absolute;
	top: 0.5rem;
	inset-inline-start: 0.5rem;
	z-index: 10;
	border-radius: 0.25rem;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-on-dark);
	line-height: 1;
}