Skip to content

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

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

.videoOverlay {
	position: absolute;
	inset: 0;
	display: flex;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	padding: 0;
	outline: none;
	width: 100%;
	height: 100%;
	max-width: 100%;
}

.playButtonWrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	cursor: pointer;
	z-index: 1;
}

.thumbnailPlaceholder {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	max-width: 100%;
	object-fit: contain;
}

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

.metadataProbe {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	clip-path: inset(50%);
	opacity: 0;
	pointer-events: none;
}

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

.blurContent {
	position: relative;
	display: grid;
	user-select: none;
	-webkit-user-select: none;
	overflow: hidden;
	border-radius: var(--media-border-radius, 0px);
}

.blurInner {
	position: relative;
	display: flex;
	height: 100%;
	width: 100%;
	align-items: center;
	justify-content: center;
	background: var(--background-primary);
}

.blurThumbnail {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	object-fit: contain;
}

.mediaContainer {
	display: grid;
	margin: 0;
	user-select: none;
	-webkit-user-select: none;
	overflow: hidden;
	border: 0;
	padding: 0;
	cursor: pointer;
	border-radius: var(--media-border-radius, 0px);
}

.mobileContainer {
	position: relative;
	height: 100%;
	width: 100%;
	background: #000;
	border-radius: var(--media-border-radius, 0px);
	overflow: hidden;
}

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

.videoPlayerBlock {
	display: block;
	width: 100%;
	border-radius: var(--media-border-radius, 0px);
	overflow: hidden;
}

.videoPlayerFill {
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.inlineVideo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: #000;
}

.inlineMuteButton {
	position: absolute;
	bottom: 0.5rem;
	inset-inline-start: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: none;
	border-radius: var(--radius-full);
	background-color: rgba(0, 0, 0, 0.6);
	color: var(--text-on-dark);
	cursor: pointer;
	z-index: 2;
	transition: background-color 150ms ease;
}

.inlineMuteButton:hover {
	background-color: rgba(0, 0, 0, 0.8);
}