Files
element-call/src/room/InCallView.module.css
T

181 lines
2.9 KiB
CSS
Raw Normal View History

2022-01-05 15:06:51 -08:00
/*
Copyright 2021-2024 New Vector Ltd.
2022-01-05 15:06:51 -08:00
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
2022-01-05 15:06:51 -08:00
*/
.inRoom {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
overflow-x: hidden;
2024-05-02 18:44:36 -04:00
overflow-y: auto;
2022-01-05 15:06:51 -08:00
}
2024-05-02 18:44:36 -04:00
.header {
position: sticky;
2024-08-01 16:25:33 -04:00
flex-shrink: 0;
2024-05-02 18:44:36 -04:00
inset-block-start: 0;
2025-06-26 05:08:57 -04:00
z-index: var(--call-view-header-footer-layer);
2024-05-02 18:44:36 -04:00
background: linear-gradient(
0deg,
rgba(0, 0, 0, 0) 0%,
var(--cpd-color-bg-canvas-default) 100%
);
}
2024-08-01 16:25:33 -04:00
.header.filler {
block-size: var(--cpd-space-6x);
background: none;
}
2022-01-05 15:06:51 -08:00
.footer {
position: sticky;
inset-block-end: 0;
2025-06-26 05:08:57 -04:00
z-index: var(--call-view-header-footer-layer);
display: grid;
2024-12-02 12:10:20 +01:00
grid-template-columns:
minmax(0, var(--inline-content-inset))
1fr auto 1fr minmax(0, var(--inline-content-inset));
grid-template-areas: ". logo buttons layout .";
2022-01-05 15:06:51 -08:00
align-items: center;
gap: var(--cpd-space-3x);
padding-block: var(--cpd-space-10x);
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0) 0%,
var(--cpd-color-bg-canvas-default) 100%
);
2022-01-05 15:06:51 -08:00
}
.footer.hidden {
display: none;
}
2024-08-08 17:21:47 -04:00
.footer.overlay {
position: absolute;
inset-block-end: 0;
inset-inline: 0;
opacity: 1;
transition: opacity 0.15s;
}
.footer.overlay.hidden {
display: grid;
2024-08-08 17:21:47 -04:00
opacity: 0;
}
.footer.overlay:has(:focus-visible) {
opacity: 1;
pointer-events: initial;
}
.logo {
grid-area: logo;
justify-self: start;
display: flex;
align-items: center;
gap: var(--cpd-space-2x);
padding-inline-start: var(--cpd-space-1x);
}
.buttons {
grid-area: buttons;
justify-self: center;
display: flex;
gap: var(--cpd-space-3x);
}
.layout {
grid-area: layout;
justify-self: end;
2022-08-07 19:09:45 +02:00
}
2024-11-11 11:04:49 -05:00
@media (max-width: 660px) {
.footer {
grid-template-areas: ". buttons buttons buttons .";
}
.logo {
display: none;
}
.layout {
display: none !important;
}
}
@media (max-width: 370px) {
.raiseHand {
display: none;
}
}
@media (max-width: 340px) {
.invite,
.shareScreen {
display: none;
}
@media (max-height: 400px) {
.footer {
display: none;
}
}
}
@media (max-height: 400px) {
.footer {
padding-block: var(--cpd-space-4x);
}
}
@media (max-height: 800px) {
.footer {
padding-block: var(--cpd-space-8x);
}
2023-09-18 15:45:48 -04:00
}
2023-09-18 15:45:48 -04:00
@media (min-width: 800px) {
.buttons {
gap: var(--cpd-space-4x);
2022-01-05 15:06:51 -08:00
}
}
2024-05-02 18:44:36 -04:00
.fixedGrid {
position: absolute;
2024-05-17 16:38:00 -04:00
inline-size: 100%;
2024-05-02 18:44:36 -04:00
align-self: center;
}
.scrollingGrid {
position: relative;
flex-grow: 1;
2024-05-17 16:38:00 -04:00
inline-size: 100%;
2024-05-02 18:44:36 -04:00
align-self: center;
}
.fixedGrid,
.scrollingGrid {
/* Disable pointer events so the overlay doesn't block interaction with
elements behind it */
pointer-events: none;
}
.fixedGrid > :not(:first-child),
.scrollingGrid > :not(:first-child) {
pointer-events: initial;
}
.tile {
position: absolute;
inset-block-start: 0;
}
.tile.maximised {
position: relative;
flex-grow: 1;
2024-11-11 12:09:26 +00:00
}