2021-06-18 19:59:22 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-06-18 19:59:22 +02:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02: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-06-18 19:59:22 +02:00
|
|
|
*/
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_RoomView_body[data-layout="bubble"] {
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_RoomView_timeline,
|
|
|
|
.mx_RoomView_statusArea,
|
|
|
|
.mx_MessageComposer {
|
2022-01-17 11:01:31 +01:00
|
|
|
width: 100%;
|
|
|
|
max-width: 1200px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2022-01-11 18:21:59 +01:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile[data-layout="bubble"],
|
|
|
|
.mx_GenericEventListSummary[data-layout="bubble"] {
|
2021-06-18 19:59:22 +02:00
|
|
|
--avatarSize: 32px;
|
2021-07-05 16:22:18 +02:00
|
|
|
--gutterSize: 11px;
|
2021-06-30 18:04:07 +02:00
|
|
|
--cornerRadius: 12px;
|
2021-06-18 19:59:22 +02:00
|
|
|
--maxWidth: 70%;
|
2021-07-01 15:56:34 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* For both event tile and event list summary */
|
2022-06-10 10:21:22 +02:00
|
|
|
--EventTile_bubble-margin-inline-start: 49px;
|
|
|
|
--EventTile_bubble-margin-inline-end: 60px;
|
2022-07-06 12:16:24 +02:00
|
|
|
|
|
|
|
margin-inline-start: var(--EventTile_bubble-margin-inline-start);
|
|
|
|
margin-inline-end: var(--EventTile_bubble-margin-inline-end);
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile[data-layout="bubble"] {
|
2022-06-16 19:47:37 +02:00
|
|
|
--EventTile_bubble_line-margin-inline-start: -9px;
|
|
|
|
--EventTile_bubble_line-margin-inline-end: -12px;
|
2022-06-15 17:50:35 +02:00
|
|
|
--EventTile_bubble_gap-inline: 5px;
|
2022-06-10 10:21:22 +02:00
|
|
|
|
2022-06-30 13:37:43 +02:00
|
|
|
.mx_MessageTimestamp {
|
2022-07-27 15:39:29 +02:00
|
|
|
width: unset; /* Cancel the default width */
|
2022-06-30 13:37:43 +02:00
|
|
|
max-width: var(--MessageTimestamp-max-width);
|
|
|
|
}
|
|
|
|
|
2022-04-27 19:10:27 +02:00
|
|
|
.mx_ThreadSummary {
|
2021-10-19 10:31:28 +02:00
|
|
|
clear: both;
|
|
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
|
2022-01-24 14:51:57 +01:00
|
|
|
.mx_EventTile_content {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2023-10-18 11:46:09 +02:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
line-height: 0;
|
|
|
|
border: 4px solid $background;
|
|
|
|
border-radius: 50%;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
z-index: 9;
|
|
|
|
img {
|
|
|
|
box-shadow: 0 0 0 3px $background;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-26 16:19:46 +02:00
|
|
|
&.mx_EventTile_highlight {
|
2023-10-18 11:46:09 +02:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
border-color: $event-highlight-bg-color;
|
|
|
|
}
|
2021-08-26 16:19:46 +02:00
|
|
|
&::before {
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
}
|
2021-08-08 15:00:25 +02:00
|
|
|
}
|
|
|
|
|
2023-10-18 11:46:09 +02:00
|
|
|
&:hover {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
border-color: $eventbubble-bg-hover;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-01 15:23:00 +02:00
|
|
|
/* For replies */
|
|
|
|
.mx_EventTile {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2021-07-29 11:12:07 +02:00
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2021-07-29 11:12:07 +02:00
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
bottom: -1px;
|
2022-06-10 10:21:22 +02:00
|
|
|
left: calc(-1 * var(--EventTile_bubble-margin-inline-start));
|
|
|
|
right: calc(-1 * var(--EventTile_bubble-margin-inline-end));
|
2021-07-29 11:12:07 +02:00
|
|
|
z-index: -1;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2021-07-22 16:48:55 +02:00
|
|
|
&:hover,
|
|
|
|
&.mx_EventTile_selected {
|
2021-07-07 11:23:38 +02:00
|
|
|
&::before {
|
|
|
|
background: $eventbubble-bg-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
img {
|
|
|
|
box-shadow: 0 0 0 3px $eventbubble-bg-hover;
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 19:59:22 +02:00
|
|
|
}
|
|
|
|
|
2022-03-22 23:14:55 +01:00
|
|
|
.mx_DisambiguatedProfile,
|
2021-06-18 19:59:22 +02:00
|
|
|
.mx_EventTile_line {
|
2022-05-25 16:08:43 +02:00
|
|
|
--EventBubbleTile_line-max-width: 70%;
|
|
|
|
|
2021-06-18 19:59:22 +02:00
|
|
|
width: fit-content;
|
2022-07-27 15:39:29 +02:00
|
|
|
max-width: var(--EventBubbleTile_line-max-width); /* Align message bubble and displayName */
|
|
|
|
line-height: $font-18px; /* fixed line height to prevent emoji from being taller than text */
|
2021-06-18 19:59:22 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* other users profile on bubble layout */
|
2022-05-22 09:07:29 +02:00
|
|
|
> .mx_DisambiguatedProfile {
|
2022-07-27 15:39:29 +02:00
|
|
|
white-space: normal; /* display mxid */
|
2022-05-22 09:07:29 +02:00
|
|
|
|
|
|
|
.mx_DisambiguatedProfile_displayName {
|
2022-07-27 15:39:29 +02:00
|
|
|
white-space: nowrap; /* truncate long display names */
|
2022-05-22 09:07:29 +02:00
|
|
|
margin-inline-end: 5px;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* For RTL displayName */
|
2022-05-22 09:07:29 +02:00
|
|
|
unicode-bidi: embed;
|
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile_mxid {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-inline-start: 0; /* Align mxid with truncated displayName
|
|
|
|
inside mx_EventTile[data-layout="bubble"] */
|
2022-05-22 09:07:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* inside mx_RoomView_MessageList, outside of mx_ReplyTile */
|
|
|
|
/* (on the main panel and the chat panel with a maximized widget) */
|
2022-05-03 15:28:17 +02:00
|
|
|
> .mx_DisambiguatedProfile,
|
2022-07-27 15:39:29 +02:00
|
|
|
/* inside a thread, outside of mx_ReplyTile */
|
2022-05-03 15:28:17 +02:00
|
|
|
.mx_EventTile_senderDetails > .mx_DisambiguatedProfile {
|
2021-07-07 15:13:58 +02:00
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
2021-07-13 10:15:12 +02:00
|
|
|
left: 2px;
|
2021-09-14 05:32:01 +02:00
|
|
|
font-size: $font-15px;
|
2021-06-18 19:59:22 +02:00
|
|
|
}
|
|
|
|
|
2021-12-23 16:48:00 +01:00
|
|
|
.mx_MessageActionBar {
|
|
|
|
top: -28px;
|
2022-07-27 15:39:29 +02:00
|
|
|
z-index: 9; /* above the avatar */
|
2021-12-23 16:48:00 +01:00
|
|
|
}
|
|
|
|
|
2022-01-11 17:04:39 +01:00
|
|
|
.mx_MediaBody {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* leave space for the timestamp */
|
2022-01-11 17:04:39 +01:00
|
|
|
padding-right: 48px;
|
|
|
|
}
|
|
|
|
|
2022-05-23 09:02:13 +02:00
|
|
|
.mx_MImageBody {
|
|
|
|
.mx_MImageBody_thumbnail_container {
|
|
|
|
justify-content: center;
|
|
|
|
min-height: calc(1.8rem + var(--gutterSize) + var(--gutterSize));
|
|
|
|
min-width: calc(1.8rem + var(--gutterSize) + var(--gutterSize));
|
|
|
|
}
|
2022-04-14 20:07:34 +02:00
|
|
|
}
|
|
|
|
|
2022-09-06 06:28:01 +02:00
|
|
|
.mx_LegacyCallEvent {
|
2022-01-11 18:11:08 +01:00
|
|
|
background-color: unset;
|
|
|
|
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
border-color: $quinary-content;
|
|
|
|
}
|
|
|
|
|
2024-10-04 09:11:37 +02:00
|
|
|
.mx_EventTile_footer {
|
|
|
|
margin: var(--cpd-space-1-5x) 0;
|
2022-06-16 19:47:37 +02:00
|
|
|
margin-inline: var(--EventTile_bubble_line-margin-inline-start) var(--EventTile_bubble_line-margin-inline-end);
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-self="false"] {
|
2021-07-07 13:00:31 +02:00
|
|
|
.mx_EventTile_line {
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
2021-10-28 16:32:30 +02:00
|
|
|
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
2022-01-13 17:42:32 +01:00
|
|
|
.mx_MImageBody::before,
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody,
|
2022-04-12 10:13:55 +02:00
|
|
|
.mx_MLocationBody_map,
|
|
|
|
.mx_MBeaconBody {
|
2022-01-24 20:01:20 +01:00
|
|
|
border-bottom-right-radius: var(--cornerRadius) !important;
|
2021-10-28 16:32:30 +02:00
|
|
|
}
|
2021-07-07 13:00:31 +02:00
|
|
|
}
|
2022-01-18 11:37:44 +01:00
|
|
|
|
2021-07-07 13:15:25 +02:00
|
|
|
.mx_EventTile_avatar {
|
2023-10-18 11:46:09 +02:00
|
|
|
left: -36px;
|
2021-07-07 13:15:25 +02:00
|
|
|
}
|
|
|
|
|
2022-01-19 02:48:07 +01:00
|
|
|
.mx_MessageActionBar {
|
2022-05-16 17:44:05 +02:00
|
|
|
inset-inline-start: calc(100% - var(--MessageActionBar-size-box));
|
2022-07-27 15:39:29 +02:00
|
|
|
right: initial; /* Reset the default value */
|
2022-01-19 02:48:07 +01:00
|
|
|
}
|
|
|
|
|
2022-05-10 19:01:46 +02:00
|
|
|
.mx_ThreadSummary {
|
|
|
|
margin-inline-start: calc(-1 * var(--gutterSize));
|
|
|
|
margin-inline-end: auto;
|
|
|
|
}
|
|
|
|
|
2024-10-04 09:11:37 +02:00
|
|
|
.mx_ReactionsRow,
|
|
|
|
.mx_EventTile_footer {
|
2022-06-16 19:47:37 +02:00
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
2021-07-07 13:15:25 +02:00
|
|
|
--backgroundColor: $eventbubble-others-bg;
|
2021-07-07 13:00:31 +02:00
|
|
|
}
|
2022-01-18 11:37:44 +01:00
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-self="true"] {
|
2021-07-07 13:00:31 +02:00
|
|
|
.mx_EventTile_line {
|
2022-04-20 21:24:34 +02:00
|
|
|
margin-inline-start: auto;
|
2021-10-28 16:32:30 +02:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
2022-01-13 17:42:32 +01:00
|
|
|
.mx_MImageBody::before,
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody,
|
2022-04-12 10:13:55 +02:00
|
|
|
.mx_MLocationBody_map,
|
|
|
|
.mx_MBeaconBody {
|
2022-01-24 20:01:20 +01:00
|
|
|
border-bottom-left-radius: var(--cornerRadius) !important;
|
2021-10-28 16:32:30 +02:00
|
|
|
}
|
2021-07-07 13:15:25 +02:00
|
|
|
}
|
2021-10-19 10:31:28 +02:00
|
|
|
|
2022-01-18 11:37:44 +01:00
|
|
|
.mx_EventTile_sticker {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* align timestamp with those inside bubbles */
|
2022-01-18 11:37:44 +01:00
|
|
|
margin-right: 32px;
|
|
|
|
}
|
|
|
|
|
2022-04-27 19:10:27 +02:00
|
|
|
.mx_ThreadSummary {
|
2022-05-10 19:01:46 +02:00
|
|
|
margin-inline-start: auto;
|
|
|
|
margin-inline-end: calc(-1 * var(--gutterSize));
|
2021-10-19 10:31:28 +02:00
|
|
|
}
|
|
|
|
|
2022-03-22 23:14:55 +01:00
|
|
|
.mx_DisambiguatedProfile {
|
2021-07-07 13:15:25 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2021-07-22 15:22:18 +02:00
|
|
|
|
2022-03-22 23:14:55 +01:00
|
|
|
.mx_ReplyTile .mx_DisambiguatedProfile {
|
2021-07-22 15:22:18 +02:00
|
|
|
display: block;
|
2022-06-20 16:26:34 +02:00
|
|
|
max-width: 100%;
|
2021-07-22 15:22:18 +02:00
|
|
|
}
|
|
|
|
|
2024-10-04 09:11:37 +02:00
|
|
|
.mx_EventTile_footer {
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
2021-07-07 13:15:25 +02:00
|
|
|
.mx_ReactionsRow {
|
2022-06-16 19:47:37 +02:00
|
|
|
justify-content: flex-end;
|
2021-07-07 13:15:25 +02:00
|
|
|
|
|
|
|
> :last-child {
|
2022-07-27 15:39:29 +02:00
|
|
|
order: -1; /* Moving the "add reaction button" before the reactions */
|
2021-07-07 13:15:25 +02:00
|
|
|
}
|
2021-07-07 13:00:31 +02:00
|
|
|
}
|
2022-05-16 17:44:05 +02:00
|
|
|
|
2021-07-07 13:15:25 +02:00
|
|
|
.mx_EventTile_avatar {
|
2022-07-27 15:39:29 +02:00
|
|
|
top: -19px; /* height of the sender block */
|
2023-10-18 11:46:09 +02:00
|
|
|
right: -38px;
|
2021-07-07 13:15:25 +02:00
|
|
|
}
|
|
|
|
|
2022-01-11 17:04:39 +01:00
|
|
|
.mx_MediaBody {
|
|
|
|
background: $eventbubble-self-bg;
|
|
|
|
}
|
|
|
|
|
2022-05-16 17:44:05 +02:00
|
|
|
.mx_MessageActionBar {
|
|
|
|
inset-inline-end: 0;
|
|
|
|
}
|
|
|
|
|
2021-07-07 13:15:25 +02:00
|
|
|
--backgroundColor: $eventbubble-self-bg;
|
2021-07-07 13:00:31 +02:00
|
|
|
}
|
|
|
|
|
2021-06-18 19:59:22 +02:00
|
|
|
.mx_EventTile_line {
|
2021-07-07 12:04:28 +02:00
|
|
|
position: relative;
|
2021-06-30 18:04:07 +02:00
|
|
|
display: flex;
|
2022-06-15 17:50:35 +02:00
|
|
|
gap: 5px var(--EventTile_bubble_gap-inline);
|
2022-06-16 19:47:37 +02:00
|
|
|
margin-block: 0;
|
|
|
|
margin-inline: var(--EventTile_bubble_line-margin-inline-start) var(--EventTile_bubble_line-margin-inline-end);
|
2021-10-28 16:32:30 +02:00
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
2021-12-23 16:48:16 +01:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* the selector here is quite weird because timestamps can appear linked & unlinked and in different places */
|
|
|
|
/* in the DOM depending on the specific rendering context */
|
|
|
|
> a, /* timestamp wrapper anchor */
|
2022-01-19 02:48:07 +01:00
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
2021-06-30 18:04:07 +02:00
|
|
|
position: absolute;
|
2021-12-23 16:48:16 +01:00
|
|
|
padding: 4px 8px;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
z-index: 3; /* above media and location share maps */
|
2021-06-30 18:04:07 +02:00
|
|
|
}
|
2021-10-28 16:32:30 +02:00
|
|
|
|
2022-05-24 09:06:04 +02:00
|
|
|
&.mx_EventTile_mediaLine {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* TODO: Use a common class name instead */
|
2022-05-24 09:06:04 +02:00
|
|
|
.mx_MFileBody,
|
|
|
|
.mx_MAudioBody {
|
2022-07-27 15:39:29 +02:00
|
|
|
max-width: 100%; /* avoid overflow */
|
2022-05-24 09:06:04 +02:00
|
|
|
}
|
2022-01-24 20:01:20 +01:00
|
|
|
|
2022-05-24 09:06:04 +02:00
|
|
|
.mx_MVoiceMessageBody {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* allow the event to be collapsed, this causes the waveform to get cropped */
|
2022-05-24 09:06:04 +02:00
|
|
|
min-width: 0;
|
2022-01-13 10:32:27 +01:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* we put the timestamps for media (other than stickers) atop the media */
|
2022-05-24 09:06:04 +02:00
|
|
|
&.mx_EventTile_image {
|
|
|
|
.mx_MessageTimestamp {
|
2023-05-09 23:06:19 +02:00
|
|
|
border-radius: var(--MBody-border-radius);
|
2022-09-08 16:54:35 +02:00
|
|
|
/* Hardcoded colours because it's the same on all themes */
|
|
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
|
|
color: #ffffff;
|
|
|
|
padding: 0px 4px 0px 4px;
|
2022-05-24 09:06:04 +02:00
|
|
|
}
|
2022-01-13 10:32:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-18 11:37:44 +01:00
|
|
|
&.mx_EventTile_sticker {
|
2022-07-27 15:39:29 +02:00
|
|
|
> a, /* timestamp wrapper anchor */
|
2022-01-19 02:48:07 +01:00
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* position timestamps for stickers to the right of the un-bubbled sticker */
|
2022-01-18 11:37:44 +01:00
|
|
|
right: unset;
|
|
|
|
left: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MStickerBody_wrapper {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-18 10:31:21 +01:00
|
|
|
.mx_MImageBody {
|
|
|
|
width: 100%;
|
|
|
|
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MImageBody_thumbnail.mx_MImageBody_thumbnail--blurhash {
|
|
|
|
position: unset;
|
2022-01-18 10:31:21 +01:00
|
|
|
}
|
2021-10-28 16:32:30 +02:00
|
|
|
}
|
2021-12-16 19:35:51 +01:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* noinspection CssReplaceWithShorthandSafely */
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody {
|
|
|
|
border-radius: unset;
|
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
|
|
|
}
|
|
|
|
|
2021-12-16 19:35:51 +01:00
|
|
|
.mx_EventTile_e2eIcon {
|
2022-07-27 15:39:29 +02:00
|
|
|
flex-shrink: 0; /* keep it at full size */
|
2023-10-17 09:01:37 +02:00
|
|
|
|
2024-01-02 19:56:39 +01:00
|
|
|
/* Keep height equal to text for shield alignment, additional 2px because of 1px padding on text */
|
2023-10-17 09:01:37 +02:00
|
|
|
height: calc($font-18px + 2px);
|
2021-12-16 19:35:51 +01:00
|
|
|
}
|
2023-11-20 18:27:54 +01:00
|
|
|
|
|
|
|
.mx_MPollEndBody {
|
2024-01-02 19:56:39 +01:00
|
|
|
/* Prevent the poll end body from exceeding the tile width */
|
2023-11-20 18:27:54 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
2021-10-28 16:32:30 +02:00
|
|
|
}
|
|
|
|
|
2022-01-10 13:53:11 +01:00
|
|
|
&:not(.mx_EventTile_noBubble) .mx_EventTile_line:not(.mx_EventTile_mediaLine) {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* make the top and bottom padding 1px smaller so that we can pad
|
|
|
|
.mx_EventTile_content by 1px */
|
|
|
|
/* to avoid anti-zalgo cutting off our larger than text emojis. */
|
2022-01-27 10:45:52 +01:00
|
|
|
padding: calc(var(--gutterSize) - 1px);
|
2022-07-27 15:39:29 +02:00
|
|
|
padding-right: 60px; /* space for the timestamp */
|
2021-10-28 16:32:30 +02:00
|
|
|
background: var(--backgroundColor);
|
2022-01-27 10:45:52 +01:00
|
|
|
|
|
|
|
.mx_EventTile_content {
|
|
|
|
padding: 1px;
|
|
|
|
}
|
2021-06-18 19:59:22 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&.mx_EventTile_continuation[data-self="false"] .mx_EventTile_line {
|
2021-07-07 12:04:28 +02:00
|
|
|
border-top-left-radius: 0;
|
2021-10-28 16:32:30 +02:00
|
|
|
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 17:42:32 +01:00
|
|
|
.mx_MImageBody::before,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody,
|
2022-04-12 10:13:55 +02:00
|
|
|
.mx_MLocationBody_map,
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 16:32:30 +02:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
}
|
2021-07-07 12:04:28 +02:00
|
|
|
}
|
2022-07-15 15:53:23 +02:00
|
|
|
&.mx_EventTile_lastInSection[data-self="false"] .mx_EventTile_line {
|
2021-07-07 12:04:28 +02:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
2021-10-28 16:32:30 +02:00
|
|
|
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 17:42:32 +01:00
|
|
|
.mx_MImageBody::before,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody,
|
2022-04-12 10:13:55 +02:00
|
|
|
.mx_MLocationBody_map,
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 16:32:30 +02:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
}
|
2021-07-07 12:04:28 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&.mx_EventTile_continuation[data-self="true"] .mx_EventTile_line {
|
2021-07-07 13:00:31 +02:00
|
|
|
border-top-right-radius: 0;
|
2021-10-28 16:32:30 +02:00
|
|
|
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 17:42:32 +01:00
|
|
|
.mx_MImageBody::before,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody,
|
2022-04-12 10:13:55 +02:00
|
|
|
.mx_MLocationBody_map,
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 16:32:30 +02:00
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2021-07-07 13:00:31 +02:00
|
|
|
}
|
2022-07-15 15:53:23 +02:00
|
|
|
&.mx_EventTile_lastInSection[data-self="true"] .mx_EventTile_line {
|
2021-07-07 13:00:31 +02:00
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
2021-10-28 16:32:30 +02:00
|
|
|
|
2022-03-28 21:07:02 +02:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 17:42:32 +01:00
|
|
|
.mx_MImageBody::before,
|
2022-01-24 20:01:20 +01:00
|
|
|
.mx_MediaBody,
|
2022-04-12 10:13:55 +02:00
|
|
|
.mx_MLocationBody_map,
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 16:32:30 +02:00
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
|
|
|
}
|
2021-07-07 13:00:31 +02:00
|
|
|
}
|
2021-07-07 12:04:28 +02:00
|
|
|
|
2021-07-23 12:09:39 +02:00
|
|
|
&.mx_EventTile_noSender {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: -19px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-has-reply="true"] {
|
2021-06-30 13:06:16 +02:00
|
|
|
> .mx_EventTile_line {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2021-10-15 18:42:44 +02:00
|
|
|
.mx_ReplyChain {
|
2021-06-30 18:04:07 +02:00
|
|
|
.mx_EventTile_reply {
|
2021-07-13 10:15:12 +02:00
|
|
|
max-width: 90%;
|
2021-06-30 18:04:07 +02:00
|
|
|
padding: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
> a, /* timestamp wrapper anchor */
|
2022-01-19 02:48:07 +01:00
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
2021-06-30 18:04:07 +02:00
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile {
|
|
|
|
display: flex;
|
|
|
|
gap: var(--gutterSize);
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: static;
|
|
|
|
}
|
2022-03-22 23:14:55 +01:00
|
|
|
.mx_DisambiguatedProfile {
|
2021-06-30 18:04:07 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-30 13:06:16 +02:00
|
|
|
}
|
|
|
|
|
2022-02-01 10:27:14 +01:00
|
|
|
.mx_MPollBody {
|
2022-07-27 15:39:29 +02:00
|
|
|
width: 550px; /* to prevent timestamp overlapping summary text */
|
|
|
|
max-width: 100%; /* prevent overflowing a reply tile */
|
2022-02-01 10:27:14 +01:00
|
|
|
|
|
|
|
.mx_MPollBody_totalVotes {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* align summary text with corner timestamp */
|
2022-02-01 10:27:14 +01:00
|
|
|
padding: 4px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-27 10:23:34 +02:00
|
|
|
&.mx_EventTile_bad {
|
2022-06-28 15:05:19 +02:00
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-27 10:23:34 +02:00
|
|
|
/* Special layout scenario for "Unable To Decrypt (UTD)" events */
|
|
|
|
.mx_EventTile_line {
|
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
"reply reply" auto
|
|
|
|
"shield body" auto
|
2022-12-12 12:24:14 +01:00
|
|
|
/ auto 1fr;
|
2022-05-27 10:23:34 +02:00
|
|
|
|
2022-05-27 11:41:53 +02:00
|
|
|
.mx_UnknownBody,
|
|
|
|
.mx_ReplyChain_wrapper,
|
|
|
|
.mx_ViewSourceEvent {
|
2022-07-27 15:39:29 +02:00
|
|
|
min-width: 0; /* Prevent a grid blowout */
|
2022-05-27 11:41:53 +02:00
|
|
|
}
|
|
|
|
|
2022-05-27 10:23:34 +02:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
grid-area: shield;
|
2022-12-15 18:24:33 +01:00
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
2022-05-27 10:23:34 +02:00
|
|
|
}
|
2022-05-25 06:50:36 +02:00
|
|
|
|
2022-12-15 18:24:33 +01:00
|
|
|
.mx_UnknownBody,
|
|
|
|
.mx_DecryptionFailureBody {
|
2022-05-27 10:23:34 +02:00
|
|
|
grid-area: body;
|
|
|
|
}
|
2022-05-25 06:50:36 +02:00
|
|
|
|
2022-05-27 10:23:34 +02:00
|
|
|
.mx_ReplyChain_wrapper {
|
|
|
|
grid-area: reply;
|
|
|
|
}
|
2021-07-07 15:13:58 +02:00
|
|
|
}
|
2022-05-25 06:50:36 +02:00
|
|
|
|
2022-05-27 10:23:34 +02:00
|
|
|
&.mx_EventTile_info {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* "Unable To Decrypt" layout for hidden events */
|
2022-05-27 10:23:34 +02:00
|
|
|
.mx_EventTile_line {
|
2022-07-27 15:39:29 +02:00
|
|
|
gap: 0 9px; /* 9px: margin value of E2E icon */
|
2022-05-27 10:23:34 +02:00
|
|
|
align-items: center;
|
|
|
|
grid-template:
|
|
|
|
"shield source" auto
|
2022-12-12 12:24:14 +01:00
|
|
|
/ auto 1fr;
|
2022-05-27 10:23:34 +02:00
|
|
|
|
|
|
|
.mx_ViewSourceEvent {
|
|
|
|
grid-area: source;
|
|
|
|
}
|
|
|
|
}
|
2021-07-07 15:13:58 +02:00
|
|
|
}
|
2021-06-30 13:06:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MTextBody {
|
2021-07-13 10:15:12 +02:00
|
|
|
max-width: 100%;
|
2021-06-30 13:06:16 +02:00
|
|
|
}
|
2022-01-11 18:11:08 +01:00
|
|
|
|
2022-09-30 21:26:08 +02:00
|
|
|
.mx_LegacyCallEvent_wrapper,
|
|
|
|
.mx_CallEvent_wrapper {
|
2022-01-11 18:11:08 +01:00
|
|
|
justify-content: center;
|
|
|
|
}
|
2021-06-18 19:59:22 +02:00
|
|
|
}
|
2021-07-27 11:30:25 +02:00
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile.mx_EventTile_noBubble[data-layout="bubble"] {
|
2021-12-15 20:47:57 +01:00
|
|
|
--backgroundColor: transparent;
|
2022-01-24 14:51:57 +01:00
|
|
|
|
|
|
|
.mx_EventTile_line.mx_EventTile_emote {
|
2022-07-27 15:39:29 +02:00
|
|
|
padding-right: 60px; /* align with bubbles text */
|
2022-01-24 14:51:57 +01:00
|
|
|
font-style: italic;
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
> a {
|
|
|
|
/* timestamp anchor wrapper */
|
2022-01-24 14:51:57 +01:00
|
|
|
align-self: center;
|
|
|
|
bottom: unset;
|
|
|
|
top: unset;
|
2022-07-27 15:39:29 +02:00
|
|
|
font-style: normal; /* undo italic above */
|
2022-01-24 14:51:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MEmoteBody {
|
|
|
|
padding: 4px 0;
|
|
|
|
}
|
|
|
|
}
|
2021-12-15 20:47:57 +01:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout="bubble"],
|
|
|
|
.mx_EventTile.mx_EventTile_leftAlignedBubble[data-layout="bubble"] {
|
2022-01-25 14:10:17 +01:00
|
|
|
.mx_EventTile_line > a {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* hide this timestamp as the tile will render its own */
|
2022-01-25 14:10:17 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout="bubble"],
|
|
|
|
.mx_EventTile.mx_EventTile_leftAlignedBubble[data-layout="bubble"],
|
|
|
|
.mx_EventTile.mx_EventTile_info[data-layout="bubble"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
padding: 5px 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
2022-07-06 12:16:24 +02:00
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_info {
|
|
|
|
min-width: 100%;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Preserve alignment with left edge of text in bubbles */
|
2022-07-06 12:16:24 +02:00
|
|
|
margin: 0;
|
|
|
|
}
|
2022-06-28 15:05:19 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout="bubble"],
|
|
|
|
.mx_EventTile.mx_EventTile_leftAlignedBubble[data-layout="bubble"],
|
|
|
|
.mx_EventTile.mx_EventTile_info[data-layout="bubble"],
|
|
|
|
.mx_GenericEventListSummary[data-layout="bubble"][data-expanded="false"] {
|
2021-07-27 11:30:25 +02:00
|
|
|
--backgroundColor: transparent;
|
|
|
|
--gutterSize: 0;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: static;
|
|
|
|
order: -1;
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-inline-end: var(--EventTile_bubble_gap-inline); /* Same spacing between E2E icon and a hidden event */
|
2021-07-27 11:30:25 +02:00
|
|
|
}
|
2021-07-29 10:04:47 +02:00
|
|
|
|
2021-07-29 10:27:00 +02:00
|
|
|
.mx_EventTile_e2eIcon {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-inline-start: 0; /* mx_EventTile_avatar has margin-inline-end, so margin is not needed here */
|
2022-06-15 17:50:35 +02:00
|
|
|
align-self: center;
|
2021-07-29 10:27:00 +02:00
|
|
|
}
|
|
|
|
|
2022-01-19 02:48:07 +01:00
|
|
|
.mx_EventTile_line {
|
2022-07-27 15:39:29 +02:00
|
|
|
> a, /* timestamp wrapper anchor */
|
2022-01-19 02:48:07 +01:00
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
|
|
|
right: auto;
|
|
|
|
left: -77px;
|
|
|
|
bottom: unset;
|
|
|
|
align-self: center;
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_MessageTimestamp,
|
|
|
|
&.mx_MessageTimestamp {
|
2022-01-19 02:48:07 +01:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2022-01-13 23:45:54 +01:00
|
|
|
}
|
2021-07-29 10:27:00 +02:00
|
|
|
}
|
2021-07-27 11:30:25 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_GenericEventListSummary[data-layout="bubble"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
.mx_EventTile.mx_EventTile_info .mx_EventTile_line {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Avoid overflow of event info by cancelling width settings */
|
2022-06-28 15:05:19 +02:00
|
|
|
width: 100%;
|
|
|
|
min-width: 0;
|
|
|
|
max-width: 100%;
|
2021-07-27 11:30:25 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* increase margin between ELS and the next Event to not have our user avatar overlap the expand/collapse button */
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-expanded="false"] + .mx_EventTile[data-layout="bubble"][data-self="true"] {
|
2022-06-28 15:05:19 +02:00
|
|
|
margin-top: 20px;
|
2022-04-28 18:33:54 +02:00
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
&[data-expanded="true"] .mx_EventTile_info {
|
2022-06-28 15:05:19 +02:00
|
|
|
padding: 2px 0;
|
|
|
|
margin-right: 0;
|
2022-06-10 10:21:22 +02:00
|
|
|
|
2022-06-28 15:05:19 +02:00
|
|
|
.mx_MessageActionBar {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Reset .mx_EventTile[data-layout="bubble"][data-self="false"] .mx_MessageActionBar */
|
2022-07-15 15:53:23 +02:00
|
|
|
inset-inline-start: initial;
|
2022-07-27 15:39:29 +02:00
|
|
|
inset-inline-end: 48px; /* align with that of right-column bubbles */
|
2022-06-10 10:21:22 +02:00
|
|
|
}
|
|
|
|
|
2022-06-28 15:05:19 +02:00
|
|
|
.mx_ReadReceiptGroup {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* match alignment to RRs of chat bubbles */
|
2022-06-28 15:05:19 +02:00
|
|
|
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end) + 60px);
|
2022-05-18 15:10:02 +02:00
|
|
|
}
|
2022-01-18 10:31:21 +01:00
|
|
|
|
2022-06-28 15:05:19 +02:00
|
|
|
&::before {
|
2022-07-27 15:39:29 +02:00
|
|
|
inset-inline-end: 0; /* match alignment of the hover background to that of chat bubbles */
|
2022-01-18 10:31:21 +01:00
|
|
|
}
|
2021-12-16 19:34:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-15 15:53:23 +02:00
|
|
|
.mx_EventTile_tileError[data-layout="bubble"] .mx_EventTile_line {
|
2022-07-27 15:39:29 +02:00
|
|
|
flex-direction: column; /* restore the centering */
|
2022-01-27 14:34:26 +01:00
|
|
|
}
|