2021-10-14 15:27:35 +02: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 {
|
2022-04-05 18:15:31 +02:00
|
|
|
height: 100px;
|
|
|
|
overflow: visible;
|
2021-10-14 15:27:35 +02:00
|
|
|
|
|
|
|
.mx_BaseCard_header {
|
2022-06-16 09:22:45 +02:00
|
|
|
.mx_BaseCard_header_title {
|
2022-06-08 10:22:43 +02:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
font-size: 12px;
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
2021-10-14 15:27:35 +02:00
|
|
|
|
2022-06-08 10:22:43 +02:00
|
|
|
.mx_ThreadPanel_dropdown {
|
2022-07-27 15:39:29 +02:00
|
|
|
padding: 3px $spacing-4 3px $spacing-8; /* TODO: Use a spacing variable */
|
2022-06-08 10:22:43 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
line-height: 1.5;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:hover,
|
2022-07-15 15:53:23 +02:00
|
|
|
&[aria-expanded="true"] {
|
2022-06-08 10:22:43 +02:00
|
|
|
background: $quinary-content;
|
|
|
|
}
|
2022-04-05 18:01:34 +02:00
|
|
|
|
2022-06-08 10:22:43 +02:00
|
|
|
&::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 12:00:18 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-14 15:27:35 +02:00
|
|
|
}
|
|
|
|
|
2022-05-04 15:37:19 +02:00
|
|
|
.mx_AutoHideScrollbar,
|
|
|
|
.mx_RoomView_messagePanelSpinner {
|
2021-10-14 15:27:35 +02:00
|
|
|
background-color: $background;
|
2021-11-11 12:00:18 +01:00
|
|
|
border-radius: 8px;
|
2022-04-29 13:03:39 +02:00
|
|
|
padding-inline-end: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
overflow-y: scroll; /* set gap between the thread tile and the right border */
|
2022-05-04 15:37:19 +02:00
|
|
|
height: 100%;
|
2022-04-29 13:03:39 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile[data-layout="group"] {
|
2022-06-15 19:26:24 +02:00
|
|
|
.mx_MessageActionBar {
|
|
|
|
right: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
top: -36px; /* 2px above EventTile */
|
|
|
|
z-index: 10; /* See _EventTile.pcss */
|
2022-04-29 13:03:39 +02:00
|
|
|
}
|
2021-10-14 15:27:35 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* For style rules of EventTile in a thread, see _EventTile.pcss */
|
2022-05-18 15:08:39 +02:00
|
|
|
&.mx_ThreadView {
|
2022-05-25 09:36:12 +02:00
|
|
|
max-height: 100%;
|
|
|
|
|
2022-05-18 15:08:39 +02:00
|
|
|
.mx_ThreadView_timelinePanelWrapper {
|
|
|
|
position: relative;
|
2022-07-27 15:39:29 +02:00
|
|
|
min-height: 0; /* don't displace the composer */
|
2022-05-18 15:08:39 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
.mx_FileDropTarget {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2022-02-22 12:14:56 +01:00
|
|
|
}
|
2022-05-25 09:36:12 +02:00
|
|
|
|
|
|
|
.mx_MessageComposer_sendMessage {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-02-07 16:13:34 +01:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
.mx_RoomView_messagePanel { /* To avoid the rule from being applied to .mx_ThreadPanel_empty */
|
2022-04-29 13:03:39 +02:00
|
|
|
.mx_RoomView_messageListWrapper {
|
2022-07-27 15:39:29 +02:00
|
|
|
width: calc(100% + 6px); /* 8px - 2px */
|
2022-04-29 13:03:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-11 12:00:18 +01:00
|
|
|
.mx_RoomView_MessageList {
|
2022-04-29 13:03:39 +02:00
|
|
|
padding-inline-start: $spacing-8;
|
|
|
|
padding-inline-end: $spacing-8;
|
2022-04-05 19:07:34 +02:00
|
|
|
content-visibility: visible;
|
2021-10-14 15:27:35 +02:00
|
|
|
}
|
|
|
|
|
2022-04-05 18:01:34 +02:00
|
|
|
.mx_EventTile,
|
|
|
|
.mx_GenericEventListSummary {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Account for scrollbar when hovering */
|
2021-11-02 14:18:51 +01:00
|
|
|
padding-top: 0;
|
2021-10-14 15:27:35 +02:00
|
|
|
|
|
|
|
.mx_DateSeparator {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-11-11 12:00:18 +01:00
|
|
|
|
|
|
|
&.mx_EventTile_clamp:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-02 14:18:51 +01:00
|
|
|
.mx_MessageComposer {
|
|
|
|
background-color: $background;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin-top: 8px;
|
|
|
|
padding: 0 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2021-11-03 19:05:01 +01:00
|
|
|
|
2021-11-11 12:00:18 +01:00
|
|
|
.mx_MessageTimestamp {
|
2022-02-07 16:13:34 +01:00
|
|
|
color: $secondary-content;
|
2021-11-11 12:00:18 +01:00
|
|
|
}
|
2022-02-22 14:19:29 +01:00
|
|
|
|
2022-04-05 18:15:31 +02:00
|
|
|
.mx_BaseCard_footer {
|
|
|
|
text-align: left;
|
|
|
|
font-size: $font-12px;
|
|
|
|
align-items: center;
|
2022-04-13 10:16:09 +02:00
|
|
|
justify-content: flex-end;
|
2022-04-05 18:15:31 +02:00
|
|
|
gap: 4px;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
2022-04-05 19:07:34 +02:00
|
|
|
padding-right: 8px;
|
2022-04-05 18:15:31 +02:00
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link_inline {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 12:00:18 +01:00
|
|
|
}
|
|
|
|
|
2021-11-02 14:18:51 +01: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 15:27:35 +02:00
|
|
|
}
|
2021-11-11 14:56:44 +01: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 18:15:31 +02:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2021-11-11 14:56:44 +01:00
|
|
|
padding: 20px;
|
2022-07-27 15:39:29 +02:00
|
|
|
box-sizing: border-box; /* Include padding and border */
|
2022-05-25 14:33:27 +02:00
|
|
|
width: 100%;
|
2021-11-11 14:56:44 +01:00
|
|
|
|
|
|
|
h2 {
|
|
|
|
color: $primary-content;
|
2022-04-05 18:01:34 +02:00
|
|
|
font-weight: $font-semi-bold;
|
2021-11-11 14:56:44 +01:00
|
|
|
font-size: $font-18px;
|
2022-04-05 18:01:34 +02:00
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 10px;
|
2021-11-11 14:56:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: $font-15px;
|
|
|
|
color: $secondary-content;
|
2022-04-05 18:01:34 +02:00
|
|
|
margin: 10px 0;
|
2021-11-11 14:56:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
color: $accent;
|
2022-04-05 18:01:34 +02:00
|
|
|
font-size: $font-15px;
|
2021-11-11 14:56:44 +01:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2022-04-05 18:01:34 +02:00
|
|
|
|
|
|
|
.mx_ThreadPanel_empty_tip {
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
|
|
|
|
>b {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 14:56:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadPanel_largeIcon {
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
padding: 18px;
|
|
|
|
background: $system;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
&::after {
|
2022-07-04 21:07:50 +02:00
|
|
|
@mixin ThreadSummaryIcon;
|
2021-11-11 14:56:44 +01:00
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
|
|
|
}
|
|
|
|
}
|
2021-12-14 10:43:51 +01:00
|
|
|
|
2022-06-16 09:22:45 +02:00
|
|
|
.mx_ContextualMenu_wrapper {
|
2021-12-14 10:43:51 +01:00
|
|
|
.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 18:01:34 +02:00
|
|
|
|
2021-12-14 10:43:51 +01:00
|
|
|
&[aria-checked="true"] {
|
|
|
|
:first-child {
|
|
|
|
margin-left: -20px;
|
|
|
|
}
|
2022-04-05 18:01:34 +02:00
|
|
|
|
2021-12-14 10:43:51 +01: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|