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