2021-10-14 16:27:35 +03:00
|
|
|
/*
|
|
|
|
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;
|
2022-04-05 19:15:31 +03:00
|
|
|
height: 100px;
|
|
|
|
overflow: visible;
|
2021-10-14 16:27:35 +03:00
|
|
|
|
|
|
|
.mx_BaseCard_header {
|
2021-11-11 14:00:18 +03:00
|
|
|
margin-bottom: 12px;
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-11-02 16:18:51 +03:00
|
|
|
.mx_BaseCard_close,
|
|
|
|
.mx_BaseCard_back {
|
2021-11-11 14:00:18 +03:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-11-11 14:00:18 +03:00
|
|
|
.mx_BaseCard_back {
|
|
|
|
left: -4px;
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-11-02 16:18:51 +03:00
|
|
|
.mx_BaseCard_close {
|
2021-11-11 14:00:18 +03:00
|
|
|
right: -4px;
|
2021-11-02 16:18:51 +03:00
|
|
|
}
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
|
|
|
|
2021-11-11 14:00:18 +03:00
|
|
|
.mx_BaseCard_back ~ .mx_ThreadPanel__header {
|
2021-11-02 16:18:51 +03:00
|
|
|
width: calc(100% - 60px);
|
|
|
|
margin-left: 30px;
|
2021-11-11 14:00:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadPanel__header {
|
2022-04-06 13:48:30 +03:00
|
|
|
width: calc(100% - 38px);
|
2021-11-11 14:00:18 +03:00
|
|
|
height: 24px;
|
2021-10-14 16:27:35 +03:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
justify-content: space-between;
|
2021-11-03 21:05:01 +03:00
|
|
|
align-items: center;
|
2021-10-14 16:27:35 +03:00
|
|
|
|
|
|
|
span:first-of-type {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 15px;
|
|
|
|
line-height: 18px;
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
font-size: 12px;
|
2021-11-11 14:00:18 +03:00
|
|
|
color: $secondary-content;
|
2021-11-03 21:05:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageActionBar_optionsButton {
|
|
|
|
position: relative;
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
|
|
|
|
2021-11-11 14:00:18 +03:00
|
|
|
.mx_MessageActionBar_maskButton {
|
|
|
|
--size: 24px;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-11-11 14:00:18 +03:00
|
|
|
&::after {
|
|
|
|
mask-size: var(--size);
|
|
|
|
mask-image: url("$(res)/img/element-icons/message/overflow-large.svg");
|
|
|
|
}
|
|
|
|
}
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
|
|
|
|
2021-11-02 16:18:51 +03:00
|
|
|
.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');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-04 16:37:19 +03:00
|
|
|
.mx_AutoHideScrollbar,
|
|
|
|
.mx_RoomView_messagePanelSpinner {
|
2021-10-14 16:27:35 +03:00
|
|
|
background-color: $background;
|
2021-11-11 14:00:18 +03:00
|
|
|
border-radius: 8px;
|
2022-04-29 14:03:39 +03:00
|
|
|
padding-inline-end: 0;
|
|
|
|
overflow-y: scroll; // set gap between the thread tile and the right border
|
2022-05-04 16:37:19 +03:00
|
|
|
height: 100%;
|
2022-04-29 14:03:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Override _GroupLayout.scss for the thread panel
|
|
|
|
.mx_GroupLayout {
|
|
|
|
.mx_EventTile {
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
right: 0;
|
|
|
|
top: -36px; // 2px above EventTile
|
|
|
|
z-index: 10; // See _EventTile.scss
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-shape=ThreadsList] {
|
|
|
|
> .mx_DisambiguatedProfile {
|
|
|
|
margin-inline-start: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
position: initial;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-bottom: 0; // Override mx_EventTile_line on _GroupLayout.scss
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
|
|
|
|
2022-05-18 16:08:39 +03:00
|
|
|
&.mx_ThreadView {
|
|
|
|
// Inside a thread timeline only
|
|
|
|
.mx_GenericEventListSummary {
|
|
|
|
&:not([data-layout=bubble]) > .mx_EventTile_line {
|
|
|
|
padding-inline-start: var(--ThreadView_group_spacing-start); // align summary text with message text
|
|
|
|
padding-inline-end: var(--ThreadView_group_spacing-end); // align summary text with message text
|
|
|
|
}
|
|
|
|
}
|
2022-02-22 14:14:56 +03:00
|
|
|
|
2022-05-18 16:08:39 +03:00
|
|
|
.mx_ThreadView_timelinePanelWrapper {
|
|
|
|
position: relative;
|
|
|
|
min-height: 0; // don't displace the composer
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
.mx_FileDropTarget {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2022-02-22 14:14:56 +03:00
|
|
|
}
|
2022-02-07 18:13:34 +03:00
|
|
|
}
|
|
|
|
|
2022-04-29 14:03:39 +03:00
|
|
|
.mx_RoomView_messagePanel { // To avoid the rule from being applied to .mx_ThreadPanel_empty
|
|
|
|
.mx_RoomView_messageListWrapper {
|
|
|
|
width: calc(100% + 6px); // 8px - 2px
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-11 14:00:18 +03:00
|
|
|
.mx_RoomView_MessageList {
|
2022-04-29 14:03:39 +03:00
|
|
|
padding-inline-start: $spacing-8;
|
|
|
|
padding-inline-end: $spacing-8;
|
2022-04-05 20:07:34 +03:00
|
|
|
content-visibility: visible;
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
|
|
|
|
2022-04-05 19:01:34 +03:00
|
|
|
.mx_EventTile,
|
|
|
|
.mx_GenericEventListSummary {
|
2021-10-14 16:27:35 +03:00
|
|
|
// Account for scrollbar when hovering
|
2021-11-02 16:18:51 +03:00
|
|
|
padding-top: 0;
|
2021-10-14 16:27:35 +03:00
|
|
|
|
|
|
|
.mx_DateSeparator {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-11-11 14:00:18 +03:00
|
|
|
|
|
|
|
&.mx_EventTile_clamp:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-02 16:18:51 +03:00
|
|
|
.mx_MessageComposer {
|
|
|
|
background-color: $background;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin-top: 8px;
|
|
|
|
padding: 0 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2021-11-03 21:05:01 +03:00
|
|
|
|
|
|
|
.mx_ThreadPanel_dropdown {
|
2022-04-06 13:48:30 +03:00
|
|
|
padding: 3px 4px 3px 8px;
|
2021-11-03 21:05:01 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-11-11 14:00:18 +03:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
font-size: $font-12px;
|
2022-02-07 18:13:34 +03:00
|
|
|
color: $secondary-content;
|
2021-11-11 14:00:18 +03:00
|
|
|
}
|
2022-02-22 16:19:29 +03:00
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
&.mx_ThreadView .mx_EventTile {
|
|
|
|
// handling for hidden events (e.g reactions) in the thread view
|
2022-05-14 12:34:27 +03:00
|
|
|
|
|
|
|
&:not([data-layout=bubble]) {
|
|
|
|
&:hover.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
|
|
|
|
padding-inline-start: 0; // Override
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
&.mx_EventTile_info {
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
&.mx_EventTile_selected .mx_EventTile_line,
|
|
|
|
.mx_EventTile_line {
|
|
|
|
$line-height: $font-12px;
|
2022-04-13 14:24:44 +03:00
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
padding-inline-start: 0;
|
|
|
|
line-height: $line-height;
|
2022-02-22 16:19:29 +03:00
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
.mx_EventTile_content,
|
|
|
|
.mx_RedactedBody {
|
|
|
|
width: auto;
|
|
|
|
margin-inline-start: calc(var(--ThreadView_group_spacing-start) + 14px + 6px); // 14px: avatar width, 6px: 20px - 14px
|
|
|
|
font-size: $line-height;
|
|
|
|
}
|
2022-02-22 16:19:29 +03:00
|
|
|
}
|
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
&:not([data-layout=bubble]) {
|
2022-05-14 10:55:52 +03:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
top: 2px; // Align with avatar
|
|
|
|
}
|
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
left: calc($MessageTimestamp_width + 14px - 4px); // 14px: avatar width, 4px: align with text
|
|
|
|
z-index: 9; // position above the hover styling
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-layout=bubble] {
|
|
|
|
.mx_EventTile_avatar {
|
2022-05-14 12:34:27 +03:00
|
|
|
inset-inline-start: 0;
|
2022-05-12 10:04:54 +03:00
|
|
|
}
|
|
|
|
}
|
2022-02-22 16:19:29 +03:00
|
|
|
|
2022-05-12 10:04:54 +03:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: absolute;
|
2022-05-14 12:34:27 +03:00
|
|
|
top: 1.5px; // Align with hidden event content
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2022-05-12 10:04:54 +03:00
|
|
|
width: 14px; // avatar img size
|
|
|
|
height: 14px; // avatar img size
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ViewSourceEvent_toggle {
|
|
|
|
display: none; // hide the hidden event expand button, not enough space, view source can still be used
|
|
|
|
}
|
2022-02-22 16:19:29 +03:00
|
|
|
}
|
|
|
|
}
|
2022-04-05 19:15:31 +03:00
|
|
|
|
|
|
|
.mx_BaseCard_footer {
|
|
|
|
text-align: left;
|
|
|
|
font-size: $font-12px;
|
|
|
|
align-items: center;
|
2022-04-13 11:16:09 +03:00
|
|
|
justify-content: flex-end;
|
2022-04-05 19:15:31 +03:00
|
|
|
gap: 4px;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
2022-04-05 20:07:34 +03:00
|
|
|
padding-right: 8px;
|
2022-04-05 19:15:31 +03:00
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link_inline {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 14:00:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadPanel_replies {
|
2022-04-29 14:03:39 +03:00
|
|
|
margin-top: $spacing-8;
|
2022-04-27 20:10:27 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
2021-11-11 14:00:18 +03:00
|
|
|
|
2022-04-29 14:03:39 +03:00
|
|
|
.mx_ThreadPanel_ThreadsAmount {
|
|
|
|
@mixin ThreadsAmount;
|
|
|
|
font-size: $font-12px; // Same font size as the counter on the main panel
|
2021-11-11 14:00:18 +03:00
|
|
|
}
|
2021-11-02 16:18:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.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');
|
2021-10-14 16:27:35 +03:00
|
|
|
}
|
2021-11-11 16:56:44 +03:00
|
|
|
|
|
|
|
.mx_ThreadPanel_empty {
|
|
|
|
border-radius: 8px;
|
|
|
|
background: $background;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
position: absolute;
|
2022-04-05 19:15:31 +03:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2021-11-11 16:56:44 +03:00
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
color: $primary-content;
|
2022-04-05 19:01:34 +03:00
|
|
|
font-weight: $font-semi-bold;
|
2021-11-11 16:56:44 +03:00
|
|
|
font-size: $font-18px;
|
2022-04-05 19:01:34 +03:00
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 10px;
|
2021-11-11 16:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: $font-15px;
|
|
|
|
color: $secondary-content;
|
2022-04-05 19:01:34 +03:00
|
|
|
margin: 10px 0;
|
2021-11-11 16:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
color: $accent;
|
2022-04-05 19:01:34 +03:00
|
|
|
font-size: $font-15px;
|
2021-11-11 16:56:44 +03:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
|
|
.mx_ThreadPanel_empty_tip {
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
|
|
|
|
>b {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 16:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadPanel_largeIcon {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
padding: 18px;
|
|
|
|
background: $system;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
|
|
|
mask-image: url('$(res)/img/element-icons/thread-summary.svg');
|
|
|
|
mask-position: center;
|
|
|
|
display: inline-block;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
2021-12-14 12:43:51 +03:00
|
|
|
|
|
|
|
.mx_ContextualMenu_wrapper.mx_ThreadPanel__header {
|
|
|
|
.mx_ContextualMenu {
|
|
|
|
position: initial;
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-12-14 12:43:51 +03:00
|
|
|
span:first-of-type {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: inherit;
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $secondary-content;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
|
|
|
border: 1px solid $quinary-content;
|
|
|
|
box-shadow: 0px 1px 3px rgba(23, 25, 28, 0.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_top {
|
|
|
|
left: auto;
|
|
|
|
right: 22px;
|
|
|
|
border-bottom-color: $quinary-content;
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-12-14 12:43:51 +03:00
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
border: inherit;
|
2022-02-03 19:24:49 +03:00
|
|
|
border-bottom-color: $menu-bg-color;
|
2021-12-14 12:43:51 +03:00
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
left: -8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadPanel_Header_FilterOptionItem {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 10px 20px 10px 30px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-12-14 12:43:51 +03:00
|
|
|
&[aria-checked="true"] {
|
|
|
|
:first-child {
|
|
|
|
margin-left: -20px;
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
2021-12-14 12:43:51 +03:00
|
|
|
:first-child::before {
|
|
|
|
content: "";
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
margin-right: 8px;
|
|
|
|
mask-image: url("$(res)/img/feather-customised/check.svg");
|
|
|
|
mask-size: 100%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $primary-content;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
:last-child {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|