2021-11-29 17:06:15 +01:00
|
|
|
/*
|
2022-03-30 13:43:54 +02:00
|
|
|
Copyright 2021 - 2022 The Matrix.org Foundation C.I.C.
|
2021-11-29 17:06:15 +01:00
|
|
|
|
|
|
|
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_TimelineCard {
|
2022-03-30 13:43:54 +02:00
|
|
|
.mx_TimelineCard_timeline {
|
|
|
|
overflow: hidden;
|
2022-07-27 15:39:29 +02:00
|
|
|
position: relative; /* offset parent for jump to bottom button */
|
2022-03-30 13:43:54 +02:00
|
|
|
flex: 1;
|
2022-04-13 17:33:54 +02:00
|
|
|
border-radius: 8px;
|
2022-03-30 13:43:54 +02:00
|
|
|
}
|
|
|
|
|
2022-02-08 14:11:18 +01:00
|
|
|
.mx_NewRoomIntro {
|
2022-06-10 10:21:22 +02:00
|
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
margin-inline-end: var(--BaseCard_EventTile-spacing-inline);
|
2022-02-08 14:11:18 +01:00
|
|
|
}
|
|
|
|
|
2021-12-13 17:46:32 +01:00
|
|
|
.mx_EventTile_content {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-02-08 14:11:18 +01:00
|
|
|
|
2022-06-10 10:21:22 +02:00
|
|
|
.mx_EventTile {
|
2022-06-30 18:56:03 +02:00
|
|
|
.mx_ThreadSummary {
|
|
|
|
position: relative;
|
|
|
|
padding-right: 11px;
|
|
|
|
|
|
|
|
&::after {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-06-30 18:56:03 +02:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
bottom: -16px;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
border-bottom: 1px solid $message-action-bar-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="irc"],
|
|
|
|
&[data-layout="group"] {
|
2022-07-02 17:51:57 +02:00
|
|
|
--TimelineCard_ReadReceiptGroup-inset-block-start: -6px;
|
|
|
|
|
2022-06-29 07:41:52 +02:00
|
|
|
&.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
|
2023-05-04 14:19:26 +02:00
|
|
|
padding-inline-end: var(--MessageTimestamp-width); /* ensure timestamp is not hidden */
|
2022-06-29 07:41:52 +02:00
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
inset-inline-start: $spacing-8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
inset-inline-start: 18px;
|
|
|
|
}
|
2023-07-03 17:30:55 +02:00
|
|
|
|
|
|
|
/* Info events should have the same size as state events, those
|
|
|
|
* are usually wrapped in a generic event list summary */
|
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2022-06-29 07:41:52 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 19:22:52 +02:00
|
|
|
.mx_EventTile_avatar {
|
2022-06-29 07:41:52 +02:00
|
|
|
inset-inline-start: -3px;
|
2022-06-25 19:22:52 +02:00
|
|
|
}
|
2022-06-26 16:01:28 +02:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
margin-inline-end: 0;
|
2022-07-12 23:30:59 +02:00
|
|
|
|
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
top: var(--TimelineCard_ReadReceiptGroup-inset-block-start);
|
|
|
|
}
|
2022-06-26 16:01:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile,
|
|
|
|
.mx_ReactionsRow,
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
}
|
|
|
|
|
2022-06-27 15:16:40 +02:00
|
|
|
.mx_DisambiguatedProfile {
|
2022-07-27 15:39:29 +02:00
|
|
|
max-width: calc(100% - var(--BaseCard_EventTile-spacing-inline)); /* instead of $left-gutter */
|
2022-06-27 15:16:40 +02:00
|
|
|
}
|
|
|
|
|
2022-06-26 16:01:28 +02:00
|
|
|
.mx_ReplyTile .mx_DisambiguatedProfile {
|
|
|
|
margin-inline-start: 0;
|
2022-06-27 15:16:40 +02:00
|
|
|
max-width: unset;
|
2022-06-26 16:01:28 +02:00
|
|
|
}
|
|
|
|
|
2022-06-30 10:59:11 +02:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
inset-inline: auto 0;
|
2022-07-05 18:02:55 +02:00
|
|
|
font-size: $font-12px;
|
2022-06-30 10:59:11 +02:00
|
|
|
}
|
|
|
|
|
2022-06-26 16:01:28 +02:00
|
|
|
.mx_ReactionsRow {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* See: var(--ThreadView_group_spacing-end) for ReactionsRow on _EventTile.pcss */
|
2022-07-15 15:53:23 +02:00
|
|
|
margin-inline-end: $spacing-8;
|
2022-06-26 16:01:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
margin-inline-end: 0;
|
|
|
|
max-width: min(calc(100% - 36px), 600px);
|
|
|
|
}
|
2022-06-25 19:22:52 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="irc"] {
|
2022-06-30 10:59:11 +02:00
|
|
|
.mx_EventTile_avatar,
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="group"] {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Read receipt group on compact modern layout */
|
|
|
|
/* This is required because mx_TimelineCard is a child element wrapped by mx_MatrixChat_useCompactLayout, */
|
|
|
|
/* which specifies the default position of mx_ReadReceiptGroup on compact modern layout. */
|
2022-07-02 17:51:57 +02:00
|
|
|
.mx_MatrixChat_useCompactLayout & .mx_ReadReceiptGroup {
|
|
|
|
top: var(--TimelineCard_ReadReceiptGroup-inset-block-start);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="bubble"] {
|
2022-06-10 10:21:22 +02:00
|
|
|
&::before {
|
2022-07-27 15:39:29 +02:00
|
|
|
z-index: auto; /* enable background color on hover */
|
2022-05-13 20:04:27 +02:00
|
|
|
}
|
2022-05-07 05:07:51 +02:00
|
|
|
|
2022-06-18 16:29:04 +02:00
|
|
|
&.mx_EventTile_info .mx_MessageActionBar {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* 1px: border width */
|
2023-10-20 15:30:37 +02:00
|
|
|
inset-inline-end: calc(var(--container-gap-width) + 1px);
|
2022-06-18 16:29:04 +02:00
|
|
|
}
|
|
|
|
|
2022-06-10 10:21:22 +02:00
|
|
|
.mx_ReactionsRow {
|
2022-07-27 15:39:29 +02:00
|
|
|
position: relative; /* display on hover */
|
2022-06-10 10:21:22 +02:00
|
|
|
}
|
2022-04-14 23:13:46 +02:00
|
|
|
}
|
2021-12-13 17:46:32 +01:00
|
|
|
}
|
2022-02-08 14:11:18 +01:00
|
|
|
|
2022-09-06 06:28:01 +02:00
|
|
|
.mx_LegacyCallEvent_wrapper {
|
2021-12-13 17:46:32 +01:00
|
|
|
justify-content: center;
|
|
|
|
margin: auto 5px;
|
2022-09-06 06:28:01 +02:00
|
|
|
.mx_LegacyCallEvent {
|
2021-12-13 17:46:32 +01:00
|
|
|
margin: 4px;
|
|
|
|
}
|
|
|
|
}
|
2022-02-08 14:11:18 +01:00
|
|
|
|
2022-07-06 12:44:23 +02:00
|
|
|
.mx_GenericEventListSummary {
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-layout="irc"],
|
|
|
|
&[data-layout="group"] {
|
2022-07-06 12:44:23 +02:00
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
|
|
|
|
padding-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
2023-05-04 14:19:26 +02:00
|
|
|
padding-inline-end: var(--MessageTimestamp-width); /* ensure timestamp is not hidden */
|
2022-07-06 12:44:23 +02:00
|
|
|
}
|
2022-05-18 15:08:39 +02:00
|
|
|
}
|
2022-02-08 14:11:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WhoIsTypingTile {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-left: -12px; /* undo padding on the message list */
|
2022-02-08 14:11:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WhoIsTypingTile_avatars {
|
2022-07-27 15:39:29 +02:00
|
|
|
flex-basis: 48px; /* 12 (padding on message list) + 36 (padding on event lines) */
|
2022-02-08 14:11:18 +01:00
|
|
|
}
|
2022-04-13 17:33:54 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
.mx_GenericEventListSummary_unstyledList, /* RR next to a message on the event list summary */
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_RoomView_MessageList {
|
|
|
|
/* RR next to a message on the messsge list */
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile[data-layout="bubble"] {
|
2022-06-02 04:43:07 +02:00
|
|
|
.mx_ReadReceiptGroup {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* 6px: scroll bar width (magic number) */
|
2022-07-15 15:53:23 +02:00
|
|
|
/* stylelint-disable-next-line declaration-colon-space-after */
|
2022-12-12 12:24:14 +01:00
|
|
|
inset-inline-end: calc(
|
2023-05-03 11:24:41 +02:00
|
|
|
-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end) + var(--container-gap-width) + 6px
|
2022-12-12 12:24:14 +01:00
|
|
|
);
|
2022-06-02 04:43:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
.mx_ReadReceiptGroup {
|
2022-07-27 15:39:29 +02:00
|
|
|
inset-inline-end: -4px; /* align with RR outside of info tile */
|
2022-06-02 04:43:07 +02:00
|
|
|
}
|
|
|
|
}
|
2022-04-13 17:33:54 +02:00
|
|
|
}
|
|
|
|
}
|
2021-11-29 17:06:15 +01:00
|
|
|
}
|