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

151 lines
2.7 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
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.
*/
.inRoom {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
overflow-x: hidden;
overflow-y: auto;
2022-01-05 15:06:51 -08:00
}
.header {
position: sticky;
flex-shrink: 0;
inset-block-start: 0;
z-index: 1;
background: linear-gradient(
0deg,
rgba(0, 0, 0, 0) 0%,
var(--cpd-color-bg-canvas-default) 100%
);
}
.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;
z-index: 1;
display: grid;
grid-template-columns: 1fr auto 1fr;
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-4x);
padding-inline: var(--inline-content-inset);
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.overlay {
position: absolute;
inset-block-end: 0;
inset-inline: 0;
opacity: 1;
transition: opacity 0.15s;
}
.footer.overlay.hidden {
opacity: 0;
pointer-events: none;
}
.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;
display: flex;
gap: var(--cpd-space-3x);
}
.layout {
grid-area: layout;
justify-self: end;
}
2023-09-18 15:45:48 -04:00
@media (min-height: 400px) {
.footer {
padding-block: var(--cpd-space-8x);
}
}
2023-09-18 15:45:48 -04:00
@media (min-height: 800px) {
.footer {
padding-block: var(--cpd-space-10x);
}
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
}
}
.fixedGrid {
position: absolute;
2024-05-17 16:38:00 -04:00
inline-size: 100%;
align-self: center;
}
.scrollingGrid {
position: relative;
flex-grow: 1;
2024-05-17 16:38:00 -04:00
inline-size: 100%;
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;
}