2018-04-12 02:23:35 +03: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 15:25:06 +03:00
|
|
|
.mx_RoomHeader {
|
2020-07-14 01:12:33 +03:00
|
|
|
flex: 0 0 50px;
|
2018-10-30 15:25:06 +03:00
|
|
|
border-bottom: 1px solid $primary-hairline-color;
|
2021-08-12 13:01:55 +03:00
|
|
|
background-color: $background;
|
2019-11-21 20:17:55 +03:00
|
|
|
|
2020-07-14 01:56:25 +03:00
|
|
|
.mx_RoomHeader_e2eIcon {
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
|
|
|
|
.mx_E2EIcon {
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
}
|
2019-11-21 20:17:55 +03:00
|
|
|
}
|
2018-10-30 15:25:06 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_RoomHeader_wrapper {
|
2021-11-15 14:39:25 +03:00
|
|
|
height: 44px;
|
2018-04-12 02:23:35 +03:00
|
|
|
display: flex;
|
2018-10-23 17:57:56 +03:00
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
2021-11-15 14:39:25 +03:00
|
|
|
margin: 0 20px 0 16px;
|
|
|
|
padding-top: 8px;
|
|
|
|
border-bottom: 1px solid $system;
|
2020-07-13 23:45:48 +03:00
|
|
|
|
|
|
|
.mx_InviteOnlyIcon_large {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_spinner {
|
2018-10-23 17:57:56 +03:00
|
|
|
flex: 1;
|
2018-04-12 02:23:35 +03: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 16:37:29 +03:00
|
|
|
background-color: $alert;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_cancelButton {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
|
|
|
|
2018-10-23 17:57:56 +03:00
|
|
|
.mx_RoomHeader_buttons {
|
2018-04-12 02:23:35 +03:00
|
|
|
display: flex;
|
2021-08-12 12:10:47 +03:00
|
|
|
background-color: $background;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_info {
|
2018-05-25 05:17:29 +03:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
align-items: center;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_simpleHeader {
|
2020-03-31 17:26:23 +03:00
|
|
|
line-height: $font-52px;
|
2021-11-15 14:39:25 +03:00
|
|
|
color: $primary-content;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-18px;
|
2021-11-15 14:39:25 +03:00
|
|
|
font-weight: $font-semi-bold;
|
2018-04-12 02:23:35 +03:00
|
|
|
overflow: hidden;
|
|
|
|
margin-left: 63px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
|
2021-11-15 14:39:25 +03:00
|
|
|
.mx_RoomHeader_cancelButton {
|
|
|
|
float: right;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-11-15 14:39:25 +03:00
|
|
|
.mx_RoomHeader_icon {
|
|
|
|
margin-left: 14px;
|
|
|
|
margin-right: 24px;
|
|
|
|
vertical-align: -4px;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_name {
|
2018-10-23 17:57:56 +03:00
|
|
|
flex: 0 1 auto;
|
2018-04-12 02:23:35 +03:00
|
|
|
overflow: hidden;
|
2021-11-15 14:39:25 +03:00
|
|
|
color: $primary-content;
|
|
|
|
font-weight: $font-semi-bold;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-18px;
|
2021-11-15 14:39:25 +03:00
|
|
|
border-radius: 6px;
|
2018-10-23 17:57:56 +03:00
|
|
|
margin: 0 7px;
|
2021-11-15 14:39:25 +03:00
|
|
|
padding: 1px 4px;
|
2019-01-15 18:20:04 +03:00
|
|
|
display: flex;
|
2021-11-15 14:39:25 +03:00
|
|
|
user-select: none;
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-11-15 14:39:25 +03:00
|
|
|
&:hover {
|
|
|
|
background-color: $quinary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_nametext {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_chevron {
|
|
|
|
align-self: center;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/chevron-down.svg');
|
|
|
|
background-color: $tertiary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[aria-expanded=true] {
|
|
|
|
background-color: $quinary-content;
|
|
|
|
|
|
|
|
.mx_RoomHeader_chevron {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_settingsHint {
|
2019-07-09 20:15:10 +03:00
|
|
|
color: $settings-grey-fg-color !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_searchStatus {
|
|
|
|
font-weight: normal;
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_name,
|
2021-11-15 14:39:25 +03:00
|
|
|
.mx_RoomHeader_avatar {
|
2018-04-12 02:23:35 +03:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_topic {
|
2018-10-23 17:57:56 +03:00
|
|
|
flex: 1;
|
2018-05-25 05:17:29 +03:00
|
|
|
color: $roomtopic-color;
|
|
|
|
font-weight: 400;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-13px;
|
2021-11-15 14:39:25 +03:00
|
|
|
// to align baseline of topic with room name
|
|
|
|
margin: 4px 7px 0;
|
2018-04-12 02:23:35 +03:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
border-bottom: 1px solid transparent;
|
2018-10-23 17:57:56 +03:00
|
|
|
line-height: 1.2em;
|
|
|
|
max-height: 2.4em;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatar {
|
2018-05-25 05:17:29 +03:00
|
|
|
flex: 0;
|
2020-07-14 01:56:25 +03:00
|
|
|
margin: 0 6px 0 7px;
|
2020-01-21 16:33:16 +03:00
|
|
|
position: relative;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatar .mx_BaseAvatar_image {
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_button {
|
2019-11-01 17:46:30 +03:00
|
|
|
position: relative;
|
2020-07-16 16:38:46 +03:00
|
|
|
margin-left: 1px;
|
|
|
|
margin-right: 1px;
|
2018-04-12 02:23:35 +03:00
|
|
|
cursor: pointer;
|
2020-07-16 16:38:46 +03:00
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
|
|
|
border-radius: 100%;
|
2019-11-01 17:46:30 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2020-07-16 16:38:46 +03:00
|
|
|
top: 4px; // center with parent of 32px
|
|
|
|
left: 4px; // center with parent of 32px
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2020-07-28 15:19:11 +03:00
|
|
|
background-color: $icon-button-color;
|
2019-11-01 17:46:30 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
2020-07-16 16:38:46 +03:00
|
|
|
|
|
|
|
&:hover {
|
2021-11-11 16:37:29 +03:00
|
|
|
background: rgba($accent, 0.1);
|
2020-07-16 16:38:46 +03:00
|
|
|
|
|
|
|
&::before {
|
2021-11-11 16:37:29 +03:00
|
|
|
background-color: $accent;
|
2020-07-16 16:38:46 +03:00
|
|
|
}
|
|
|
|
}
|
2019-02-12 19:42:11 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_forgetButton::before {
|
2020-07-03 19:03:47 +03:00
|
|
|
mask-image: url('$(res)/img/element-icons/leave.svg');
|
2019-02-12 19:42:11 +03:00
|
|
|
width: 26px;
|
|
|
|
}
|
|
|
|
|
2020-10-09 10:42:21 +03:00
|
|
|
.mx_RoomHeader_appsButton::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/apps.svg');
|
|
|
|
}
|
|
|
|
.mx_RoomHeader_appsButton_highlight::before {
|
2021-11-11 16:37:29 +03:00
|
|
|
background-color: $accent;
|
2020-10-09 10:42:21 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_searchButton::before {
|
2020-07-03 19:03:47 +03:00
|
|
|
mask-image: url('$(res)/img/element-icons/room/search-inset.svg');
|
2019-02-12 19:42:11 +03:00
|
|
|
}
|
|
|
|
|
2021-02-26 23:46:39 +03:00
|
|
|
.mx_RoomHeader_voiceCallButton::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
|
|
|
|
|
|
|
|
// The call button SVG is padded slightly differently, so match it up to the size
|
|
|
|
// of the other icons
|
|
|
|
mask-size: 20px;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_videoCallButton::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
|
|
|
|
}
|
|
|
|
|
2020-05-27 20:33:55 +03:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_RoomHeader_wrapper {
|
|
|
|
padding: 0;
|
2021-11-15 14:39:25 +03:00
|
|
|
margin: 0;
|
2020-05-27 20:33:55 +03:00
|
|
|
}
|
|
|
|
.mx_RoomHeader {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-01-30 13:18:14 +03:00
|
|
|
}
|