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 {
|
|
|
|
flex: 0 0 52px;
|
|
|
|
border-bottom: 1px solid $primary-hairline-color;
|
2019-11-21 20:17:55 +03:00
|
|
|
|
|
|
|
.mx_E2EIcon {
|
|
|
|
margin: 0 5px;
|
|
|
|
}
|
2018-10-30 15:25:06 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_RoomHeader_wrapper {
|
|
|
|
margin: auto;
|
2018-05-25 05:17:29 +03:00
|
|
|
height: 52px;
|
2018-04-12 02:23:35 +03:00
|
|
|
display: flex;
|
2018-10-23 17:57:56 +03:00
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
|
|
|
padding: 0 10px 0 19px;
|
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 {
|
|
|
|
background-color: $warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2018-10-23 17:57:56 +03:00
|
|
|
background-color: $primary-bg-color;
|
2018-12-18 19:48:20 +03:00
|
|
|
padding-right: 5px;
|
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 {
|
2018-05-25 05:17:29 +03:00
|
|
|
line-height: 52px;
|
|
|
|
color: $roomheader-color;
|
|
|
|
font-size: 18px;
|
2018-05-25 05:19:19 +03:00
|
|
|
font-weight: 600;
|
2018-04-12 02:23:35 +03: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 17:57:56 +03:00
|
|
|
flex: 0 1 auto;
|
2018-04-12 02:23:35 +03:00
|
|
|
overflow: hidden;
|
2018-05-25 05:17:29 +03:00
|
|
|
color: $roomheader-color;
|
2018-05-25 05:19:19 +03:00
|
|
|
font-weight: 600;
|
2018-05-25 05:17:29 +03:00
|
|
|
font-size: 18px;
|
2018-10-23 17:57:56 +03:00
|
|
|
margin: 0 7px;
|
2018-04-12 02:23:35 +03:00
|
|
|
border-bottom: 1px solid transparent;
|
2019-01-15 18:20:04 +03:00
|
|
|
display: flex;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_nametext {
|
2018-10-23 17:57:56 +03:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
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,
|
|
|
|
.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 20:15:10 +03:00
|
|
|
color: $settings-grey-fg-color !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_editable {
|
2019-07-09 20:15:10 +03:00
|
|
|
border-bottom: 1px solid $strong-input-border-color !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
min-width: 150px;
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_editable:focus {
|
2019-07-09 20:15:10 +03:00
|
|
|
border-bottom: 1px solid $accent-color !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2018-04-12 02:23:35 +03:00
|
|
|
font-size: 13px;
|
2018-10-23 17:57:56 +03:00
|
|
|
margin: 0 7px;
|
2019-02-13 15:16:04 +03:00
|
|
|
margin-top: 4px; // to align baseline of topic with room name
|
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;
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
2018-10-23 17:57:56 +03:00
|
|
|
margin: 0 7px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatar .mx_BaseAvatar_image {
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_edit {
|
2018-12-11 15:11:26 +03:00
|
|
|
position: absolute;
|
|
|
|
left: 16px;
|
|
|
|
top: 18px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_edit > label {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_avatarPicker_edit > input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_button {
|
2019-11-01 17:46:30 +03:00
|
|
|
position: relative;
|
2018-12-18 19:48:20 +03:00
|
|
|
margin-left: 10px;
|
2018-04-12 02:23:35 +03:00
|
|
|
cursor: pointer;
|
2019-02-12 19:42:11 +03:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2019-11-01 17:46:30 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
background-color: $roomheader-button-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
2019-02-12 19:42:11 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_settingsButton::before {
|
2019-02-27 13:42:05 +03:00
|
|
|
mask-image: url('$(res)/img/feather-customised/settings.svg');
|
2019-02-12 19:42:11 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_forgetButton::before {
|
2019-02-12 19:42:11 +03:00
|
|
|
mask-image: url('$(res)/img/leave.svg');
|
|
|
|
width: 26px;
|
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_searchButton::before {
|
2019-02-27 13:42:05 +03:00
|
|
|
mask-image: url('$(res)/img/feather-customised/search.svg');
|
2019-02-12 19:42:11 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_shareButton::before {
|
2019-02-27 13:42:05 +03:00
|
|
|
mask-image: url('$(res)/img/feather-customised/share.svg');
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_manageIntegsButton::before {
|
2019-02-27 13:42:05 +03:00
|
|
|
mask-image: url('$(res)/img/feather-customised/grid.svg');
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2018-10-24 14:50:58 +03:00
|
|
|
.mx_RoomHeader_showPanel {
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_RoomHeader_voipButton {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomHeader_voipButtons {
|
|
|
|
margin-top: 18px;
|
|
|
|
}
|
|
|
|
|
2019-11-01 17:46:30 +03:00
|
|
|
.mx_RoomHeader_pinnedButton::before {
|
2019-02-12 19:42:11 +03:00
|
|
|
mask-image: url('$(res)/img/icons-pin.svg');
|
2018-04-12 02:23:35 +03: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-13 17:49:23 +03:00
|
|
|
|
|
|
|
.mx_RoomHeader_PrivateIcon.mx_RoomHeader_isPrivate {
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
position: relative;
|
|
|
|
display: block !important;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $roomtile-name-color;
|
|
|
|
mask-image: url('$(res)/img/feather-customised/lock-solid.svg');
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-01-13 17:54:39 +03:00
|
|
|
}
|