326 lines
6.7 KiB
SCSS
326 lines
6.7 KiB
SCSS
/*
|
|
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.
|
|
*/
|
|
|
|
.mx_RoomHeader {
|
|
flex: 0 0 50px;
|
|
border-bottom: 1px solid $primary-hairline-color;
|
|
background-color: $roomheader-bg-color;
|
|
|
|
.mx_RoomHeader_e2eIcon {
|
|
height: 12px;
|
|
width: 12px;
|
|
|
|
.mx_E2EIcon {
|
|
margin: 0;
|
|
position: absolute;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_RoomHeader_wrapper {
|
|
margin: auto;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
padding: 0 10px 0 18px;
|
|
|
|
.mx_InviteOnlyIcon_large {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.mx_RoomHeader_spinner {
|
|
flex: 1;
|
|
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;
|
|
}
|
|
|
|
.mx_RoomHeader_buttons {
|
|
display: flex;
|
|
background-color: $primary-bg-color;
|
|
}
|
|
|
|
.mx_RoomHeader_info {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
|
|
.mx_RoomHeader_simpleHeader {
|
|
line-height: $font-52px;
|
|
color: $roomheader-color;
|
|
font-size: $font-18px;
|
|
font-weight: 600;
|
|
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 {
|
|
flex: 0 1 auto;
|
|
overflow: hidden;
|
|
color: $roomheader-color;
|
|
font-weight: 600;
|
|
font-size: $font-18px;
|
|
margin: 0 7px;
|
|
border-bottom: 1px solid transparent;
|
|
display: flex;
|
|
}
|
|
|
|
.mx_RoomHeader_nametext {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mx_RoomHeader_settingsHint {
|
|
color: $settings-grey-fg-color !important;
|
|
}
|
|
|
|
.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 {
|
|
color: $settings-grey-fg-color !important;
|
|
}
|
|
|
|
.mx_RoomHeader_editable {
|
|
border-bottom: 1px solid $strong-input-border-color !important;
|
|
min-width: 150px;
|
|
cursor: text;
|
|
}
|
|
|
|
.mx_RoomHeader_editable:focus {
|
|
border-bottom: 1px solid $accent-color !important;
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.mx_RoomHeader_topic {
|
|
flex: 1;
|
|
color: $roomtopic-color;
|
|
font-weight: 400;
|
|
font-size: $font-13px;
|
|
margin: 0 7px;
|
|
margin-top: 4px; // to align baseline of topic with room name
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
border-bottom: 1px solid transparent;
|
|
line-height: 1.2em;
|
|
max-height: 2.4em;
|
|
}
|
|
|
|
.mx_RoomHeader_avatar {
|
|
flex: 0;
|
|
margin: 0 6px 0 7px;
|
|
position: relative;
|
|
}
|
|
|
|
.mx_RoomHeader_avatar .mx_BaseAvatar_image {
|
|
object-fit: cover;
|
|
}
|
|
|
|
.mx_RoomHeader_avatarPicker {
|
|
position: relative;
|
|
}
|
|
|
|
.mx_RoomHeader_avatarPicker_edit {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 18px;
|
|
}
|
|
|
|
.mx_RoomHeader_avatarPicker_edit > label {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mx_RoomHeader_avatarPicker_edit > input {
|
|
display: none;
|
|
}
|
|
|
|
.mx_RoomHeader_button {
|
|
position: relative;
|
|
margin-left: 1px;
|
|
margin-right: 1px;
|
|
cursor: pointer;
|
|
height: 32px;
|
|
width: 32px;
|
|
border-radius: 100%;
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 4px; // center with parent of 32px
|
|
left: 4px; // center with parent of 32px
|
|
height: 24px;
|
|
width: 24px;
|
|
background-color: $icon-button-color;
|
|
mask-repeat: no-repeat;
|
|
mask-size: contain;
|
|
}
|
|
|
|
&:hover {
|
|
background: rgba($accent-color, 0.1);
|
|
|
|
&::before {
|
|
background-color: $accent-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_RoomHeader_forgetButton::before {
|
|
mask-image: url('$(res)/img/element-icons/leave.svg');
|
|
width: 26px;
|
|
}
|
|
|
|
.mx_RoomHeader_appsButton::before {
|
|
mask-image: url('$(res)/img/element-icons/room/apps.svg');
|
|
}
|
|
.mx_RoomHeader_appsButton_highlight::before {
|
|
background-color: $accent-color;
|
|
}
|
|
|
|
.mx_RoomHeader_searchButton::before {
|
|
mask-image: url('$(res)/img/element-icons/room/search-inset.svg');
|
|
}
|
|
|
|
.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');
|
|
}
|
|
|
|
.mx_RoomHeader_showPanel {
|
|
height: 16px;
|
|
}
|
|
|
|
.mx_RoomHeader_voipButton {
|
|
display: table-cell;
|
|
}
|
|
|
|
.mx_RoomHeader_voipButtons {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.mx_RoomHeader_pinnedButton::before {
|
|
mask-image: url('$(res)/img/element-icons/room/pin.svg');
|
|
}
|
|
|
|
$dot-size: 8px;
|
|
$pulse-color: $pinned-unread-color;
|
|
|
|
.mx_RoomHeader_pinsIndicatorUnread {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
margin: 4px;
|
|
width: $dot-size;
|
|
height: $dot-size;
|
|
border-radius: 50%;
|
|
transform: scale(1);
|
|
background: rgba($pulse-color, 1);
|
|
box-shadow: 0 0 0 0 rgba($pulse-color, 1);
|
|
animation: mx_RoomHeader_indicator_pulse 2s infinite;
|
|
animation-iteration-count: 1;
|
|
}
|
|
|
|
@keyframes mx_RoomHeader_indicator_pulse {
|
|
0% {
|
|
transform: scale(0.95);
|
|
box-shadow: 0 0 0 0 rgba($pulse-color, 0.7);
|
|
}
|
|
|
|
70% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 10px rgba($pulse-color, 0);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(0.95);
|
|
box-shadow: 0 0 0 0 rgba($pulse-color, 0);
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
.mx_RoomHeader_wrapper {
|
|
padding: 0;
|
|
}
|
|
.mx_RoomHeader {
|
|
overflow: hidden;
|
|
}
|
|
}
|