81 lines
1.6 KiB
CSS
81 lines
1.6 KiB
CSS
/*
|
|
Copyright 2022 New Vector Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.preview {
|
|
margin-inline: var(--inline-content-inset);
|
|
min-block-size: 0;
|
|
block-size: 50vh;
|
|
}
|
|
|
|
.preview.content {
|
|
margin-inline: 0;
|
|
}
|
|
|
|
.content {
|
|
position: relative;
|
|
block-size: 100%;
|
|
inline-size: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.content video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
background-color: black;
|
|
transform: scaleX(-1);
|
|
background-color: var(--cpd-color-bg-subtle-primary);
|
|
}
|
|
|
|
.avatarContainer {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: var(--cpd-color-bg-subtle-secondary);
|
|
}
|
|
|
|
.buttonBar {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: calc(30 * var(--cpd-space-1x));
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: var(--cpd-space-4x);
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
var(--cpd-color-bg-canvas-default) 100%
|
|
);
|
|
}
|
|
|
|
.preview.content .buttonBar {
|
|
padding-inline: var(--inline-content-inset);
|
|
}
|
|
|
|
@media (min-aspect-ratio: 1 / 1) {
|
|
.preview video {
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
}
|