2023-01-04 00:58:38 +08:00
|
|
|
/*
|
2024-09-06 16:22:13 +08:00
|
|
|
Copyright 2022-2024 New Vector Ltd.
|
2023-01-04 00:58:38 +08:00
|
|
|
|
2024-09-06 16:22:13 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
Please see LICENSE in the repository root for full details.
|
2023-01-04 00:58:38 +08:00
|
|
|
*/
|
|
|
|
|
2021-08-20 08:49:45 +08:00
|
|
|
.header {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2021-11-30 08:19:48 +08:00
|
|
|
justify-content: space-between;
|
2021-08-20 08:49:45 +08:00
|
|
|
align-items: center;
|
|
|
|
user-select: none;
|
2021-08-21 07:23:12 +08:00
|
|
|
flex-shrink: 0;
|
2023-09-19 03:45:48 +08:00
|
|
|
padding-inline: var(--inline-content-inset);
|
2021-08-20 08:49:45 +08:00
|
|
|
}
|
|
|
|
|
2021-11-30 08:19:48 +08:00
|
|
|
.nav {
|
|
|
|
display: flex;
|
2021-12-11 02:54:18 +08:00
|
|
|
flex: 1;
|
2021-11-30 08:19:48 +08:00
|
|
|
align-items: center;
|
|
|
|
white-space: nowrap;
|
2023-09-09 03:39:10 +08:00
|
|
|
height: 80px;
|
2021-08-20 08:49:45 +08:00
|
|
|
}
|
|
|
|
|
2021-12-24 06:40:23 +08:00
|
|
|
.headerLogo {
|
2024-02-22 23:15:46 +08:00
|
|
|
color: var(--cpd-color-text-primary);
|
2021-12-24 06:40:23 +08:00
|
|
|
display: none;
|
2021-08-20 08:49:45 +08:00
|
|
|
align-items: center;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2021-12-24 06:40:23 +08:00
|
|
|
.leftNav.hideMobile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-11-30 08:19:48 +08:00
|
|
|
.leftNav > * {
|
|
|
|
margin-right: 12px;
|
2021-08-21 07:23:12 +08:00
|
|
|
}
|
|
|
|
|
2021-12-24 06:40:23 +08:00
|
|
|
.leftNav h3 {
|
2022-01-06 03:52:23 +08:00
|
|
|
margin: 0;
|
2021-12-24 06:40:23 +08:00
|
|
|
}
|
|
|
|
|
2021-12-11 02:54:18 +08:00
|
|
|
.rightNav {
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
2021-11-11 09:03:32 +08:00
|
|
|
.rightNav > * {
|
|
|
|
margin-right: 24px;
|
|
|
|
}
|
|
|
|
|
2022-01-05 08:00:13 +08:00
|
|
|
.rightNav.hideMobile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-11-30 08:19:48 +08:00
|
|
|
.nav > :last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2023-09-09 03:39:10 +08:00
|
|
|
.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-30 08:19:48 +08:00
|
|
|
.roomAvatar {
|
2023-09-09 03:39:10 +08:00
|
|
|
align-self: flex-start;
|
|
|
|
grid-area: avatar;
|
2021-11-30 08:19:48 +08:00
|
|
|
}
|
|
|
|
|
2023-09-09 03:39:10 +08:00
|
|
|
.nameLine {
|
|
|
|
grid-area: name;
|
|
|
|
flex-grow: 1;
|
2024-08-17 03:15:51 +08:00
|
|
|
min-width: 0;
|
2023-09-09 03:39:10 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: var(--cpd-space-1x);
|
2021-11-30 08:19:48 +08:00
|
|
|
}
|
|
|
|
|
2023-09-09 03:39:10 +08:00
|
|
|
.nameLine > h1 {
|
|
|
|
margin: 0;
|
2021-08-21 07:23:12 +08:00
|
|
|
overflow: hidden;
|
2023-09-09 03:39:10 +08:00
|
|
|
text-overflow: ellipsis;
|
2021-08-21 07:23:12 +08:00
|
|
|
}
|
|
|
|
|
2023-09-09 03:39:10 +08:00
|
|
|
.nameLine > svg {
|
|
|
|
flex-shrink: 0;
|
2022-06-10 04:56:58 +08:00
|
|
|
}
|
|
|
|
|
2023-09-09 03:39:10 +08:00
|
|
|
.participantsLine {
|
|
|
|
grid-area: participants;
|
2024-05-31 09:36:50 +08:00
|
|
|
color: var(--cpd-color-text-secondary);
|
2023-09-09 03:39:10 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: var(--cpd-space-1-5x);
|
2022-06-10 04:56:58 +08:00
|
|
|
}
|
|
|
|
|
2021-11-11 09:03:32 +08:00
|
|
|
@media (min-width: 800px) {
|
2021-12-24 06:40:23 +08:00
|
|
|
.headerLogo,
|
2022-01-05 08:00:13 +08:00
|
|
|
.leftNav.hideMobile,
|
|
|
|
.rightNav.hideMobile {
|
2021-12-24 06:40:23 +08:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.leftNav h3 {
|
2022-12-10 03:25:02 +08:00
|
|
|
font-size: var(--font-size-subtitle);
|
2021-12-24 06:40:23 +08:00
|
|
|
}
|
2021-11-11 09:03:32 +08:00
|
|
|
}
|