2021-10-14 13:27:35 +00:00
|
|
|
/*
|
2024-09-09 13:57:16 +00:00
|
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
|
2021-10-14 13:27:35 +00:00
|
|
|
|
2024-09-09 13:57:16 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-10-14 13:27:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ThreadPanel {
|
2022-04-05 16:15:31 +00:00
|
|
|
height: 100px;
|
|
|
|
overflow: visible;
|
2021-10-14 13:27:35 +00:00
|
|
|
|
2024-07-23 09:12:07 +00:00
|
|
|
/* Unset flex on the thread list, but not the thread view */
|
|
|
|
&:not(.mx_ThreadView) .mx_BaseCard_header .mx_BaseCard_header_title {
|
|
|
|
flex: unset;
|
|
|
|
}
|
|
|
|
|
2021-10-14 13:27:35 +00:00
|
|
|
.mx_BaseCard_header {
|
2022-06-16 07:22:45 +00:00
|
|
|
.mx_BaseCard_header_title {
|
2022-06-08 08:22:43 +00:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
font-size: 12px;
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
2021-10-14 13:27:35 +00:00
|
|
|
|
2024-03-28 17:38:21 +00:00
|
|
|
.mx_ThreadPanel_vertical_separator {
|
|
|
|
height: 16px;
|
|
|
|
margin-left: var(--cpd-space-3x);
|
|
|
|
margin-right: var(--cpd-space-1x);
|
|
|
|
border-left: 1px solid var(--cpd-color-gray-400);
|
|
|
|
}
|
|
|
|
|
2022-06-08 08:22:43 +00:00
|
|
|
.mx_ThreadPanel_dropdown {
|
2023-06-06 14:03:52 +00:00
|
|
|
padding: 3px $spacing-4 3px $spacing-8;
|
2022-06-08 08:22:43 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
line-height: 1.5;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:hover,
|
2022-07-15 13:53:23 +00:00
|
|
|
&[aria-expanded="true"] {
|
2022-06-08 08:22:43 +00:00
|
|
|
background: $quinary-content;
|
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-06-08 08:22:43 +00:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
background: currentColor;
|
2024-11-11 17:27:22 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/chevron-down.svg");
|
2022-06-08 08:22:43 +00:00
|
|
|
mask-size: 100%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
float: right;
|
|
|
|
}
|
2021-11-11 11:00:18 +00:00
|
|
|
}
|
|
|
|
}
|
2021-10-14 13:27:35 +00:00
|
|
|
}
|
|
|
|
|
2022-05-04 13:37:19 +00:00
|
|
|
.mx_AutoHideScrollbar,
|
|
|
|
.mx_RoomView_messagePanelSpinner {
|
2021-10-14 13:27:35 +00:00
|
|
|
background-color: $background;
|
2021-11-11 11:00:18 +00:00
|
|
|
border-radius: 8px;
|
2022-04-29 11:03:39 +00:00
|
|
|
padding-inline-end: 0;
|
2022-07-27 13:39:29 +00:00
|
|
|
overflow-y: scroll; /* set gap between the thread tile and the right border */
|
2022-05-04 13:37:19 +00:00
|
|
|
height: 100%;
|
2022-04-29 11:03:39 +00:00
|
|
|
}
|
|
|
|
|
2022-07-15 13:53:23 +00:00
|
|
|
.mx_EventTile[data-layout="group"] {
|
2022-06-15 17:26:24 +00:00
|
|
|
.mx_MessageActionBar {
|
|
|
|
right: 0;
|
2022-07-27 13:39:29 +00:00
|
|
|
top: -36px; /* 2px above EventTile */
|
|
|
|
z-index: 10; /* See _EventTile.pcss */
|
2022-04-29 11:03:39 +00:00
|
|
|
}
|
2021-10-14 13:27:35 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* For style rules of EventTile in a thread, see _EventTile.pcss */
|
2022-05-18 13:08:39 +00:00
|
|
|
&.mx_ThreadView {
|
2022-05-25 07:36:12 +00:00
|
|
|
max-height: 100%;
|
|
|
|
|
2022-05-18 13:08:39 +00:00
|
|
|
.mx_ThreadView_timelinePanelWrapper {
|
|
|
|
position: relative;
|
2022-07-27 13:39:29 +00:00
|
|
|
min-height: 0; /* don't displace the composer */
|
2022-05-18 13:08:39 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
.mx_FileDropTarget {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2022-02-22 11:14:56 +00:00
|
|
|
}
|
2022-05-25 07:36:12 +00:00
|
|
|
|
|
|
|
.mx_MessageComposer_sendMessage {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-09-16 09:12:28 +00:00
|
|
|
|
|
|
|
// Make use of the space above the composer buttons too
|
|
|
|
.mx_Autocomplete {
|
|
|
|
width: calc(100% + 140px);
|
|
|
|
}
|
|
|
|
&.mx_ThreadView_narrow .mx_Autocomplete {
|
|
|
|
width: calc(100% + 108px);
|
|
|
|
}
|
2022-02-07 15:13:34 +00:00
|
|
|
}
|
|
|
|
|
2022-12-12 11:24:14 +00:00
|
|
|
.mx_RoomView_messagePanel {
|
2024-07-19 17:17:40 +00:00
|
|
|
&.mx_RoomView_messageListWrapper {
|
|
|
|
position: initial;
|
|
|
|
}
|
|
|
|
|
2022-04-29 11:03:39 +00:00
|
|
|
.mx_RoomView_messageListWrapper {
|
2022-07-27 13:39:29 +00:00
|
|
|
width: calc(100% + 6px); /* 8px - 2px */
|
2022-04-29 11:03:39 +00:00
|
|
|
}
|
2024-07-19 17:17:40 +00:00
|
|
|
|
|
|
|
.mx_RoomView_empty {
|
|
|
|
display: contents;
|
|
|
|
}
|
2022-04-29 11:03:39 +00:00
|
|
|
}
|
|
|
|
|
2021-11-11 11:00:18 +00:00
|
|
|
.mx_RoomView_MessageList {
|
2022-04-29 11:03:39 +00:00
|
|
|
padding-inline-start: $spacing-8;
|
|
|
|
padding-inline-end: $spacing-8;
|
2022-04-05 17:07:34 +00:00
|
|
|
content-visibility: visible;
|
2021-10-14 13:27:35 +00:00
|
|
|
}
|
|
|
|
|
2022-04-05 16:01:34 +00:00
|
|
|
.mx_EventTile,
|
|
|
|
.mx_GenericEventListSummary {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Account for scrollbar when hovering */
|
2021-11-02 13:18:51 +00:00
|
|
|
padding-top: 0;
|
2021-10-14 13:27:35 +00:00
|
|
|
|
2023-10-16 14:14:04 +00:00
|
|
|
.mx_TimelineSeparator {
|
2021-10-14 13:27:35 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-11-11 11:00:18 +00:00
|
|
|
|
|
|
|
&.mx_EventTile_clamp:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-02 13:18:51 +00:00
|
|
|
.mx_MessageComposer {
|
|
|
|
background-color: $background;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin-top: 8px;
|
|
|
|
padding: 0 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2021-11-03 18:05:01 +00:00
|
|
|
|
2021-11-11 11:00:18 +00:00
|
|
|
.mx_MessageTimestamp {
|
2023-07-12 17:46:49 +00:00
|
|
|
color: $secondary-content;
|
2021-11-11 11:00:18 +00:00
|
|
|
}
|
2022-02-22 13:19:29 +00:00
|
|
|
|
2022-04-05 16:15:31 +00:00
|
|
|
.mx_BaseCard_footer {
|
|
|
|
text-align: left;
|
|
|
|
font-size: $font-12px;
|
|
|
|
align-items: center;
|
2022-04-13 08:16:09 +00:00
|
|
|
justify-content: flex-end;
|
2022-04-05 16:15:31 +00:00
|
|
|
gap: 4px;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
2022-04-05 17:07:34 +00:00
|
|
|
padding-right: 8px;
|
2022-04-05 16:15:31 +00:00
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link_inline {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 11:00:18 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 13:18:51 +00:00
|
|
|
.mx_ThreadPanel_viewInRoom::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/view-in-room.svg");
|
2021-11-02 13:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadPanel_copyLinkToThread::before {
|
2024-11-18 15:47:15 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/link.svg");
|
2021-10-14 13:27:35 +00:00
|
|
|
}
|
2021-11-11 13:56:44 +00:00
|
|
|
|
2022-06-16 07:22:45 +00:00
|
|
|
.mx_ContextualMenu_wrapper {
|
2021-12-14 09:43:51 +00: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 16:01:34 +00:00
|
|
|
|
2021-12-14 09:43:51 +00:00
|
|
|
&[aria-checked="true"] {
|
|
|
|
:first-child {
|
|
|
|
margin-left: -20px;
|
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2021-12-14 09:43:51 +00:00
|
|
|
:first-child::before {
|
|
|
|
content: "";
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
margin-right: 8px;
|
2024-10-18 13:51:54 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
|
2021-12-14 09:43:51 +00:00
|
|
|
mask-size: 100%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $primary-content;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
:last-child {
|
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|