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;
|
2020-07-09 17:16:30 +00:00
|
|
|
background-color: $roomheader-bg-color;
|
2019-11-21 17:17:55 +00:00
|
|
|
|
2020-07-13 22:56:25 +00:00
|
|
|
.mx_RoomHeader_e2eIcon {
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
|
|
|
|
.mx_E2EIcon {
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
|
|
|
}
|
2019-11-21 17:17:55 +00:00
|
|
|
}
|
2018-10-30 12:25:06 +00:00
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_RoomHeader_wrapper {
|
|
|
|
margin: auto;
|
2020-07-13 22:12:33 +00:00
|
|
|
height: 50px;
|
2018-04-11 23:23:35 +00:00
|
|
|
display: flex;
|
2018-10-23 14:57:56 +00:00
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
2020-07-13 20:15:58 +00:00
|
|
|
padding: 0 10px 0 18px;
|
2020-07-13 20:45:48 +00:00
|
|
|
|
|
|
|
.mx_InviteOnlyIcon_large {
|
|
|
|
margin: 0;
|
|
|
|
}
|
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 {
|
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_cancelButton {
|
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|
|
|
|
|
2018-10-23 14:57:56 +00:00
|
|
|
.mx_RoomHeader_buttons {
|
2018-04-11 23:23:35 +00:00
|
|
|
display: flex;
|
2018-10-23 14:57:56 +00:00
|
|
|
background-color: $primary-bg-color;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.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_simpleHeader {
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-52px;
|
2018-05-25 02:17:29 +00:00
|
|
|
color: $roomheader-color;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-18px;
|
2018-05-25 02:19:19 +00:00
|
|
|
font-weight: 600;
|
2018-04-11 23:23:35 +00:00
|
|
|
overflow: hidden;
|
|
|
|
margin-left: 63px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_simpleHeader .mx_RoomHeader_cancelButton {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_simpleHeader .mx_RoomHeader_icon {
|
|
|
|
margin-left: 14px;
|
|
|
|
margin-right: 24px;
|
|
|
|
vertical-align: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2018-05-25 02:17:29 +00:00
|
|
|
color: $roomheader-color;
|
2018-05-25 02:19:19 +00:00
|
|
|
font-weight: 600;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-18px;
|
2018-10-23 14:57:56 +00:00
|
|
|
margin: 0 7px;
|
2018-04-11 23:23:35 +00:00
|
|
|
border-bottom: 1px solid transparent;
|
2019-01-15 15:20:04 +00:00
|
|
|
display: flex;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_nametext {
|
2018-10-23 14:57:56 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_name,
|
|
|
|
.mx_RoomHeader_avatar,
|
|
|
|
.mx_RoomHeader_avatarPicker,
|
|
|
|
.mx_RoomHeader_avatarPicker_edit,
|
|
|
|
.mx_RoomHeader_avatarPicker_remove {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_remove {
|
|
|
|
position: absolute;
|
|
|
|
top: -11px;
|
|
|
|
right: -9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_name:hover div:not(.mx_RoomHeader_editable) {
|
|
|
|
color: $accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_placeholder {
|
2019-07-09 17:15:10 +00:00
|
|
|
color: $settings-grey-fg-color !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_editable {
|
2019-07-09 17:15:10 +00:00
|
|
|
border-bottom: 1px solid $strong-input-border-color !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
min-width: 150px;
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_editable:focus {
|
2019-07-09 17:15:10 +00:00
|
|
|
border-bottom: 1px solid $accent-color !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_topic {
|
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;
|
2018-10-23 14:57:56 +00:00
|
|
|
margin: 0 7px;
|
2019-02-13 12:16:04 +00:00
|
|
|
margin-top: 4px; // to align baseline of topic with room name
|
2018-04-11 23:23:35 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
border-bottom: 1px solid transparent;
|
2018-10-23 14:57:56 +00:00
|
|
|
line-height: 1.2em;
|
|
|
|
max-height: 2.4em;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatar {
|
2018-05-25 02:17:29 +00:00
|
|
|
flex: 0;
|
2020-07-13 22:56:25 +00:00
|
|
|
margin: 0 6px 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_avatarPicker {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_edit {
|
2018-12-11 12:11:26 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 16px;
|
|
|
|
top: 18px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_edit > label {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_edit > input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2020-07-16 13:38:46 +00:00
|
|
|
top: 4px; // center with parent of 32px
|
|
|
|
left: 4px; // center with parent of 32px
|
|
|
|
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
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: rgba($accent-color, 0.1);
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
}
|
2019-02-12 16:42:11 +00:00
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_RoomHeader_forgetButton::before {
|
2020-07-03 16:03:47 +00:00
|
|
|
mask-image: url('$(res)/img/element-icons/leave.svg');
|
2019-02-12 16:42:11 +00:00
|
|
|
width: 26px;
|
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_RoomHeader_searchButton::before {
|
2020-07-03 16:03:47 +00:00
|
|
|
mask-image: url('$(res)/img/element-icons/room/search-inset.svg');
|
2019-02-12 16:42:11 +00:00
|
|
|
}
|
|
|
|
|
2018-10-24 11:50:58 +00:00
|
|
|
.mx_RoomHeader_showPanel {
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_RoomHeader_voipButton {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_voipButtons {
|
|
|
|
margin-top: 18px;
|
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_RoomHeader_pinnedButton::before {
|
2020-07-03 16:03:47 +00:00
|
|
|
mask-image: url('$(res)/img/element-icons/room/pin.svg');
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_pinsIndicator {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 4px;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
border-radius: 8px;
|
|
|
|
background-color: $pinned-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_pinsIndicatorUnread {
|
|
|
|
background-color: $pinned-unread-color;
|
|
|
|
}
|
2020-01-30 10:18:14 +00:00
|
|
|
|
2020-05-27 17:33:55 +00:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_RoomHeader_wrapper {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.mx_RoomHeader {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-01-30 10:18:14 +00:00
|
|
|
}
|