2021-06-18 20:59:22 +03: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 20:21:59 +03:00
|
|
|
.mx_RoomView_body[data-layout=bubble] {
|
2022-01-17 13:01:31 +03:00
|
|
|
.mx_RoomView_timeline, .mx_RoomView_statusArea, .mx_MessageComposer {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 1200px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2022-01-11 20:21:59 +03:00
|
|
|
}
|
|
|
|
|
2021-07-01 16:56:34 +03:00
|
|
|
.mx_EventTile[data-layout=bubble],
|
2021-07-27 12:30:25 +03:00
|
|
|
.mx_EventListSummary[data-layout=bubble] {
|
2021-06-18 20:59:22 +03:00
|
|
|
--avatarSize: 32px;
|
2021-07-05 17:22:18 +03:00
|
|
|
--gutterSize: 11px;
|
2021-06-30 19:04:07 +03:00
|
|
|
--cornerRadius: 12px;
|
2021-06-18 20:59:22 +03:00
|
|
|
--maxWidth: 70%;
|
2021-12-23 18:48:16 +03:00
|
|
|
margin-right: 60px;
|
2021-07-01 16:56:34 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile[data-layout=bubble] {
|
2021-06-18 20:59:22 +03:00
|
|
|
position: relative;
|
|
|
|
margin-top: var(--gutterSize);
|
2021-09-11 18:39:44 +03:00
|
|
|
margin-left: 49px;
|
2021-09-14 06:32:01 +03:00
|
|
|
font-size: $font-14px;
|
2021-07-07 12:23:38 +03:00
|
|
|
|
2021-10-19 11:31:28 +03:00
|
|
|
.mx_ThreadInfo {
|
|
|
|
clear: both;
|
|
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
|
2021-07-07 12:23:38 +03:00
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
2021-06-18 20:59:22 +03:00
|
|
|
|
2021-08-26 17:19:46 +03:00
|
|
|
&.mx_EventTile_highlight {
|
|
|
|
&::before {
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
}
|
|
|
|
|
2021-11-11 16:37:29 +03:00
|
|
|
color: $alert;
|
2021-08-08 16:00:25 +03:00
|
|
|
}
|
|
|
|
|
2021-07-01 16:23:00 +03:00
|
|
|
/* For replies */
|
|
|
|
.mx_EventTile {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2021-07-29 12:12:07 +03:00
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
bottom: -1px;
|
|
|
|
left: -60px;
|
|
|
|
right: -60px;
|
|
|
|
z-index: -1;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2021-07-22 17:48:55 +03:00
|
|
|
&:hover,
|
|
|
|
&.mx_EventTile_selected {
|
2021-07-29 12:12:07 +03:00
|
|
|
|
2021-07-07 12:23:38 +03:00
|
|
|
&::before {
|
|
|
|
background: $eventbubble-bg-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
img {
|
|
|
|
box-shadow: 0 0 0 3px $eventbubble-bg-hover;
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 20:59:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile,
|
|
|
|
.mx_EventTile_line {
|
|
|
|
width: fit-content;
|
|
|
|
max-width: 70%;
|
|
|
|
}
|
|
|
|
|
2021-09-14 19:35:51 +03:00
|
|
|
> .mx_SenderProfile {
|
2021-07-07 16:13:58 +03:00
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
2021-07-13 11:15:12 +03:00
|
|
|
left: 2px;
|
2021-09-14 06:32:01 +03:00
|
|
|
font-size: $font-15px;
|
2021-06-18 20:59:22 +03:00
|
|
|
}
|
|
|
|
|
2021-12-23 18:48:00 +03:00
|
|
|
.mx_MessageActionBar {
|
|
|
|
top: -28px;
|
|
|
|
right: 0;
|
|
|
|
z-index: 9; // above the avatar
|
|
|
|
}
|
|
|
|
|
2022-01-11 19:04:39 +03:00
|
|
|
.mx_MediaBody {
|
|
|
|
// leave space for the timestamp
|
|
|
|
padding-right: 48px;
|
|
|
|
}
|
|
|
|
|
2022-01-11 20:11:08 +03:00
|
|
|
.mx_CallEvent {
|
|
|
|
background-color: unset;
|
|
|
|
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
border-color: $quinary-content;
|
|
|
|
}
|
|
|
|
|
2021-07-07 14:00:31 +03:00
|
|
|
&[data-self=false] {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
2021-10-28 17:32:30 +03:00
|
|
|
|
2022-01-13 19:42:32 +03:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
|
|
|
.mx_MImageBody::before,
|
|
|
|
.mx_MLocationBody_map {
|
2021-10-28 17:32:30 +03:00
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
|
|
|
}
|
2021-07-07 14:00:31 +03:00
|
|
|
}
|
2022-01-18 13:37:44 +03:00
|
|
|
|
2021-07-07 14:15:25 +03:00
|
|
|
.mx_EventTile_avatar {
|
2021-07-13 11:15:12 +03:00
|
|
|
left: -34px;
|
2021-07-07 14:15:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
--backgroundColor: $eventbubble-others-bg;
|
2021-07-07 14:00:31 +03:00
|
|
|
}
|
2022-01-18 13:37:44 +03:00
|
|
|
|
2021-07-07 14:00:31 +03:00
|
|
|
&[data-self=true] {
|
|
|
|
.mx_EventTile_line {
|
2021-10-19 11:16:40 +03:00
|
|
|
float: right;
|
2021-10-28 17:32:30 +03:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
|
2022-01-13 19:42:32 +03:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
|
|
|
.mx_MImageBody::before,
|
|
|
|
.mx_MLocationBody_map {
|
2021-10-28 17:32:30 +03:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
}
|
2021-07-07 14:15:25 +03:00
|
|
|
}
|
2021-10-19 11:31:28 +03:00
|
|
|
|
2022-01-18 13:37:44 +03:00
|
|
|
.mx_EventTile_sticker {
|
|
|
|
// align timestamp with those inside bubbles
|
|
|
|
margin-right: 32px;
|
|
|
|
}
|
|
|
|
|
2021-10-19 11:31:28 +03:00
|
|
|
.mx_ThreadInfo {
|
|
|
|
float: right;
|
|
|
|
margin-right: calc(-1 * var(--gutterSize));
|
|
|
|
}
|
|
|
|
|
2021-07-07 14:15:25 +03:00
|
|
|
.mx_SenderProfile {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-07-22 16:22:18 +03:00
|
|
|
|
|
|
|
.mx_ReplyTile .mx_SenderProfile {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-07-07 14:15:25 +03:00
|
|
|
.mx_ReactionsRow {
|
|
|
|
float: right;
|
|
|
|
clear: right;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
/* Moving the "add reaction button" before the reactions */
|
|
|
|
> :last-child {
|
|
|
|
order: -1;
|
|
|
|
}
|
2021-07-07 14:00:31 +03:00
|
|
|
}
|
2021-07-07 14:15:25 +03:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: -19px; // height of the sender block
|
2021-07-07 16:13:58 +03:00
|
|
|
right: -35px;
|
2021-07-07 14:15:25 +03:00
|
|
|
}
|
|
|
|
|
2022-01-11 19:04:39 +03:00
|
|
|
.mx_MediaBody {
|
|
|
|
background: $eventbubble-self-bg;
|
|
|
|
}
|
|
|
|
|
2021-07-07 14:15:25 +03:00
|
|
|
--backgroundColor: $eventbubble-self-bg;
|
2021-07-07 14:00:31 +03:00
|
|
|
}
|
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_line {
|
2021-07-07 13:04:28 +03:00
|
|
|
position: relative;
|
2021-06-30 19:04:07 +03:00
|
|
|
display: flex;
|
2021-07-07 16:13:58 +03:00
|
|
|
gap: 5px;
|
2021-07-13 11:15:12 +03:00
|
|
|
margin: 0 -12px 0 -9px;
|
2021-10-28 17:32:30 +03:00
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
2021-12-23 18:48:16 +03:00
|
|
|
|
2022-01-14 01:45:54 +03:00
|
|
|
> a { // timestamp wrapper anchor
|
2021-06-30 19:04:07 +03:00
|
|
|
position: absolute;
|
2021-12-23 18:48:16 +03:00
|
|
|
padding: 4px 8px;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
2022-01-10 15:53:11 +03:00
|
|
|
z-index: 3; // above media and location share maps
|
2021-06-30 19:04:07 +03:00
|
|
|
}
|
2021-10-28 17:32:30 +03:00
|
|
|
|
2022-01-18 13:37:44 +03:00
|
|
|
// we put the timestamps for media (other than stickers) atop the media along with a gradient to aid visibility
|
|
|
|
&.mx_EventTile_mediaLine:not(.mx_EventTile_sticker) {
|
2022-01-13 12:32:27 +03:00
|
|
|
.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;
|
2022-01-13 15:45:35 +03:00
|
|
|
pointer-events: none;
|
2022-01-13 12:32:27 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-18 13:37:44 +03:00
|
|
|
&.mx_EventTile_sticker {
|
|
|
|
> a {
|
|
|
|
// position timestamps for stickers to the right of the un-bubbled sticker
|
|
|
|
right: unset;
|
|
|
|
left: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MStickerBody_wrapper {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-28 17:32:30 +03:00
|
|
|
//noinspection CssReplaceWithShorthandSafely
|
2022-01-18 12:31:21 +03:00
|
|
|
.mx_MImageBody {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
//noinspection CssReplaceWithShorthandSafely
|
|
|
|
.mx_MImageBody_thumbnail {
|
|
|
|
// Note: This is intentionally not compressed because the browser gets confused
|
|
|
|
// when it is all combined. We're effectively unsetting the border radius then
|
|
|
|
// setting the two corners we care about manually.
|
|
|
|
border-radius: unset;
|
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
|
|
|
|
|
|
|
&.mx_MImageBody_thumbnail--blurhash {
|
|
|
|
position: unset;
|
|
|
|
}
|
|
|
|
}
|
2021-10-28 17:32:30 +03:00
|
|
|
}
|
2021-12-16 21:35:51 +03:00
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
flex-shrink: 0; // keep it at full size
|
|
|
|
}
|
2021-10-28 17:32:30 +03:00
|
|
|
}
|
|
|
|
|
2022-01-10 15:53:11 +03:00
|
|
|
&:not(.mx_EventTile_noBubble) .mx_EventTile_line:not(.mx_EventTile_mediaLine) {
|
2021-10-28 17:32:30 +03:00
|
|
|
padding: var(--gutterSize);
|
2021-12-23 18:48:16 +03:00
|
|
|
padding-right: 60px; // space for the timestamp
|
2021-10-28 17:32:30 +03:00
|
|
|
background: var(--backgroundColor);
|
2021-06-18 20:59:22 +03:00
|
|
|
}
|
|
|
|
|
2021-07-07 14:00:31 +03:00
|
|
|
&.mx_EventTile_continuation[data-self=false] .mx_EventTile_line {
|
2021-07-07 13:04:28 +03:00
|
|
|
border-top-left-radius: 0;
|
2021-10-28 17:32:30 +03:00
|
|
|
|
2022-01-13 19:42:32 +03:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
|
|
|
.mx_MImageBody::before,
|
|
|
|
.mx_MLocationBody_map {
|
2021-10-28 17:32:30 +03:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
}
|
2021-07-07 13:04:28 +03:00
|
|
|
}
|
2021-07-07 14:00:31 +03:00
|
|
|
&.mx_EventTile_lastInSection[data-self=false] .mx_EventTile_line {
|
2021-07-07 13:04:28 +03:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
2021-10-28 17:32:30 +03:00
|
|
|
|
2022-01-13 19:42:32 +03:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
|
|
|
.mx_MImageBody::before,
|
|
|
|
.mx_MLocationBody_map {
|
2021-10-28 17:32:30 +03:00
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
|
|
|
}
|
2021-07-07 13:04:28 +03:00
|
|
|
}
|
|
|
|
|
2021-07-07 14:00:31 +03:00
|
|
|
&.mx_EventTile_continuation[data-self=true] .mx_EventTile_line {
|
|
|
|
border-top-right-radius: 0;
|
2021-10-28 17:32:30 +03:00
|
|
|
|
2022-01-13 19:42:32 +03:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
|
|
|
.mx_MImageBody::before,
|
|
|
|
.mx_MLocationBody_map {
|
2021-10-28 17:32:30 +03:00
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2021-07-07 14:00:31 +03:00
|
|
|
}
|
|
|
|
&.mx_EventTile_lastInSection[data-self=true] .mx_EventTile_line {
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
2021-10-28 17:32:30 +03:00
|
|
|
|
2022-01-13 19:42:32 +03:00
|
|
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
|
|
|
.mx_MImageBody::before,
|
|
|
|
.mx_MLocationBody_map {
|
2021-10-28 17:32:30 +03:00
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
|
|
|
}
|
2021-07-07 14:00:31 +03:00
|
|
|
}
|
2021-07-07 13:04:28 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2021-06-30 14:06:16 +03:00
|
|
|
line-height: 1;
|
2021-07-23 13:12:52 +03:00
|
|
|
z-index: 9;
|
2021-06-18 20:59:22 +03:00
|
|
|
img {
|
2021-11-10 12:46:33 +03:00
|
|
|
box-shadow: 0 0 0 3px $background;
|
2021-06-18 20:59:22 +03:00
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-23 13:09:39 +03:00
|
|
|
&.mx_EventTile_noSender {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: -19px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-23 15:17:26 +03:00
|
|
|
.mx_BaseAvatar,
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2021-06-30 14:06:16 +03:00
|
|
|
&[data-has-reply=true] {
|
|
|
|
> .mx_EventTile_line {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2021-10-15 19:42:44 +03:00
|
|
|
.mx_ReplyChain_show {
|
2021-06-30 14:06:16 +03:00
|
|
|
order: 99999;
|
|
|
|
}
|
2021-06-30 19:04:07 +03:00
|
|
|
|
2021-10-15 19:42:44 +03:00
|
|
|
.mx_ReplyChain {
|
2021-06-30 19:04:07 +03:00
|
|
|
.mx_EventTile_reply {
|
2021-07-13 11:15:12 +03:00
|
|
|
max-width: 90%;
|
2021-06-30 19:04:07 +03:00
|
|
|
padding: 0;
|
|
|
|
> a {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile {
|
|
|
|
display: flex;
|
|
|
|
gap: var(--gutterSize);
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
.mx_SenderProfile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-30 14:06:16 +03:00
|
|
|
}
|
|
|
|
|
2021-07-13 11:15:12 +03:00
|
|
|
.mx_EditMessageComposer_buttons {
|
|
|
|
position: static;
|
|
|
|
padding: 0;
|
2021-10-27 17:17:52 +03:00
|
|
|
margin: 8px 0 0;
|
2021-07-13 11:15:12 +03:00
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin-right: -18px;
|
|
|
|
margin-left: -9px;
|
|
|
|
}
|
|
|
|
|
2021-06-30 14:06:16 +03:00
|
|
|
/* Special layout scenario for "Unable To Decrypt (UTD)" events */
|
|
|
|
&.mx_EventTile_bad > .mx_EventTile_line {
|
2021-07-07 16:13:58 +03:00
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
"reply reply" auto
|
|
|
|
"shield body" auto
|
|
|
|
"shield link" auto
|
|
|
|
/ auto 1fr;
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
grid-area: shield;
|
|
|
|
}
|
|
|
|
.mx_UnknownBody {
|
|
|
|
grid-area: body;
|
|
|
|
}
|
|
|
|
.mx_EventTile_keyRequestInfo {
|
|
|
|
grid-area: link;
|
|
|
|
}
|
2021-10-15 19:42:44 +03:00
|
|
|
.mx_ReplyChain_wrapper {
|
2021-07-07 16:13:58 +03:00
|
|
|
grid-area: reply;
|
|
|
|
}
|
2021-06-30 14:06:16 +03:00
|
|
|
}
|
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
position: absolute;
|
2022-01-10 15:53:23 +03:00
|
|
|
right: -78px; // as close to right gutter without clipping as possible
|
2021-06-18 20:59:22 +03:00
|
|
|
bottom: 0;
|
2021-06-30 19:04:07 +03:00
|
|
|
top: auto;
|
2021-06-18 20:59:22 +03:00
|
|
|
}
|
|
|
|
|
2021-06-30 14:06:16 +03:00
|
|
|
.mx_MTextBody {
|
2021-07-13 11:15:12 +03:00
|
|
|
max-width: 100%;
|
2021-06-30 14:06:16 +03:00
|
|
|
}
|
2022-01-11 20:11:08 +03:00
|
|
|
|
|
|
|
.mx_CallEvent_wrapper {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2021-06-18 20:59:22 +03:00
|
|
|
}
|
2021-07-27 12:30:25 +03:00
|
|
|
|
2021-12-15 22:47:57 +03:00
|
|
|
.mx_EventTile.mx_EventTile_noBubble[data-layout=bubble] {
|
|
|
|
--backgroundColor: transparent;
|
|
|
|
}
|
|
|
|
|
2021-07-27 12:30:25 +03:00
|
|
|
.mx_EventTile.mx_EventTile_bubbleContainer[data-layout=bubble],
|
2021-08-20 11:04:40 +03:00
|
|
|
.mx_EventTile.mx_EventTile_leftAlignedBubble[data-layout=bubble],
|
2021-07-27 12:30:25 +03:00
|
|
|
.mx_EventTile.mx_EventTile_info[data-layout=bubble],
|
|
|
|
.mx_EventListSummary[data-layout=bubble][data-expanded=false] {
|
|
|
|
--backgroundColor: transparent;
|
|
|
|
--gutterSize: 0;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-08-04 18:09:48 +03:00
|
|
|
justify-content: flex-start;
|
2021-07-27 12:30:25 +03:00
|
|
|
padding: 5px 0;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: static;
|
|
|
|
order: -1;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2021-07-29 11:04:47 +03:00
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_info {
|
|
|
|
min-width: 100%;
|
2021-09-14 18:27:03 +03:00
|
|
|
// Preserve alignment with left edge of text in bubbles
|
2021-09-11 18:39:44 +03:00
|
|
|
margin: 0;
|
2021-07-29 11:04:47 +03:00
|
|
|
}
|
2021-07-30 10:19:34 +03:00
|
|
|
|
2021-07-29 11:27:00 +03:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
margin-left: 9px;
|
|
|
|
}
|
|
|
|
|
2022-01-14 01:45:54 +03:00
|
|
|
.mx_EventTile_line > a { // timestamp wrapper anchor
|
2021-07-29 11:27:00 +03:00
|
|
|
right: auto;
|
2022-01-11 20:11:08 +03:00
|
|
|
left: -77px;
|
2022-01-14 01:45:54 +03:00
|
|
|
bottom: unset;
|
|
|
|
align-self: center;
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2021-07-29 11:27:00 +03:00
|
|
|
}
|
2021-07-27 12:30:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventListSummary[data-layout=bubble] {
|
2021-07-29 12:48:22 +03:00
|
|
|
--maxWidth: 70%;
|
2021-07-27 12:30:25 +03:00
|
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
2021-12-16 21:34:59 +03:00
|
|
|
|
2021-07-27 12:30:25 +03:00
|
|
|
.mx_EventListSummary_toggle {
|
2021-12-16 21:34:59 +03:00
|
|
|
margin: 0 55px 0 5px;
|
2021-07-27 12:30:25 +03:00
|
|
|
float: none;
|
2021-12-16 21:34:59 +03:00
|
|
|
|
|
|
|
&[aria-expanded=false] {
|
|
|
|
order: 9;
|
|
|
|
}
|
|
|
|
&[aria-expanded=true] {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2021-07-27 12:30:25 +03:00
|
|
|
}
|
2021-12-16 21:34:59 +03:00
|
|
|
|
|
|
|
.mx_EventListSummary_line {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-07-27 12:30:25 +03:00
|
|
|
.mx_EventListSummary_avatars {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventListSummary[data-expanded=false][data-layout=bubble] {
|
2021-09-14 18:27:03 +03:00
|
|
|
// Align with left edge of bubble tiles
|
2021-09-11 18:39:44 +03:00
|
|
|
padding: 0 49px;
|
2021-07-27 12:30:25 +03:00
|
|
|
}
|
|
|
|
|
2022-01-18 12:31:21 +03: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.
|
2021-12-16 21:34:59 +03:00
|
|
|
.mx_EventListSummary[data-expanded=true][data-layout=bubble] {
|
2022-01-18 12:31:21 +03:00
|
|
|
margin: 0;
|
2021-12-16 21:34:59 +03:00
|
|
|
|
|
|
|
.mx_EventTile {
|
|
|
|
padding: 2px 0;
|
2022-01-18 12:31:21 +03:00
|
|
|
margin-right: 0;
|
|
|
|
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
right: 127px; // align with that of right-column bubbles
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
right: -18px; // match alignment to RRs of chat bubbles
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
right: 0; // match alignment of the hover background to that of chat bubbles
|
|
|
|
}
|
2021-12-16 21:34:59 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-17 12:28:10 +03:00
|
|
|
// increase margin between ELS and the next Event to not have our user avatar overlap the expand/collapse button
|
|
|
|
.mx_EventListSummary[data-layout=bubble][data-expanded=false] + .mx_EventTile[data-layout=bubble][data-self=true] {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
2021-07-27 12:30:25 +03:00
|
|
|
/* events that do not require bubble layout */
|
|
|
|
.mx_EventListSummary[data-layout=bubble],
|
|
|
|
.mx_EventTile.mx_EventTile_bad[data-layout=bubble] {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|