Files
element-call/src/Header.module.css

119 lines
1.8 KiB
CSS
Raw Normal View History

2023-01-03 16:58:38 +00:00
/*
Copyright 2022-2024 New Vector Ltd.
2023-01-03 16:58:38 +00:00
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
2023-01-03 16:58:38 +00:00
*/
2021-08-19 17:49:45 -07:00
.header {
position: relative;
display: flex;
2021-11-29 16:19:48 -08:00
justify-content: space-between;
2021-08-19 17:49:45 -07:00
align-items: center;
user-select: none;
2021-08-20 16:23:12 -07:00
flex-shrink: 0;
2023-09-18 15:45:48 -04:00
padding-inline: var(--inline-content-inset);
2021-08-19 17:49:45 -07:00
}
2021-11-29 16:19:48 -08:00
.nav {
display: flex;
2021-12-10 10:54:18 -08:00
flex: 1;
2021-11-29 16:19:48 -08:00
align-items: center;
white-space: nowrap;
height: 80px;
2021-08-19 17:49:45 -07:00
}
2021-12-23 14:40:23 -08:00
.headerLogo {
color: var(--cpd-color-text-primary);
2021-12-23 14:40:23 -08:00
display: none;
2021-08-19 17:49:45 -07:00
align-items: center;
text-decoration: none;
}
2021-12-23 14:40:23 -08:00
.leftNav.hideMobile {
display: none;
}
2021-11-29 16:19:48 -08:00
.leftNav > * {
margin-right: 12px;
2021-08-20 16:23:12 -07:00
}
2021-12-23 14:40:23 -08:00
.leftNav h3 {
2022-01-05 11:52:23 -08:00
margin: 0;
2021-12-23 14:40:23 -08:00
}
2021-12-10 10:54:18 -08:00
.rightNav {
justify-content: flex-end;
}
2021-11-10 17:03:32 -08:00
.rightNav > * {
margin-right: 24px;
}
2022-01-04 16:00:13 -08:00
.rightNav.hideMobile {
display: none;
}
2021-11-29 16:19:48 -08:00
.nav > :last-child {
margin-right: 0;
}
.roomHeaderInfo {
display: grid;
column-gap: var(--cpd-space-4x);
grid-template-columns: auto auto;
grid-template-rows: 1fr auto;
}
.roomHeaderInfo[data-size="sm"] {
grid-template-areas: "avatar name" ". participants";
}
.roomHeaderInfo[data-size="lg"] {
grid-template-areas: "avatar name" "avatar participants";
}
2021-11-29 16:19:48 -08:00
.roomAvatar {
align-self: flex-start;
grid-area: avatar;
2021-11-29 16:19:48 -08:00
}
.nameLine {
grid-area: name;
flex-grow: 1;
min-width: 0;
display: flex;
align-items: center;
gap: var(--cpd-space-1x);
2021-11-29 16:19:48 -08:00
}
.nameLine > h1 {
margin: 0;
2021-08-20 16:23:12 -07:00
overflow: hidden;
text-overflow: ellipsis;
2021-08-20 16:23:12 -07:00
}
.nameLine > svg {
flex-shrink: 0;
}
.participantsLine {
grid-area: participants;
color: var(--cpd-color-text-secondary);
display: flex;
align-items: center;
gap: var(--cpd-space-1-5x);
}
2021-11-10 17:03:32 -08:00
@media (min-width: 800px) {
2021-12-23 14:40:23 -08:00
.headerLogo,
2022-01-04 16:00:13 -08:00
.leftNav.hideMobile,
.rightNav.hideMobile {
2021-12-23 14:40:23 -08:00
display: flex;
}
.leftNav h3 {
font-size: var(--font-size-subtitle);
2021-12-23 14:40:23 -08:00
}
2021-11-10 17:03:32 -08:00
}