2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket 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.
|
|
|
|
*/
|
|
|
|
|
2023-05-16 18:12:45 +08:00
|
|
|
:root {
|
|
|
|
--RoomHeader-indicator-dot-size: 8px;
|
|
|
|
--RoomHeader-indicator-dot-offset: -3px;
|
|
|
|
--RoomHeader-indicator-pulseColor: $alert;
|
|
|
|
}
|
|
|
|
|
2018-10-30 20:25:06 +08:00
|
|
|
.mx_RoomHeader {
|
2020-07-14 06:12:33 +08:00
|
|
|
flex: 0 0 50px;
|
2018-10-30 20:25:06 +08:00
|
|
|
border-bottom: 1px solid $primary-hairline-color;
|
2021-08-12 18:01:55 +08:00
|
|
|
background-color: $background;
|
2019-11-22 01:17:55 +08:00
|
|
|
|
2022-10-07 10:27:28 +08:00
|
|
|
.mx_RoomHeader_icon {
|
2020-07-14 06:56:25 +08:00
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
|
2022-10-07 10:27:28 +08:00
|
|
|
&.mx_RoomHeader_icon_video {
|
|
|
|
height: 14px;
|
|
|
|
width: 14px;
|
|
|
|
background-color: $secondary-content;
|
|
|
|
mask-image: url("$(res)/img/element-icons/call/video-call.svg");
|
|
|
|
mask-size: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_E2EIcon {
|
2020-07-14 06:56:25 +08:00
|
|
|
margin: 0;
|
2022-10-07 10:27:28 +08:00
|
|
|
height: 100%; /* To give the tooltip room to breathe */
|
2020-07-14 06:56:25 +08:00
|
|
|
}
|
2019-11-22 01:17:55 +08:00
|
|
|
}
|
2022-10-07 10:27:28 +08:00
|
|
|
|
|
|
|
.mx_CallDuration {
|
|
|
|
margin-top: calc(($font-15px - $font-13px) / 2); /* To align with the name */
|
|
|
|
font-size: $font-13px;
|
|
|
|
}
|
2018-10-30 20:25:06 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomHeader_wrapper {
|
2021-11-15 19:39:25 +08:00
|
|
|
height: 44px;
|
2018-04-12 07:23:35 +08:00
|
|
|
display: flex;
|
2018-10-23 22:57:56 +08:00
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
2021-11-15 19:39:25 +08:00
|
|
|
margin: 0 20px 0 16px;
|
2022-10-07 10:27:28 +08:00
|
|
|
padding-top: 6px;
|
2023-07-13 01:46:49 +08:00
|
|
|
border-bottom: 1px solid $separator;
|
2020-07-14 04:45:48 +08:00
|
|
|
|
|
|
|
.mx_InviteOnlyIcon_large {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-06-10 01:07:59 +08:00
|
|
|
|
|
|
|
.mx_BetaCard_betaPill {
|
|
|
|
margin-right: $spacing-8;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_name {
|
2018-10-23 22:57:56 +08:00
|
|
|
flex: 0 1 auto;
|
2018-04-12 07:23:35 +08:00
|
|
|
overflow: hidden;
|
2021-11-15 19:39:25 +08:00
|
|
|
color: $primary-content;
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-heading-sm-semibold);
|
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-10-07 10:27:28 +08:00
|
|
|
min-height: 24px;
|
|
|
|
align-items: center;
|
2021-11-15 19:39:25 +08:00
|
|
|
border-radius: 6px;
|
2022-10-07 10:27:28 +08:00
|
|
|
margin: 0 3px;
|
2021-11-15 19:39:25 +08:00
|
|
|
padding: 1px 4px;
|
2019-01-15 23:20:04 +08:00
|
|
|
display: flex;
|
2021-11-15 19:39:25 +08:00
|
|
|
user-select: none;
|
2023-05-30 17:23:23 +08:00
|
|
|
cursor: pointer;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2023-01-20 21:45:39 +08:00
|
|
|
&:hover {
|
2021-11-15 19:39:25 +08:00
|
|
|
background-color: $quinary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_nametext {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_chevron {
|
|
|
|
align-self: center;
|
2022-10-07 10:27:28 +08:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2021-11-15 19:39:25 +08:00
|
|
|
mask-position: center;
|
2022-10-07 10:27:28 +08:00
|
|
|
mask-size: 20px;
|
2021-11-15 19:39:25 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
|
|
|
background-color: $tertiary-content;
|
|
|
|
}
|
|
|
|
|
2023-05-30 17:23:23 +08:00
|
|
|
&.mx_RoomHeader_name--textonly {
|
|
|
|
cursor: unset;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 21:53:23 +08:00
|
|
|
&[aria-expanded="true"] {
|
2023-07-13 01:46:49 +08:00
|
|
|
background-color: $separator;
|
2021-11-15 19:39:25 +08:00
|
|
|
|
|
|
|
.mx_RoomHeader_chevron {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_settingsHint {
|
2019-07-10 01:15:10 +08:00
|
|
|
color: $settings-grey-fg-color !important;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_searchStatus {
|
|
|
|
font-weight: normal;
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
2022-05-13 15:55:10 +08:00
|
|
|
.mx_RoomTopic {
|
|
|
|
position: relative;
|
2022-05-16 20:10:00 +08:00
|
|
|
cursor: pointer;
|
2022-05-13 15:55:10 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomHeader_topic {
|
2022-04-20 15:41:27 +08:00
|
|
|
$lines: 2;
|
|
|
|
|
2018-10-23 22:57:56 +08:00
|
|
|
flex: 1;
|
2023-07-13 01:46:49 +08:00
|
|
|
color: $secondary-content;
|
2023-06-29 18:30:25 +08:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
|
|
|
line-height: 1rem;
|
|
|
|
max-height: calc(1rem * $lines);
|
2022-04-20 15:41:27 +08:00
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
overflow: hidden;
|
2022-07-27 21:39:29 +08:00
|
|
|
-webkit-line-clamp: $lines; /* See: https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp */
|
2022-04-20 15:41:27 +08:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
display: -webkit-box;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-06-08 04:20:32 +08:00
|
|
|
.mx_RoomHeader_topic .mx_Emoji {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Undo font size increase to prevent vertical cropping and ensure the same size */
|
|
|
|
/* as in plain text emojis */
|
2022-06-08 04:20:32 +08:00
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_RoomHeader_avatar {
|
2018-05-25 10:17:29 +08:00
|
|
|
flex: 0;
|
2022-10-07 10:27:28 +08:00
|
|
|
margin: 0 7px;
|
2020-01-21 21:33:16 +08:00
|
|
|
position: relative;
|
2023-05-30 17:23:23 +08:00
|
|
|
cursor: pointer;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatar .mx_BaseAvatar_image {
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_button {
|
2023-03-01 20:21:44 +08:00
|
|
|
cursor: pointer;
|
|
|
|
flex: 0 0 auto;
|
2020-07-16 21:38:46 +08:00
|
|
|
margin-left: 1px;
|
|
|
|
margin-right: 1px;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
2023-03-01 20:21:44 +08:00
|
|
|
position: relative;
|
2020-07-16 21:38:46 +08:00
|
|
|
border-radius: 100%;
|
2019-11-01 22:46:30 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2022-07-27 21:39:29 +08:00
|
|
|
top: 4px; /* center with parent of 32px */
|
|
|
|
left: 4px; /* center with parent of 32px */
|
2020-07-16 21:38:46 +08:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2020-07-28 20:19:11 +08:00
|
|
|
background-color: $icon-button-color;
|
2019-11-01 22:46:30 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
2020-07-16 21:38:46 +08:00
|
|
|
|
2023-05-05 21:19:26 +08:00
|
|
|
&:hover {
|
2023-07-13 01:46:49 +08:00
|
|
|
background: $accent-300;
|
2020-07-16 21:38:46 +08:00
|
|
|
|
|
|
|
&::before {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2020-07-16 21:38:46 +08:00
|
|
|
}
|
|
|
|
}
|
2019-02-13 00:42:11 +08:00
|
|
|
}
|
|
|
|
|
2023-05-16 23:42:58 +08:00
|
|
|
.mx_RoomHeader_button_unreadIndicator_bg {
|
|
|
|
position: absolute;
|
|
|
|
right: var(--RoomHeader-indicator-dot-offset);
|
|
|
|
top: var(--RoomHeader-indicator-dot-offset);
|
|
|
|
margin: 4px;
|
|
|
|
width: var(--RoomHeader-indicator-dot-size);
|
|
|
|
height: var(--RoomHeader-indicator-dot-size);
|
|
|
|
border-radius: 50%;
|
|
|
|
transform: scale(1.6);
|
|
|
|
transform-origin: center center;
|
2023-07-13 01:46:49 +08:00
|
|
|
background: $background;
|
2023-05-16 23:42:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_button_unreadIndicator {
|
|
|
|
position: absolute;
|
|
|
|
right: var(--RoomHeader-indicator-dot-offset);
|
|
|
|
top: var(--RoomHeader-indicator-dot-offset);
|
|
|
|
margin: 4px;
|
|
|
|
|
|
|
|
&.mx_Indicator_red {
|
2023-07-13 01:46:49 +08:00
|
|
|
background: $alert;
|
|
|
|
box-shadow: $alert;
|
2023-05-16 23:42:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Indicator_gray {
|
2023-07-13 01:46:49 +08:00
|
|
|
background: $room-icon-unread-color;
|
|
|
|
box-shadow: $room-icon-unread-color;
|
2023-05-16 23:42:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_Indicator_bold {
|
2023-07-13 01:46:49 +08:00
|
|
|
background: $primary-content;
|
|
|
|
box-shadow: $primary-content;
|
2023-05-16 23:42:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_button--unread {
|
|
|
|
&::before {
|
|
|
|
background-color: $room-icon-unread-color !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_button--highlight,
|
|
|
|
.mx_RoomHeader_button:hover {
|
|
|
|
&::before {
|
|
|
|
background-color: $accent !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-01 22:46:30 +08:00
|
|
|
.mx_RoomHeader_forgetButton::before {
|
2020-07-04 00:03:47 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/leave.svg");
|
2019-02-13 00:42:11 +08:00
|
|
|
width: 26px;
|
|
|
|
}
|
|
|
|
|
2020-10-09 15:42:21 +08:00
|
|
|
.mx_RoomHeader_appsButton::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/room/apps.svg");
|
|
|
|
}
|
2022-05-13 15:55:10 +08:00
|
|
|
|
2020-10-09 15:42:21 +08:00
|
|
|
.mx_RoomHeader_appsButton_highlight::before {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2020-10-09 15:42:21 +08:00
|
|
|
}
|
|
|
|
|
2019-11-01 22:46:30 +08:00
|
|
|
.mx_RoomHeader_searchButton::before {
|
2020-07-04 00:03:47 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/search-inset.svg");
|
2019-02-13 00:42:11 +08:00
|
|
|
}
|
|
|
|
|
2022-04-20 23:03:33 +08:00
|
|
|
.mx_RoomHeader_inviteButton::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/room/invite.svg");
|
|
|
|
}
|
|
|
|
|
2021-02-27 04:46:39 +08:00
|
|
|
.mx_RoomHeader_voiceCallButton::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/call/voice-call.svg");
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* The call button SVG is padded slightly differently, so match it up to the size */
|
|
|
|
/* of the other icons */
|
2021-02-27 04:46:39 +08:00
|
|
|
mask-size: 20px;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_videoCallButton::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/call/video-call.svg");
|
|
|
|
}
|
|
|
|
|
2022-10-07 10:27:28 +08:00
|
|
|
.mx_RoomHeader_layoutButton--freedom::before,
|
|
|
|
.mx_RoomHeader_freedomIcon::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/call/freedom.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_layoutButton--spotlight::before,
|
|
|
|
.mx_RoomHeader_spotlightIcon::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/call/spotlight.svg");
|
|
|
|
}
|
|
|
|
|
2023-05-05 21:19:26 +08:00
|
|
|
.mx_RoomHeader_closeButton {
|
|
|
|
&::before {
|
|
|
|
mask-image: url("$(res)/img/cancel.svg");
|
|
|
|
mask-size: 20px;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: unset; /* remove background color on hover */
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $icon-button-color; /* set the default background color */
|
|
|
|
}
|
|
|
|
}
|
2022-10-07 10:27:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_minimiseButton::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/reduce.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_layoutMenu .mx_IconizedContextMenu_icon::before {
|
|
|
|
content: "";
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
display: block;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 20px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background: $primary-content;
|
|
|
|
}
|
|
|
|
|
2020-05-28 01:33:55 +08:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_RoomHeader_wrapper {
|
|
|
|
padding: 0;
|
2021-11-15 19:39:25 +08:00
|
|
|
margin: 0;
|
2020-05-28 01:33:55 +08:00
|
|
|
}
|
2022-05-13 15:55:10 +08:00
|
|
|
|
2020-05-28 01:33:55 +08:00
|
|
|
.mx_RoomHeader {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-01-30 18:18:14 +08:00
|
|
|
}
|