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.
|
|
|
|
*/
|
|
|
|
|
2021-07-01 13:56:34 +00:00
|
|
|
.mx_EventTile[data-layout=bubble],
|
|
|
|
.mx_EventTile[data-layout=bubble] ~ .mx_EventListSummary {
|
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-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-07-07 09:23:38 +00:00
|
|
|
margin-left: 50px;
|
2021-07-07 13:13:58 +00:00
|
|
|
margin-right: 100px;
|
2021-07-07 09:23:38 +00:00
|
|
|
|
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
|
2021-07-01 13:23:00 +00:00
|
|
|
/* For replies */
|
|
|
|
.mx_EventTile {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
&:hover {
|
2021-07-07 09:23:38 +00:00
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: -1px;
|
|
|
|
bottom: -1px;
|
|
|
|
left: -60px;
|
2021-07-07 13:13:58 +00:00
|
|
|
right: -60px;
|
2021-07-07 09:23:38 +00:00
|
|
|
z-index: -1;
|
|
|
|
background: $eventbubble-bg-hover;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
img {
|
|
|
|
box-shadow: 0 0 0 3px $eventbubble-bg-hover;
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile,
|
|
|
|
.mx_EventTile_line {
|
|
|
|
width: fit-content;
|
|
|
|
max-width: 70%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile {
|
2021-07-07 13:13:58 +00:00
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
2021-07-13 08:15:12 +00:00
|
|
|
left: 2px;
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 11:00:31 +00:00
|
|
|
&[data-self=false] {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
right: 0;
|
|
|
|
transform: translate3d(50%, 50%, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
--backgroundColor: $eventbubble-others-bg;
|
2021-07-07 11:00:31 +00:00
|
|
|
}
|
|
|
|
&[data-self=true] {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
border-bottom-left-radius: var(--cornerRadius);
|
2021-07-07 11:15:25 +00:00
|
|
|
float: right;
|
|
|
|
> a {
|
|
|
|
left: auto;
|
2021-07-13 08:15:12 +00:00
|
|
|
right: -48px;
|
2021-07-07 11:15:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.mx_SenderProfile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.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
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
--backgroundColor: $eventbubble-self-bg;
|
2021-07-07 11:00:31 +00:00
|
|
|
}
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
.mx_EventTile_line {
|
2021-07-07 10:04:28 +00:00
|
|
|
position: relative;
|
2021-06-18 17:59:22 +00:00
|
|
|
padding: var(--gutterSize);
|
2021-07-07 10:04:28 +00:00
|
|
|
border-top-left-radius: var(--cornerRadius);
|
|
|
|
border-top-right-radius: var(--cornerRadius);
|
2021-06-30 11:06:16 +00:00
|
|
|
background: var(--backgroundColor);
|
2021-06-30 16:04:07 +00:00
|
|
|
display: flex;
|
2021-07-07 13:13:58 +00:00
|
|
|
gap: 5px;
|
2021-07-13 08:15:12 +00:00
|
|
|
margin: 0 -12px 0 -9px;
|
2021-06-30 16:04:07 +00:00
|
|
|
> a {
|
|
|
|
position: absolute;
|
2021-07-13 08:15:12 +00:00
|
|
|
left: -48px;
|
2021-06-30 16:04:07 +00:00
|
|
|
}
|
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-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-07-07 11:00:31 +00:00
|
|
|
&.mx_EventTile_continuation[data-self=true] .mx_EventTile_line {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
&.mx_EventTile_lastInSection[data-self=true] .mx_EventTile_line {
|
|
|
|
border-bottom-right-radius: var(--cornerRadius);
|
|
|
|
}
|
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-06-18 17:59:22 +00:00
|
|
|
img {
|
2021-07-05 14:22:18 +00:00
|
|
|
box-shadow: 0 0 0 3px $eventbubble-avatar-outline;
|
2021-06-18 17:59:22 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-30 11:06:16 +00:00
|
|
|
&[data-has-reply=true] {
|
|
|
|
> .mx_EventTile_line {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReplyThread_show {
|
|
|
|
order: 99999;
|
|
|
|
}
|
2021-06-30 16:04:07 +00:00
|
|
|
|
|
|
|
.mx_ReplyThread {
|
|
|
|
margin: 0 calc(-1 * var(--gutterSize));
|
|
|
|
|
|
|
|
.mx_EventTile_reply {
|
2021-07-13 08:15:12 +00:00
|
|
|
max-width: 90%;
|
2021-06-30 16:04:07 +00: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 11:06:16 +00:00
|
|
|
}
|
|
|
|
|
2021-07-13 08:15:12 +00:00
|
|
|
.mx_EditMessageComposer_buttons {
|
|
|
|
position: static;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin-right: -18px;
|
|
|
|
margin-left: -9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReplyThread {
|
|
|
|
border-left-width: 2px;
|
|
|
|
border-left-color: $eventbubble-reply-color;
|
|
|
|
}
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
&.mx_EventTile_bubbleContainer,
|
|
|
|
&.mx_EventTile_info,
|
|
|
|
& ~ .mx_EventListSummary[data-expanded=false] {
|
|
|
|
--backgroundColor: transparent;
|
2021-06-30 11:06:16 +00:00
|
|
|
--gutterSize: 0;
|
2021-06-18 17:59:22 +00:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: static;
|
|
|
|
order: -1;
|
2021-07-01 13:56:34 +00:00
|
|
|
margin-right: 5px;
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& ~ .mx_EventListSummary {
|
2021-07-01 13:56:34 +00:00
|
|
|
--maxWidth: 80%;
|
|
|
|
margin-left: calc(var(--avatarSize) + var(--gutterSize));
|
|
|
|
margin-right: calc(var(--gutterSize) + var(--avatarSize));
|
2021-06-18 17:59:22 +00:00
|
|
|
.mx_EventListSummary_toggle {
|
|
|
|
float: none;
|
|
|
|
margin: 0;
|
|
|
|
order: 9;
|
2021-07-01 13:56:34 +00:00
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
.mx_EventListSummary_avatars {
|
|
|
|
padding-top: 0;
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2021-07-07 13:13:58 +00:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile {
|
2021-07-14 13:32:35 +00:00
|
|
|
margin: 0 6px;
|
2021-07-07 13:13:58 +00:00
|
|
|
}
|
2021-07-13 08:15:12 +00:00
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
margin: 0 5px;
|
|
|
|
> a {
|
|
|
|
left: auto;
|
|
|
|
right: 0;
|
|
|
|
transform: translateX(calc(100% + 5px));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
transform: translate3d(50%, 0, 0);
|
|
|
|
}
|
2021-07-07 13:13:58 +00:00
|
|
|
}
|
|
|
|
|
2021-07-14 13:32:35 +00:00
|
|
|
& ~ .mx_EventListSummary[data-expanded=false] {
|
|
|
|
padding: 0 34px;
|
|
|
|
}
|
|
|
|
|
2021-07-07 13:13:58 +00:00
|
|
|
/* events that do not require bubble layout */
|
|
|
|
& ~ .mx_EventListSummary,
|
|
|
|
&.mx_EventTile_bad {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
& + .mx_EventListSummary {
|
|
|
|
.mx_EventTile {
|
|
|
|
margin-top: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventListSummary_toggle {
|
|
|
|
margin-right: 55px;
|
|
|
|
}
|
|
|
|
|
2021-06-30 11:06:16 +00:00
|
|
|
/* Special layout scenario for "Unable To Decrypt (UTD)" events */
|
|
|
|
&.mx_EventTile_bad > .mx_EventTile_line {
|
2021-07-07 13:13:58 +00: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;
|
|
|
|
}
|
|
|
|
.mx_ReplyThread_wrapper {
|
|
|
|
grid-area: reply;
|
|
|
|
}
|
2021-06-30 11:06:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
position: absolute;
|
2021-07-07 13:13:58 +00:00
|
|
|
right: -110px;
|
2021-06-18 17:59:22 +00:00
|
|
|
bottom: 0;
|
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
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|