Skip to content

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

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

.imagePreviewHandler {
	display: block;
	height: 100%;
	width: 100%;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	text-align: start;
	cursor: pointer;
	border-radius: var(--media-border-radius, 0px);
	overflow: hidden;
}

.blurContainer {
	display: flex;
	flex-direction: column;
}

.blurContent {
	position: relative;
	display: flex;
	flex-direction: column;
	cursor: default;
	overflow: hidden;
	border-radius: var(--media-border-radius, 0px);
	border: none;
	background: var(--background-primary);
	padding: 0;
}

.blurInnerContainer {
	position: relative;
	height: 100%;
	width: 100%;
}

.thumbHashPlaceholder {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
	z-index: 0;
}

.mediaContainer {
	display: grid;
	max-width: 100%;
	cursor: pointer;
	border-radius: var(--media-border-radius, 0px);
	border: none;
	background: transparent;
	padding: 0;
}

.videoWrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 0.0625rem;
	min-width: 0;
	overflow: hidden;
}

.videoElement {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	border-radius: var(--media-border-radius, 0px);
	object-fit: contain;
	pointer-events: none;
	position: relative;
	z-index: 1;
}

.placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--media-border-radius, 0px);
	background: var(--background-primary);
	pointer-events: none;
	transition: none;
	z-index: 2;
}

:global(html:not(.reduced-motion)) .placeholder {
	transition: opacity 0.2s ease;
}

:global(html:not(.reduced-motion)) .placeholderFastFade {
	transition: opacity 0.05s ease;
}

.placeholderVisible {
	opacity: 1;
}

.placeholderHidden {
	opacity: 0;
	pointer-events: none;
}