2021-06-18 17:59:22 +00: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.
|
|
|
|
|
*/
|
|
|
|
|
|
2022-01-11 17:21:59 +00:00
|
|
|
|
.mx_RoomView_body[data-layout=bubble] {
|
2022-01-17 10:01:31 +00:00
|
|
|
|
.mx_RoomView_timeline, .mx_RoomView_statusArea, .mx_MessageComposer {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
2022-01-11 17:21:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-01 13:56:34 +00:00
|
|
|
|
.mx_EventTile[data-layout=bubble],
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary[data-layout=bubble] {
|
2021-06-18 17:59:22 +00:00
|
|
|
|
--avatarSize: 32px;
|
2021-07-05 14:22:18 +00:00
|
|
|
|
--gutterSize: 11px;
|
2021-06-30 16:04:07 +00:00
|
|
|
|
--cornerRadius: 12px;
|
2021-06-18 17:59:22 +00:00
|
|
|
|
--maxWidth: 70%;
|
2021-12-23 15:48:16 +00:00
|
|
|
|
margin-right: 60px;
|
2021-07-01 13:56:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-13 15:20:43 +00:00
|
|
|
|
.mx_RoomView_searchResultsPanel {
|
|
|
|
|
.mx_EventTile[data-layout=bubble] {
|
|
|
|
|
.mx_SenderProfile {
|
|
|
|
|
// Group layout adds a 64px left margin, which we really don't want on search results
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&[data-self=true] {
|
|
|
|
|
// The avatars end up overlapping, so just hide them
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Mirror rough designs for "greyed out" text
|
|
|
|
|
&.mx_EventTile_contextual .mx_EventTile_line {
|
|
|
|
|
opacity: 0.4;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-01 13:56:34 +00:00
|
|
|
|
.mx_EventTile[data-layout=bubble] {
|
2021-06-18 17:59:22 +00:00
|
|
|
|
position: relative;
|
|
|
|
|
margin-top: var(--gutterSize);
|
2021-09-11 15:39:44 +00:00
|
|
|
|
margin-left: 49px;
|
2021-09-14 03:32:01 +00:00
|
|
|
|
font-size: $font-14px;
|
2021-07-07 09:23:38 +00:00
|
|
|
|
|
2022-04-27 17:10:27 +00:00
|
|
|
|
.mx_ThreadSummary {
|
2021-10-19 08:31:28 +00:00
|
|
|
|
clear: both;
|
|
|
|
|
width: fit-content;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-24 13:51:57 +00:00
|
|
|
|
.mx_EventTile_content {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 09:23:38 +00:00
|
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
|
|
2021-08-26 14:19:46 +00:00
|
|
|
|
&.mx_EventTile_highlight {
|
|
|
|
|
&::before {
|
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-11 13:37:29 +00:00
|
|
|
|
color: $alert;
|
2021-08-08 13:00:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-01 13:23:00 +00:00
|
|
|
|
/* For replies */
|
|
|
|
|
.mx_EventTile {
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-29 09:12:07 +00:00
|
|
|
|
&::before {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -1px;
|
|
|
|
|
bottom: -1px;
|
|
|
|
|
left: -60px;
|
|
|
|
|
right: -60px;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-22 14:48:55 +00:00
|
|
|
|
&:hover,
|
|
|
|
|
&.mx_EventTile_selected {
|
2021-07-29 09:12:07 +00:00
|
|
|
|
|
2021-07-07 09:23:38 +00:00
|
|
|
|
&::before {
|
|
|
|
|
background: $eventbubble-bg-hover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
img {
|
|
|
|
|
box-shadow: 0 0 0 3px $eventbubble-bg-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-03-22 22:14:55 +00:00
|
|
|
|
.mx_DisambiguatedProfile,
|
2021-06-18 17:59:22 +00:00
|
|
|
|
.mx_EventTile_line {
|
2022-05-25 14:08:43 +00:00
|
|
|
|
--EventBubbleTile_line-max-width: 70%;
|
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
|
width: fit-content;
|
2022-05-25 14:08:43 +00:00
|
|
|
|
max-width: var(--EventBubbleTile_line-max-width); // Align message bubble and displayName
|
2022-05-25 04:31:39 +00:00
|
|
|
|
line-height: $font-18px; // fixed line height to prevent emoji from being taller than text
|
2021-06-18 17:59:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-22 07:07:29 +00:00
|
|
|
|
// other users profile on bubble layout
|
|
|
|
|
> .mx_DisambiguatedProfile {
|
|
|
|
|
white-space: normal; // display mxid
|
|
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile_displayName {
|
|
|
|
|
white-space: nowrap; // truncate long display names
|
|
|
|
|
margin-inline-end: 5px;
|
|
|
|
|
|
|
|
|
|
// For RTL displayName
|
|
|
|
|
unicode-bidi: embed;
|
|
|
|
|
direction: ltr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile_mxid {
|
|
|
|
|
margin-inline-start: 0; // Align mxid with truncated displayName inside mx_EventTile[data-layout=bubble]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-03 13:28:17 +00:00
|
|
|
|
// inside mx_RoomView_MessageList, outside of mx_ReplyTile
|
|
|
|
|
// (on the main panel and the chat panel with a maximized widget)
|
|
|
|
|
> .mx_DisambiguatedProfile,
|
|
|
|
|
// inside a thread, outside of mx_ReplyTile
|
|
|
|
|
.mx_EventTile_senderDetails > .mx_DisambiguatedProfile {
|
2021-07-07 13:13:58 +00:00
|
|
|
|
position: relative;
|
|
|
|
|
top: -2px;
|
2021-07-13 08:15:12 +00:00
|
|
|
|
left: 2px;
|
2021-09-14 03:32:01 +00:00
|
|
|
|
font-size: $font-15px;
|
2021-06-18 17:59:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-12-23 15:48:00 +00:00
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
|
top: -28px;
|
|
|
|
|
z-index: 9; // above the avatar
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-11 16:04:39 +00:00
|
|
|
|
.mx_MediaBody {
|
|
|
|
|
// leave space for the timestamp
|
|
|
|
|
padding-right: 48px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-23 07:02:13 +00: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 18:07:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-11 17:11:08 +00:00
|
|
|
|
.mx_CallEvent {
|
|
|
|
|
background-color: unset;
|
|
|
|
|
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-color: $quinary-content;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 11:00:31 +00:00
|
|
|
|
&[data-self=false] {
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
2021-10-28 14:32:30 +00:00
|
|
|
|
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
2022-01-13 16:42:32 +00:00
|
|
|
|
.mx_MImageBody::before,
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody,
|
2022-04-12 08:13:55 +00:00
|
|
|
|
.mx_MLocationBody_map,
|
|
|
|
|
.mx_MBeaconBody {
|
2022-01-24 19:01:20 +00:00
|
|
|
|
border-bottom-right-radius: var(--cornerRadius) !important;
|
2021-10-28 14:32:30 +00:00
|
|
|
|
}
|
2021-07-07 11:00:31 +00:00
|
|
|
|
}
|
2022-01-18 10:37:44 +00:00
|
|
|
|
|
2021-07-07 11:15:25 +00:00
|
|
|
|
.mx_EventTile_avatar {
|
2021-07-13 08:15:12 +00:00
|
|
|
|
left: -34px;
|
2021-07-07 11:15:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-19 01:48:07 +00:00
|
|
|
|
.mx_MessageActionBar {
|
2022-05-16 15:44:05 +00:00
|
|
|
|
inset-inline-start: calc(100% - var(--MessageActionBar-size-box));
|
|
|
|
|
right: initial; // Reset the default value
|
2022-01-19 01:48:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-10 17:01:46 +00:00
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
|
margin-inline-start: calc(-1 * var(--gutterSize));
|
|
|
|
|
margin-inline-end: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 11:15:25 +00:00
|
|
|
|
--backgroundColor: $eventbubble-others-bg;
|
2021-07-07 11:00:31 +00:00
|
|
|
|
}
|
2022-01-18 10:37:44 +00:00
|
|
|
|
|
2021-07-07 11:00:31 +00:00
|
|
|
|
&[data-self=true] {
|
|
|
|
|
.mx_EventTile_line {
|
2022-04-20 19:24:34 +00:00
|
|
|
|
margin-inline-start: auto;
|
2021-10-28 14:32:30 +00:00
|
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
|
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
2022-01-13 16:42:32 +00:00
|
|
|
|
.mx_MImageBody::before,
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody,
|
2022-04-12 08:13:55 +00:00
|
|
|
|
.mx_MLocationBody_map,
|
|
|
|
|
.mx_MBeaconBody {
|
2022-01-24 19:01:20 +00:00
|
|
|
|
border-bottom-left-radius: var(--cornerRadius) !important;
|
2021-10-28 14:32:30 +00:00
|
|
|
|
}
|
2021-07-07 11:15:25 +00:00
|
|
|
|
}
|
2021-10-19 08:31:28 +00:00
|
|
|
|
|
2022-01-18 10:37:44 +00:00
|
|
|
|
.mx_EventTile_sticker {
|
|
|
|
|
// align timestamp with those inside bubbles
|
|
|
|
|
margin-right: 32px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-27 17:10:27 +00:00
|
|
|
|
.mx_ThreadSummary {
|
2022-05-10 17:01:46 +00:00
|
|
|
|
margin-inline-start: auto;
|
|
|
|
|
margin-inline-end: calc(-1 * var(--gutterSize));
|
2021-10-19 08:31:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-03-22 22:14:55 +00:00
|
|
|
|
.mx_DisambiguatedProfile {
|
2021-07-07 11:15:25 +00:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
2021-07-22 13:22:18 +00:00
|
|
|
|
|
2022-03-22 22:14:55 +00:00
|
|
|
|
.mx_ReplyTile .mx_DisambiguatedProfile {
|
2021-07-22 13:22:18 +00:00
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 11:15:25 +00:00
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
|
float: right;
|
|
|
|
|
clear: right;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
/* Moving the "add reaction button" before the reactions */
|
|
|
|
|
> :last-child {
|
|
|
|
|
order: -1;
|
|
|
|
|
}
|
2021-07-07 11:00:31 +00:00
|
|
|
|
}
|
2022-05-16 15:44:05 +00:00
|
|
|
|
|
2021-07-07 11:15:25 +00:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: -19px; // height of the sender block
|
2021-07-07 13:13:58 +00:00
|
|
|
|
right: -35px;
|
2021-07-07 11:15:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-11 16:04:39 +00:00
|
|
|
|
.mx_MediaBody {
|
|
|
|
|
background: $eventbubble-self-bg;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-16 15:44:05 +00:00
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
|
inset-inline-end: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 11:15:25 +00:00
|
|
|
|
--backgroundColor: $eventbubble-self-bg;
|
2021-07-07 11:00:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
|
.mx_EventTile_line {
|
2022-05-21 20:19:56 +00:00
|
|
|
|
--EventBubbleTile_line-margin-inline-end: -12px;
|
|
|
|
|
|
2021-07-07 10:04:28 +00:00
|
|
|
|
position: relative;
|
2021-06-30 16:04:07 +00:00
|
|
|
|
display: flex;
|
2021-07-07 13:13:58 +00:00
|
|
|
|
gap: 5px;
|
2022-05-21 20:19:56 +00:00
|
|
|
|
margin: 0 var(--EventBubbleTile_line-margin-inline-end) 0 -9px;
|
2021-10-28 14:32:30 +00:00
|
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
2021-12-23 15:48:16 +00:00
|
|
|
|
|
2022-01-19 01:48:07 +00: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
|
|
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
2021-06-30 16:04:07 +00:00
|
|
|
|
position: absolute;
|
2021-12-23 15:48:16 +00:00
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
2022-01-10 12:53:11 +00:00
|
|
|
|
z-index: 3; // above media and location share maps
|
2021-06-30 16:04:07 +00:00
|
|
|
|
}
|
2021-10-28 14:32:30 +00:00
|
|
|
|
|
2022-05-24 07:06:04 +00:00
|
|
|
|
&.mx_EventTile_mediaLine {
|
|
|
|
|
// TODO: Use a common class name instead
|
|
|
|
|
.mx_MFileBody,
|
|
|
|
|
.mx_MAudioBody {
|
|
|
|
|
max-width: 100%; // avoid overflow
|
|
|
|
|
}
|
2022-01-24 19:01:20 +00:00
|
|
|
|
|
2022-05-24 07:06:04 +00:00
|
|
|
|
.mx_MVoiceMessageBody {
|
|
|
|
|
// allow the event to be collapsed, this causes the waveform to get cropped
|
|
|
|
|
min-width: 0;
|
2022-01-13 09:32:27 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-24 07:06:04 +00:00
|
|
|
|
// we put the timestamps for media (other than stickers) atop the media
|
|
|
|
|
// for images we also apply a linear gradient and change the timestamp colour to aid readability
|
|
|
|
|
&.mx_EventTile_image {
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
|
color: #ffffff; // regardless of theme, always visible on the below gradient
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// linear gradient to make the timestamp more visible
|
|
|
|
|
.mx_MImageBody::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
|
|
|
|
|
z-index: 1;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2022-01-13 09:32:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-18 10:37:44 +00:00
|
|
|
|
&.mx_EventTile_sticker {
|
2022-01-19 01:48:07 +00:00
|
|
|
|
> a, // timestamp wrapper anchor
|
|
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
2022-01-18 10:37:44 +00:00
|
|
|
|
// position timestamps for stickers to the right of the un-bubbled sticker
|
|
|
|
|
right: unset;
|
|
|
|
|
left: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MStickerBody_wrapper {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-18 09:31:21 +00:00
|
|
|
|
.mx_MImageBody {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MImageBody_thumbnail.mx_MImageBody_thumbnail--blurhash {
|
|
|
|
|
position: unset;
|
2022-01-18 09:31:21 +00:00
|
|
|
|
}
|
2021-10-28 14:32:30 +00:00
|
|
|
|
}
|
2021-12-16 18:35:51 +00:00
|
|
|
|
|
2022-01-24 19:01:20 +00:00
|
|
|
|
//noinspection CssReplaceWithShorthandSafely
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody {
|
|
|
|
|
border-radius: unset;
|
|
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
|
|
|
|
}
|
|
|
|
|
|
2021-12-16 18:35:51 +00:00
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
flex-shrink: 0; // keep it at full size
|
|
|
|
|
}
|
2021-10-28 14:32:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-10 12:53:11 +00:00
|
|
|
|
&:not(.mx_EventTile_noBubble) .mx_EventTile_line:not(.mx_EventTile_mediaLine) {
|
2022-01-27 09:45:52 +00: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.
|
|
|
|
|
padding: calc(var(--gutterSize) - 1px);
|
2021-12-23 15:48:16 +00:00
|
|
|
|
padding-right: 60px; // space for the timestamp
|
2021-10-28 14:32:30 +00:00
|
|
|
|
background: var(--backgroundColor);
|
2022-01-27 09:45:52 +00:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_content {
|
|
|
|
|
padding: 1px;
|
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 11:00:31 +00:00
|
|
|
|
&.mx_EventTile_continuation[data-self=false] .mx_EventTile_line {
|
2021-07-07 10:04:28 +00:00
|
|
|
|
border-top-left-radius: 0;
|
2021-10-28 14:32:30 +00:00
|
|
|
|
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 16:42:32 +00:00
|
|
|
|
.mx_MImageBody::before,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody,
|
2022-04-12 08:13:55 +00:00
|
|
|
|
.mx_MLocationBody_map,
|
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 14:32:30 +00:00
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
}
|
2021-07-07 10:04:28 +00:00
|
|
|
|
}
|
2021-07-07 11:00:31 +00:00
|
|
|
|
&.mx_EventTile_lastInSection[data-self=false] .mx_EventTile_line {
|
2021-07-07 10:04:28 +00:00
|
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
2021-10-28 14:32:30 +00:00
|
|
|
|
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 16:42:32 +00:00
|
|
|
|
.mx_MImageBody::before,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody,
|
2022-04-12 08:13:55 +00:00
|
|
|
|
.mx_MLocationBody_map,
|
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 14:32:30 +00:00
|
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
|
}
|
2021-07-07 10:04:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-07 11:00:31 +00:00
|
|
|
|
&.mx_EventTile_continuation[data-self=true] .mx_EventTile_line {
|
|
|
|
|
border-top-right-radius: 0;
|
2021-10-28 14:32:30 +00:00
|
|
|
|
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 16:42:32 +00:00
|
|
|
|
.mx_MImageBody::before,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody,
|
2022-04-12 08:13:55 +00:00
|
|
|
|
.mx_MLocationBody_map,
|
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 14:32:30 +00:00
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
}
|
2021-07-07 11:00:31 +00:00
|
|
|
|
}
|
|
|
|
|
&.mx_EventTile_lastInSection[data-self=true] .mx_EventTile_line {
|
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
2021-10-28 14:32:30 +00:00
|
|
|
|
|
2022-03-28 19:07:02 +00:00
|
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail_container,
|
|
|
|
|
.mx_MVideoBody .mx_MVideoBody_container,
|
2022-01-13 16:42:32 +00:00
|
|
|
|
.mx_MImageBody::before,
|
2022-01-24 19:01:20 +00:00
|
|
|
|
.mx_MediaBody,
|
2022-04-12 08:13:55 +00:00
|
|
|
|
.mx_MLocationBody_map,
|
|
|
|
|
.mx_MBeaconBody {
|
2021-10-28 14:32:30 +00:00
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
|
|
|
|
}
|
2021-07-07 11:00:31 +00:00
|
|
|
|
}
|
2021-07-07 10:04:28 +00:00
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
2021-06-30 11:06:16 +00:00
|
|
|
|
line-height: 1;
|
2021-07-23 10:12:52 +00:00
|
|
|
|
z-index: 9;
|
2021-06-18 17:59:22 +00:00
|
|
|
|
img {
|
2021-11-10 09:46:33 +00:00
|
|
|
|
box-shadow: 0 0 0 3px $background;
|
2021-06-18 17:59:22 +00:00
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-23 10:09:39 +00:00
|
|
|
|
&.mx_EventTile_noSender {
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: -19px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-23 12:17:26 +00:00
|
|
|
|
.mx_BaseAvatar,
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-30 11:06:16 +00:00
|
|
|
|
&[data-has-reply=true] {
|
|
|
|
|
> .mx_EventTile_line {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-15 16:42:44 +00:00
|
|
|
|
.mx_ReplyChain_show {
|
2021-06-30 11:06:16 +00:00
|
|
|
|
order: 99999;
|
|
|
|
|
}
|
2021-06-30 16:04:07 +00:00
|
|
|
|
|
2021-10-15 16:42:44 +00:00
|
|
|
|
.mx_ReplyChain {
|
2021-06-30 16:04:07 +00:00
|
|
|
|
.mx_EventTile_reply {
|
2021-07-13 08:15:12 +00:00
|
|
|
|
max-width: 90%;
|
2021-06-30 16:04:07 +00:00
|
|
|
|
padding: 0;
|
2022-01-19 01:48:07 +00:00
|
|
|
|
> a, // timestamp wrapper anchor
|
|
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
2021-06-30 16:04:07 +00:00
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--gutterSize);
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
position: static;
|
|
|
|
|
}
|
2022-03-22 22:14:55 +00:00
|
|
|
|
.mx_DisambiguatedProfile {
|
2021-06-30 16:04:07 +00:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-06-30 11:06:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-02-01 09:27:14 +00:00
|
|
|
|
.mx_MPollBody {
|
|
|
|
|
width: 550px; // to prevent timestamp overlapping summary text
|
2022-05-02 08:36:59 +00:00
|
|
|
|
max-width: 100%; // prevent overflowing a reply tile
|
2022-02-01 09:27:14 +00:00
|
|
|
|
|
|
|
|
|
.mx_MPollBody_totalVotes {
|
|
|
|
|
// align summary text with corner timestamp
|
|
|
|
|
padding: 4px 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-13 08:15:12 +00:00
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
|
margin-right: -18px;
|
|
|
|
|
margin-left: -9px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-27 08:23:34 +00:00
|
|
|
|
&.mx_EventTile_bad {
|
|
|
|
|
/* Special layout scenario for "Unable To Decrypt (UTD)" events */
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template:
|
|
|
|
|
"reply reply" auto
|
|
|
|
|
"shield body" auto
|
|
|
|
|
"shield link" auto
|
|
|
|
|
/ auto 1fr;
|
|
|
|
|
|
2022-05-27 09:41:53 +00:00
|
|
|
|
.mx_UnknownBody,
|
|
|
|
|
.mx_EventTile_keyRequestInfo,
|
|
|
|
|
.mx_ReplyChain_wrapper,
|
|
|
|
|
.mx_ViewSourceEvent {
|
|
|
|
|
min-width: 0; // Prevent a grid blowout
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-27 08:23:34 +00:00
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
grid-area: shield;
|
|
|
|
|
}
|
2022-05-25 04:50:36 +00:00
|
|
|
|
|
2022-05-27 08:23:34 +00:00
|
|
|
|
.mx_UnknownBody {
|
|
|
|
|
grid-area: body;
|
|
|
|
|
}
|
2022-05-25 04:50:36 +00:00
|
|
|
|
|
2022-05-27 08:23:34 +00:00
|
|
|
|
.mx_EventTile_keyRequestInfo {
|
|
|
|
|
grid-area: link;
|
|
|
|
|
}
|
2022-05-25 04:50:36 +00:00
|
|
|
|
|
2022-05-27 08:23:34 +00:00
|
|
|
|
.mx_ReplyChain_wrapper {
|
|
|
|
|
grid-area: reply;
|
|
|
|
|
}
|
2021-07-07 13:13:58 +00:00
|
|
|
|
}
|
2022-05-25 04:50:36 +00:00
|
|
|
|
|
2022-05-27 08:23:34 +00:00
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
// "Unable To Decrypt" layout for hidden events
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
gap: 0 9px; // 9px: margin value of E2E icon
|
|
|
|
|
align-items: center;
|
|
|
|
|
grid-template:
|
|
|
|
|
"shield source" auto
|
|
|
|
|
"shield link" auto
|
|
|
|
|
/ auto 1fr;
|
|
|
|
|
|
|
|
|
|
.mx_ViewSourceEvent {
|
|
|
|
|
grid-area: source;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-07 13:13:58 +00:00
|
|
|
|
}
|
2021-06-30 11:06:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-04-22 15:09:44 +00:00
|
|
|
|
.mx_ReadReceiptGroup {
|
2021-06-18 17:59:22 +00:00
|
|
|
|
position: absolute;
|
2022-06-02 02:43:07 +00:00
|
|
|
|
|
2022-04-28 13:39:17 +00:00
|
|
|
|
// as close to right gutter without clipping as possible
|
2022-06-02 02:43:07 +00:00
|
|
|
|
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end));
|
|
|
|
|
|
2022-04-28 13:39:17 +00:00
|
|
|
|
// (EventTileLine.line-height - ReadReceiptGroup.height) / 2
|
|
|
|
|
// this centers the ReadReceiptGroup if we’ve got a single line
|
|
|
|
|
bottom: calc(($font-18px - 24px) / 2);
|
2021-06-30 16:04:07 +00:00
|
|
|
|
top: auto;
|
2021-06-18 17:59:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-06-30 11:06:16 +00:00
|
|
|
|
.mx_MTextBody {
|
2021-07-13 08:15:12 +00:00
|
|
|
|
max-width: 100%;
|
2021-06-30 11:06:16 +00:00
|
|
|
|
}
|
2022-01-11 17:11:08 +00:00
|
|
|
|
|
|
|
|
|
.mx_CallEvent_wrapper {
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
|
}
|
2021-07-27 09:30:25 +00:00
|
|
|
|
|
2021-12-15 19:47:57 +00:00
|
|
|
|
.mx_EventTile.mx_EventTile_noBubble[data-layout=bubble] {
|
|
|
|
|
--backgroundColor: transparent;
|
2022-01-24 13:51:57 +00:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_line.mx_EventTile_emote {
|
|
|
|
|
padding-right: 60px; // align with bubbles text
|
|
|
|
|
font-style: italic;
|
|
|
|
|
|
|
|
|
|
> a { // timestamp anchor wrapper
|
|
|
|
|
align-self: center;
|
|
|
|
|
bottom: unset;
|
|
|
|
|
top: unset;
|
|
|
|
|
font-style: normal; // undo italic above
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MEmoteBody {
|
|
|
|
|
padding: 4px 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-15 19:47:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-27 09:30:25 +00:00
|
|
|
|
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout=bubble],
|
2022-01-25 13:10:17 +00:00
|
|
|
|
.mx_EventTile.mx_EventTile_leftAlignedBubble[data-layout=bubble] {
|
|
|
|
|
.mx_EventTile_line > a {
|
|
|
|
|
// hide this timestamp as the tile will render its own
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout=bubble],
|
2021-08-20 08:04:40 +00:00
|
|
|
|
.mx_EventTile.mx_EventTile_leftAlignedBubble[data-layout=bubble],
|
2021-07-27 09:30:25 +00:00
|
|
|
|
.mx_EventTile.mx_EventTile_info[data-layout=bubble],
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary[data-layout=bubble][data-expanded=false] {
|
2021-07-27 09:30:25 +00:00
|
|
|
|
--backgroundColor: transparent;
|
|
|
|
|
--gutterSize: 0;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2021-08-04 15:09:48 +00:00
|
|
|
|
justify-content: flex-start;
|
2021-07-27 09:30:25 +00:00
|
|
|
|
padding: 5px 0;
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
position: static;
|
|
|
|
|
order: -1;
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
}
|
2021-07-29 08:04:47 +00:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_info {
|
|
|
|
|
min-width: 100%;
|
2021-09-14 15:27:03 +00:00
|
|
|
|
// Preserve alignment with left edge of text in bubbles
|
2021-09-11 15:39:44 +00:00
|
|
|
|
margin: 0;
|
2021-07-29 08:04:47 +00:00
|
|
|
|
}
|
2021-07-30 07:19:34 +00:00
|
|
|
|
|
2021-07-29 08:27:00 +00:00
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
margin-left: 9px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-19 01:48:07 +00:00
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
> a, // timestamp wrapper anchor
|
|
|
|
|
.mx_MessageActionBar + .mx_MessageTimestamp {
|
|
|
|
|
right: auto;
|
|
|
|
|
left: -77px;
|
|
|
|
|
bottom: unset;
|
|
|
|
|
align-self: center;
|
|
|
|
|
|
|
|
|
|
.mx_MessageTimestamp, &.mx_MessageTimestamp {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
2022-01-13 22:45:54 +00:00
|
|
|
|
}
|
2021-07-29 08:27:00 +00:00
|
|
|
|
}
|
2021-07-27 09:30:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary[data-layout=bubble] {
|
2021-07-29 09:48:22 +00:00
|
|
|
|
--maxWidth: 70%;
|
2021-07-27 09:30:25 +00:00
|
|
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
2021-12-16 18:34:59 +00:00
|
|
|
|
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary_toggle {
|
2021-12-16 18:34:59 +00:00
|
|
|
|
margin: 0 55px 0 5px;
|
2021-07-27 09:30:25 +00:00
|
|
|
|
float: none;
|
2021-12-16 18:34:59 +00:00
|
|
|
|
|
|
|
|
|
&[aria-expanded=false] {
|
|
|
|
|
order: 9;
|
|
|
|
|
}
|
|
|
|
|
&[aria-expanded=true] {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
2021-07-27 09:30:25 +00:00
|
|
|
|
}
|
2021-12-16 18:34:59 +00:00
|
|
|
|
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary_line {
|
2021-12-16 18:34:59 +00:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary_avatars {
|
2021-07-27 09:30:25 +00:00
|
|
|
|
padding-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-28 16:33:54 +00:00
|
|
|
|
.mx_EventTile {
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
// Avoid overflow of event info by cancelling width settings
|
|
|
|
|
width: 100%;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-27 09:30:25 +00:00
|
|
|
|
&::after {
|
|
|
|
|
content: "";
|
|
|
|
|
clear: both;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-18 13:10:02 +00:00
|
|
|
|
&[data-expanded=false] {
|
|
|
|
|
// Align with left edge of bubble tiles
|
|
|
|
|
padding: 0 49px;
|
2021-07-27 09:30:25 +00:00
|
|
|
|
|
2022-05-18 13:10:02 +00:00
|
|
|
|
// increase margin between ELS and the next Event to not have our user avatar overlap the expand/collapse button
|
|
|
|
|
+ .mx_EventTile[data-layout=bubble][data-self=true] {
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-16 18:34:59 +00:00
|
|
|
|
|
2022-05-18 13:10:02 +00:00
|
|
|
|
// ideally we'd use display=contents here for the layout to all work regardless of the *ELS but
|
|
|
|
|
// that breaks ScrollPanel's reliance upon offsetTop so we have to have a bit more finesse.
|
|
|
|
|
&[data-expanded=true] {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
margin: 0;
|
2022-01-18 09:31:21 +00:00
|
|
|
|
|
2022-05-18 13:10:02 +00:00
|
|
|
|
.mx_EventTile_info {
|
|
|
|
|
padding: 2px 0;
|
|
|
|
|
margin-right: 0;
|
2022-01-18 09:31:21 +00:00
|
|
|
|
|
2022-05-18 13:10:02 +00:00
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
|
inset-inline-start: initial; // Reset .mx_EventTile[data-layout="bubble"][data-self="false"] .mx_MessageActionBar
|
2022-06-02 02:43:07 +00:00
|
|
|
|
inset-inline-end: 48px; // align with that of right-column bubbles
|
2022-05-18 13:10:02 +00:00
|
|
|
|
}
|
2022-01-18 09:31:21 +00:00
|
|
|
|
|
2022-05-18 13:10:02 +00:00
|
|
|
|
.mx_ReadReceiptGroup {
|
2022-06-02 02:43:07 +00:00
|
|
|
|
// match alignment to RRs of chat bubbles
|
|
|
|
|
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end) + 60px);
|
2022-05-18 13:10:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::before {
|
2022-06-02 02:43:07 +00:00
|
|
|
|
inset-inline-end: 0; // match alignment of the hover background to that of chat bubbles
|
2022-05-18 13:10:02 +00:00
|
|
|
|
}
|
2022-01-18 09:31:21 +00:00
|
|
|
|
}
|
2021-12-16 18:34:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-27 09:30:25 +00:00
|
|
|
|
/* events that do not require bubble layout */
|
2022-02-09 10:51:12 +00:00
|
|
|
|
.mx_GenericEventListSummary[data-layout=bubble],
|
2021-07-27 09:30:25 +00:00
|
|
|
|
.mx_EventTile.mx_EventTile_bad[data-layout=bubble] {
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
&::before {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-27 13:34:26 +00:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_tileError[data-layout=bubble] .mx_EventTile_line {
|
|
|
|
|
flex-direction: column; // restore the centering
|
|
|
|
|
}
|