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

119 lines
1.8 KiB
CSS
Raw Normal View History

2023-01-04 00:58:38 +08:00
/*
Copyright 2022-2024 New Vector Ltd.
2023-01-04 00:58:38 +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;
height: 80px;
2021-08-20 08:49:45 +08:00
}
2021-12-24 06:40:23 +08:00
.headerLogo {
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;
}
.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 {
align-self: flex-start;
grid-area: avatar;
2021-11-30 08: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-30 08:19:48 +08:00
}
.nameLine > h1 {
margin: 0;
2021-08-21 07:23:12 +08:00
overflow: hidden;
text-overflow: ellipsis;
2021-08-21 07:23:12 +08: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-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 {
font-size: var(--font-size-subtitle);
2021-12-24 06:40:23 +08:00
}
2021-11-11 09:03:32 +08:00
}