mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 08:01:31 +03:00
218 lines
5.7 KiB
SCSS
218 lines
5.7 KiB
SCSS
/*
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
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_ThreadPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
padding-right: 0;
|
|
|
|
.mx_BaseCard_header {
|
|
.mx_BaseCard_close,
|
|
.mx_BaseCard_back {
|
|
margin-top: 15px;
|
|
}
|
|
.mx_BaseCard_close {
|
|
right: -8px;
|
|
}
|
|
}
|
|
|
|
.mx_ThreadPanel__header {
|
|
width: calc(100% - 60px);
|
|
margin-left: 30px;
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
span:first-of-type {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
line-height: 18px;
|
|
color: $secondary-content;
|
|
}
|
|
|
|
.mx_AccessibleButton {
|
|
font-size: 12px;
|
|
color: $primary-content;
|
|
}
|
|
|
|
.mx_MessageActionBar_optionsButton {
|
|
position: relative;
|
|
}
|
|
|
|
.mx_ContextualMenu_wrapper {
|
|
// It's added here due to some weird error if I pass it directly in the style, even though it's a numeric value, so it's being passed 0 instead.
|
|
// The error: react_devtools_backend.js:2526 Warning: `NaN` is an invalid value for the `top` css style property.
|
|
top: 43px;
|
|
}
|
|
|
|
.mx_ContextualMenu {
|
|
position: initial;
|
|
span:first-of-type {
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
color: $primary-content;
|
|
}
|
|
|
|
font-size: 12px;
|
|
color: $secondary-content;
|
|
}
|
|
|
|
.mx_ThreadPanel_Header_FilterOptionItem {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
justify-content: space-between;
|
|
flex-direction: column;
|
|
overflow: visible;
|
|
width: 100%;
|
|
padding: 20px;
|
|
padding-left: 30px;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
background-color: $event-selected-color;
|
|
}
|
|
&[aria-selected="true"] {
|
|
&::before {
|
|
content: "";
|
|
width: 12px;
|
|
height: 12px;
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
mask-image: url("$(res)/img/feather-customised/check.svg");
|
|
mask-size: 100%;
|
|
mask-repeat: no-repeat;
|
|
position: absolute;
|
|
top: 22px;
|
|
left: 10px;
|
|
background-color: $primary-content;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.mx_ThreadPanel_button {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-top: -3px;
|
|
margin-bottom: auto;
|
|
position: relative;
|
|
|
|
&::before {
|
|
top: 2px;
|
|
left: 2px;
|
|
content: '';
|
|
width: 16px;
|
|
height: 16px;
|
|
position: absolute;
|
|
mask-position: center;
|
|
mask-size: contain;
|
|
mask-repeat: no-repeat;
|
|
background: $primary-content;
|
|
}
|
|
|
|
&.mx_ThreadPanel_OptionsButton::before {
|
|
mask-image: url('$(res)/img/element-icons/context-menu.svg');
|
|
}
|
|
}
|
|
|
|
.mx_AutoHideScrollbar {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.mx_RoomView_messageListWrapper {
|
|
background-color: $background;
|
|
padding: 8px;
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.mx_ScrollPanel {
|
|
.mx_RoomView_MessageList {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.mx_EventTile, .mx_EventListSummary {
|
|
// Account for scrollbar when hovering
|
|
width: calc(100% - 3px);
|
|
margin: 0 2px;
|
|
padding-top: 0;
|
|
|
|
.mx_ThreadInfo {
|
|
position: relative;
|
|
padding-right: 11px;
|
|
&::after {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -16px;
|
|
height: 1px;
|
|
width: 100%;
|
|
border-bottom: 1px solid $message-action-bar-border-color;
|
|
}
|
|
}
|
|
|
|
.mx_DateSeparator {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.mx_MessageComposer {
|
|
background-color: $background;
|
|
border-radius: 8px;
|
|
margin-top: 8px;
|
|
width: calc(100% - 8px);
|
|
padding: 0 8px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.mx_ThreadPanel_dropdown {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
line-height: 1.5;
|
|
user-select: none;
|
|
}
|
|
|
|
.mx_ThreadPanel_dropdown:hover,
|
|
.mx_ThreadPanel_dropdown[aria-expanded=true] {
|
|
background: $quinary-content;
|
|
}
|
|
|
|
.mx_ThreadPanel_dropdown::before {
|
|
content: "";
|
|
width: 18px;
|
|
height: 18px;
|
|
background: currentColor;
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
|
mask-size: 100%;
|
|
mask-repeat: no-repeat;
|
|
float: right;
|
|
}
|
|
|
|
.mx_ThreadPanel_dropdown[aria-expanded=true]::before {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
.mx_ThreadPanel_viewInRoom::before {
|
|
mask-image: url('$(res)/img/element-icons/view-in-room.svg');
|
|
}
|
|
|
|
.mx_ThreadPanel_copyLinkToThread::before {
|
|
mask-image: url('$(res)/img/element-icons/link.svg');
|
|
}
|