mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
916a88712a
This is a design update.
127 lines
2.2 KiB
CSS
127 lines
2.2 KiB
CSS
/*
|
|
Copyright 2022 New Vector Ltd
|
|
|
|
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.
|
|
*/
|
|
|
|
.header {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
user-select: none;
|
|
flex-shrink: 0;
|
|
padding-inline: var(--inline-content-inset);
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
height: 80px;
|
|
}
|
|
|
|
.headerLogo {
|
|
display: none;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.leftNav.hideMobile {
|
|
display: none;
|
|
}
|
|
|
|
.leftNav > * {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.leftNav h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.rightNav {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.rightNav > * {
|
|
margin-right: 24px;
|
|
}
|
|
|
|
.rightNav.hideMobile {
|
|
display: none;
|
|
}
|
|
|
|
.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";
|
|
}
|
|
|
|
.roomAvatar {
|
|
align-self: flex-start;
|
|
grid-area: avatar;
|
|
}
|
|
|
|
.nameLine {
|
|
grid-area: name;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--cpd-space-1x);
|
|
}
|
|
|
|
.nameLine > h1 {
|
|
margin: 0;
|
|
/* XXX I can't actually get this ellipsis overflow to trigger, because
|
|
constraint propagation in a nested flexbox layout is a massive pain */
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.nameLine > svg {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.participantsLine {
|
|
grid-area: participants;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--cpd-space-1-5x);
|
|
}
|
|
|
|
@media (min-width: 800px) {
|
|
.headerLogo,
|
|
.leftNav.hideMobile,
|
|
.rightNav.hideMobile {
|
|
display: flex;
|
|
}
|
|
|
|
.leftNav h3 {
|
|
font-size: var(--font-size-subtitle);
|
|
}
|
|
}
|