2018-04-12 02:23:35 +03:00
|
|
|
|
/*
|
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2021-06-18 20:59:22 +03:00
|
|
|
|
Copyright 2020-2021 The Matrix.org Foundation C.I.C.
|
2018-04-12 02:23:35 +03: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.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-07-14 00:56:20 +03:00
|
|
|
|
$left-gutter: 64px;
|
|
|
|
|
|
2022-01-10 15:53:23 +03:00
|
|
|
|
.mx_EventTile {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
--EventTile_content-margin-inline-end: 34px; /* TODO: Use a spacing variable */
|
2022-07-01 12:04:53 +03:00
|
|
|
|
--EventTile_group_line-spacing-block-start: 1px;
|
|
|
|
|
--EventTile_group_line-spacing-block-end: 3px;
|
|
|
|
|
--EventTile_group_line-spacing-inline-start: $left-gutter;
|
|
|
|
|
--EventTile_group_line-line-height: $font-22px;
|
2022-07-04 22:07:50 +03:00
|
|
|
|
--EventTile_ThreadSummary-line-height: calc(2 * $font-12px);
|
2022-06-29 21:31:40 +03:00
|
|
|
|
|
2022-03-02 17:24:43 +03:00
|
|
|
|
flex-shrink: 0;
|
2023-04-27 16:02:34 +03:00
|
|
|
|
max-width: 100%;
|
|
|
|
|
clear: both; /* TODO: check if this is necessary */
|
|
|
|
|
padding-top: 18px;
|
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
position: relative;
|
2022-03-02 17:24:43 +03:00
|
|
|
|
|
2022-06-25 20:22:52 +03:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-01 11:04:33 +03:00
|
|
|
|
.mx_EventTile_body {
|
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-10 15:53:23 +03:00
|
|
|
|
.mx_EventTile_receiptSent,
|
|
|
|
|
.mx_EventTile_receiptSending {
|
2022-04-22 18:09:44 +03:00
|
|
|
|
position: relative;
|
2022-01-19 06:08:11 +03:00
|
|
|
|
display: inline-block;
|
2022-04-22 18:09:44 +03:00
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
2022-01-10 15:53:23 +03:00
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
background-color: $tertiary-content;
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-position: center;
|
2022-04-22 18:09:44 +03:00
|
|
|
|
mask-size: 16px;
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
2022-12-12 14:24:14 +03:00
|
|
|
|
content: "";
|
2022-01-10 15:53:23 +03:00
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2022-01-10 15:53:23 +03:00
|
|
|
|
.mx_EventTile_receiptSent::before {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
mask-image: url("$(res)/img/element-icons/circle-sent.svg");
|
2022-01-10 15:53:23 +03:00
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2022-01-10 15:53:23 +03:00
|
|
|
|
.mx_EventTile_receiptSending::before {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
mask-image: url("$(res)/img/element-icons/circle-sending.svg");
|
2022-01-10 15:53:23 +03:00
|
|
|
|
}
|
2022-05-09 09:27:13 +03:00
|
|
|
|
|
2022-05-17 20:12:13 +03:00
|
|
|
|
.mx_EventTile_content {
|
2023-04-04 13:43:02 +03:00
|
|
|
|
&.mx_EditMessageComposer,
|
|
|
|
|
&.mx_EditWysiwygComposer {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Make sure the formatting bar is visible */
|
2022-05-17 20:12:13 +03:00
|
|
|
|
overflow: visible;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-09 14:29:45 +03:00
|
|
|
|
.mx_EventTile_searchHighlight {
|
|
|
|
|
background-color: $accent;
|
|
|
|
|
color: $accent-fg-color;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
padding-inline: 2px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
background-color: $accent;
|
|
|
|
|
color: $accent-fg-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-07 12:24:24 +03:00
|
|
|
|
.mx_EventTileBubble {
|
2022-07-08 11:58:49 +03:00
|
|
|
|
margin-block: var(--EventTileBubble_margin-block);
|
2022-07-07 12:24:24 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-23 10:02:13 +03:00
|
|
|
|
.mx_MImageBody {
|
|
|
|
|
.mx_MImageBody_thumbnail_container {
|
|
|
|
|
display: flex;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
align-items: center; /* on every layout */
|
2022-05-23 10:02:13 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-30 01:38:23 +03:00
|
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
|
color: $primary-content;
|
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding-bottom: 0px;
|
|
|
|
|
padding-top: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-16 20:47:37 +03:00
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: wrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: $spacing-4;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-01 11:04:33 +03:00
|
|
|
|
.mx_ReplyChain--expanded {
|
|
|
|
|
.mx_EventTile_body {
|
|
|
|
|
display: block;
|
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_collapsedCodeBlock {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* !important needed due to .mx_ReplyTile .mx_EventTile_content .mx_EventTile_pre_container > pre */
|
2022-07-15 16:53:23 +03:00
|
|
|
|
display: block !important;
|
2022-07-01 11:04:33 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-04 09:37:31 +03:00
|
|
|
|
.mx_RoomView_searchResultsPanel & {
|
|
|
|
|
&.mx_EventTile_contextual {
|
|
|
|
|
opacity: 0.4;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-02 13:39:33 +03:00
|
|
|
|
&.mx_EventTile_highlight,
|
2023-04-05 05:46:17 +03:00
|
|
|
|
&.mx_EventTile_highlight .markdown-body,
|
|
|
|
|
&.mx_EventTile_highlight .mx_EventTile_edited {
|
2022-07-02 13:39:33 +03:00
|
|
|
|
color: $alert;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_bubbleContainer {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr 100px;
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
grid-column: 1 / 3;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
padding: 0 !important; /* override default padding of mx_EventTile_line so that we can be centered */
|
2022-07-02 13:39:33 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
|
grid-column: 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2022-06-30 07:47:35 +03:00
|
|
|
|
.mx_EventTile_line {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* To avoid bubble events being highlighted */
|
2022-07-02 13:39:33 +03:00
|
|
|
|
background-color: inherit !important;
|
2022-06-30 07:47:35 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-02 13:39:33 +03:00
|
|
|
|
}
|
2022-06-30 07:47:35 +03:00
|
|
|
|
|
2022-07-02 13:39:33 +03:00
|
|
|
|
&.mx_EventTile_isEditing .mx_MessageTimestamp {
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"],
|
|
|
|
|
&[data-layout="group"] {
|
2023-05-18 07:18:59 +03:00
|
|
|
|
--selected-message-border-width: 4px;
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* TODO: adjust the values for IRC layout */
|
2023-05-18 07:18:59 +03:00
|
|
|
|
--EventTile-box-shadow-offset-x: calc(50px + var(--selected-message-border-width));
|
2022-07-13 03:24:06 +03:00
|
|
|
|
--EventTile-box-shadow-spread-radius: -50px;
|
2022-06-25 20:49:34 +03:00
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-25 15:19:02 +03:00
|
|
|
|
.mx_MImageBody {
|
2022-06-29 21:31:40 +03:00
|
|
|
|
.mx_MImageBody_thumbnail_container {
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
min-height: $font-44px;
|
|
|
|
|
min-width: $font-44px;
|
|
|
|
|
}
|
2022-06-25 15:19:02 +03:00
|
|
|
|
}
|
2022-06-29 08:41:52 +03:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
position: relative;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
2022-06-25 15:19:02 +03:00
|
|
|
|
|
2022-07-05 10:01:06 +03:00
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
|
float: right;
|
|
|
|
|
text-align: right;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 90px;
|
|
|
|
|
|
|
|
|
|
/* Hack to stop the height of this pushing the messages apart.
|
|
|
|
|
Replaces margin-top: -6px. This interacts better with a read
|
|
|
|
|
marker being in between. Content overflows. */
|
|
|
|
|
height: 1px;
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-02 13:39:33 +03:00
|
|
|
|
&.mx_EventTile_highlight,
|
|
|
|
|
&.mx_EventTile_highlight .markdown-body {
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
|
}
|
2022-06-15 20:26:24 +03:00
|
|
|
|
}
|
2022-07-05 14:17:11 +03:00
|
|
|
|
|
2022-07-13 03:24:06 +03:00
|
|
|
|
&.focus-visible:focus-within,
|
|
|
|
|
&.mx_EventTile_actionBarFocused,
|
|
|
|
|
&.mx_EventTile_isEditing,
|
|
|
|
|
&.mx_EventTile_selected {
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* this is used for the tile for the event which is selected via the URL. */
|
2022-07-13 03:24:06 +03:00
|
|
|
|
&.mx_EventTile_isEditing,
|
|
|
|
|
&.mx_EventTile_selected {
|
|
|
|
|
> .mx_EventTile_line {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* TODO: ultimately we probably want some transition on here. */
|
2022-12-12 14:24:14 +03:00
|
|
|
|
box-shadow: inset var(--EventTile-box-shadow-offset-x) 0 0 var(--EventTile-box-shadow-spread-radius)
|
|
|
|
|
$accent;
|
2022-07-13 03:24:06 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-12 16:40:19 +03:00
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
top: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 14:17:11 +03:00
|
|
|
|
&.mx_EventTile_continuation .mx_EventTile_line {
|
|
|
|
|
clear: both;
|
|
|
|
|
}
|
2022-07-07 10:54:56 +03:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_verified .mx_EventTile_line {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
box-shadow: inset var(--EventTile-box-shadow-offset-x) 0 0 var(--EventTile-box-shadow-spread-radius)
|
|
|
|
|
$e2e-verified-color;
|
2022-07-07 10:54:56 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_unverified .mx_EventTile_line {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
box-shadow: inset var(--EventTile-box-shadow-offset-x) 0 0 var(--EventTile-box-shadow-spread-radius)
|
|
|
|
|
$e2e-unverified-color;
|
2022-07-07 10:54:56 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_unknown .mx_EventTile_line {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
box-shadow: inset var(--EventTile-box-shadow-offset-x) 0 0 var(--EventTile-box-shadow-spread-radius)
|
|
|
|
|
$e2e-unknown-color;
|
2022-07-07 10:54:56 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-02 13:39:33 +03:00
|
|
|
|
}
|
2022-06-15 20:26:24 +03:00
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="bubble"],
|
|
|
|
|
&[data-layout="group"] {
|
2022-07-07 12:24:24 +03:00
|
|
|
|
.mx_EventTileBubble {
|
|
|
|
|
margin-inline: auto;
|
|
|
|
|
}
|
2023-03-06 12:19:38 +03:00
|
|
|
|
|
|
|
|
|
.mx_ReplyChain {
|
|
|
|
|
margin-bottom: $spacing-8;
|
|
|
|
|
}
|
2022-07-07 12:24:24 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"] {
|
2023-05-03 14:06:51 +03:00
|
|
|
|
--EventTile_irc_line-padding-block: 1px;
|
|
|
|
|
|
2023-03-03 12:32:38 +03:00
|
|
|
|
/* add --right-padding value of MessageTimestamp only */
|
|
|
|
|
/* stylelint-disable-next-line declaration-colon-space-after */
|
|
|
|
|
--EventTile_irc_line_info-margin-inline-start: calc(
|
|
|
|
|
var(--name-width) + var(--icon-width) + 1 * var(--right-padding)
|
|
|
|
|
);
|
2022-07-07 12:24:24 +03:00
|
|
|
|
|
2023-05-03 14:06:51 +03:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
|
|
> a {
|
|
|
|
|
text-decoration: none; /* timestamps are links which shouldn't be underlined */
|
2023-05-04 15:19:26 +03:00
|
|
|
|
min-width: var(--MessageTimestamp-width); /* ensure space for EventTile without timestamp */
|
2023-05-03 14:06:51 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> * {
|
|
|
|
|
margin-right: var(--right-padding);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar,
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
height: var(--irc-line-height);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar,
|
|
|
|
|
.mx_DisambiguatedProfile,
|
|
|
|
|
.mx_EventTile_e2eIcon,
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
order: 1;
|
|
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
/* Need to use important to override the js provided height and width values. */
|
|
|
|
|
> .mx_BaseAvatar,
|
|
|
|
|
> .mx_BaseAvatar > * {
|
|
|
|
|
height: $font-14px !important;
|
|
|
|
|
width: $font-14px !important;
|
|
|
|
|
font-size: $font-10px !important;
|
|
|
|
|
line-height: $font-15px !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
|
order: 2;
|
|
|
|
|
width: var(--name-width);
|
|
|
|
|
margin-inline-end: 0; /* override mx_EventTile > * */
|
|
|
|
|
|
|
|
|
|
> .mx_DisambiguatedProfile_displayName {
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: end;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> .mx_DisambiguatedProfile_mxid {
|
|
|
|
|
visibility: collapse;
|
|
|
|
|
margin-left: 0; /* Override the inherited margin. */
|
|
|
|
|
padding: 0 5px; /* TODO: Use a spacing variable */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
overflow: visible;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
|
|
> .mx_DisambiguatedProfile_displayName {
|
|
|
|
|
overflow: visible;
|
|
|
|
|
display: inline;
|
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
|
border-radius: 8px 0 0 8px;
|
|
|
|
|
padding-right: $spacing-8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> .mx_DisambiguatedProfile_mxid {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
padding: 0;
|
|
|
|
|
flex-grow: 0;
|
|
|
|
|
background-position: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
.mx_EventTile_e2eIcon,
|
|
|
|
|
.mx_TextualEvent,
|
|
|
|
|
.mx_ViewSourceEvent,
|
|
|
|
|
.mx_MTextBody {
|
|
|
|
|
/* add a 1px padding top and bottom because our larger
|
|
|
|
|
emoji font otherwise gets cropped by anti-zalgo */
|
|
|
|
|
padding: var(--EventTile_irc_line-padding-block) 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon,
|
|
|
|
|
.mx_TextualEvent,
|
|
|
|
|
.mx_MTextBody {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ReplyTile {
|
|
|
|
|
.mx_MTextBody {
|
|
|
|
|
display: -webkit-box; /* Enable -webkit-line-clamp */
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
order: 3;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
flex-shrink: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
order: 4;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-13 00:30:59 +03:00
|
|
|
|
.mx_EventTile_msgOption {
|
2023-05-03 14:06:51 +03:00
|
|
|
|
order: 5;
|
|
|
|
|
|
2022-07-13 00:30:59 +03:00
|
|
|
|
.mx_ReadReceiptGroup {
|
2023-05-03 14:06:51 +03:00
|
|
|
|
inset-block-start: -0.3rem; /* (var(--irc-line-height) - avatar height) / 2 */
|
2022-07-13 00:30:59 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-03 14:06:51 +03:00
|
|
|
|
.mx_ReplyChain {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-06 13:45:18 +03:00
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
2022-07-07 12:24:24 +03:00
|
|
|
|
|
2023-05-03 14:06:51 +03:00
|
|
|
|
.mx_EditMessageComposer_buttons {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-07 12:24:24 +03:00
|
|
|
|
.mx_EventTileBubble {
|
|
|
|
|
position: relative;
|
2022-07-25 12:05:32 +03:00
|
|
|
|
left: var(--EventTile_irc_line_info-margin-inline-start);
|
2022-07-08 11:58:49 +03:00
|
|
|
|
|
|
|
|
|
&.mx_cryptoEvent {
|
|
|
|
|
left: unset;
|
|
|
|
|
}
|
2022-07-07 12:24:24 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ReplyTile .mx_EventTileBubble {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
left: unset; /* Cancel the value specified above for the tile inside ReplyTile */
|
2022-07-07 12:24:24 +03:00
|
|
|
|
}
|
2022-07-12 00:19:49 +03:00
|
|
|
|
|
|
|
|
|
&.mx_EventTile_isEditing > .mx_EventTile_line {
|
|
|
|
|
.mx_EditMessageComposer {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* add space for the stroke on box-shadow */
|
2023-05-18 07:18:59 +03:00
|
|
|
|
padding-inline-start: calc(
|
|
|
|
|
var(--selected-message-border-width) + var(--EditMessageComposer-padding-inline)
|
|
|
|
|
);
|
2022-07-12 00:19:49 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-12 16:40:19 +03:00
|
|
|
|
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
.mx_EventTile_avatar {
|
2022-07-25 12:05:32 +03:00
|
|
|
|
left: var(--EventTile_irc_line_info-margin-inline-start);
|
2022-07-12 16:40:19 +03:00
|
|
|
|
top: 0;
|
|
|
|
|
margin-right: var(--right-padding);
|
|
|
|
|
padding-block: var(--EventTile_irc_line-padding-block);
|
|
|
|
|
}
|
2022-07-25 12:05:32 +03:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
margin-inline-start: var(--EventTile_irc_line_info-margin-inline-start);
|
|
|
|
|
}
|
2023-05-03 14:06:51 +03:00
|
|
|
|
|
|
|
|
|
.mx_ViewSourceEvent, /* For hidden events */
|
|
|
|
|
.mx_TextualEvent {
|
|
|
|
|
line-height: var(--irc-line-height);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_emote {
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
/* add --right-padding value of MessageTimestamp only */
|
|
|
|
|
margin-left: calc(var(--name-width) + var(--icon-width) + 1 * var(--right-padding));
|
|
|
|
|
}
|
2022-07-12 16:40:19 +03:00
|
|
|
|
}
|
2022-07-06 13:45:18 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="group"] {
|
2022-06-25 20:22:52 +03:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: 14px;
|
|
|
|
|
left: $spacing-8;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-15 20:26:24 +03:00
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
2022-07-01 12:04:53 +03:00
|
|
|
|
padding-top: var(--EventTile_group_line-spacing-block-start);
|
|
|
|
|
padding-bottom: var(--EventTile_group_line-spacing-block-end);
|
|
|
|
|
padding-left: var(--EventTile_group_line-spacing-inline-start);
|
2022-06-29 21:28:47 +03:00
|
|
|
|
line-height: var(--EventTile_group_line-line-height);
|
2022-05-09 09:27:13 +03:00
|
|
|
|
}
|
2022-06-25 14:59:25 +03:00
|
|
|
|
|
2022-06-25 20:49:34 +03:00
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
inset: 6px 0 0 44px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-26 17:01:28 +03:00
|
|
|
|
.mx_EventTile_msgOption {
|
2022-07-13 00:30:59 +03:00
|
|
|
|
margin-inline-end: 10px;
|
|
|
|
|
|
|
|
|
|
.mx_ReadReceiptGroup {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* This aligns the avatar with the last line of the */
|
|
|
|
|
/* message. We want to move it one line up */
|
|
|
|
|
/* See .mx_EventTile[data-layout=group] .mx_EventTile_line in _EventTile.scss */
|
2022-07-13 00:30:59 +03:00
|
|
|
|
inset-block-start: calc(-$font-22px - 3px);
|
|
|
|
|
}
|
2022-06-26 17:01:28 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-06 13:45:18 +03:00
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-25 14:59:25 +03:00
|
|
|
|
.mx_ThreadSummary,
|
2022-07-04 22:07:50 +03:00
|
|
|
|
.mx_ThreadSummary_icon {
|
2022-06-25 14:59:25 +03:00
|
|
|
|
margin-left: $left-gutter;
|
|
|
|
|
}
|
2022-06-25 17:24:18 +03:00
|
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
|
margin: $spacing-4 64px;
|
|
|
|
|
}
|
2022-07-02 13:39:33 +03:00
|
|
|
|
|
|
|
|
|
> .mx_DisambiguatedProfile {
|
|
|
|
|
line-height: $font-20px;
|
|
|
|
|
margin-left: $left-gutter;
|
|
|
|
|
max-width: calc(100% - $left-gutter);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> .mx_EventTile_avatar {
|
|
|
|
|
position: absolute;
|
|
|
|
|
z-index: 9;
|
|
|
|
|
}
|
2022-07-05 14:17:11 +03:00
|
|
|
|
|
2022-07-06 09:42:30 +03:00
|
|
|
|
.mx_RoomView_timeline_rr_enabled & {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
$inline-end-margin: 80px; /* TODO: Use a spacing variable */
|
2022-07-06 09:42:30 +03:00
|
|
|
|
|
|
|
|
|
.mx_ThreadSummary,
|
|
|
|
|
.mx_ThreadSummary_icon,
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
margin-right: $inline-end-margin;
|
|
|
|
|
min-height: $font-14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ThreadSummary {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* leave space on both left & right gutters */
|
2022-07-15 16:53:23 +03:00
|
|
|
|
max-width: min(calc(100% - $left-gutter - $inline-end-margin), 600px);
|
2022-07-06 09:42:30 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* on ELS we need the margin to allow interaction with the expand/collapse button */
|
|
|
|
|
/* which is normally in the RR gutter */
|
2022-07-06 09:42:30 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 14:17:11 +03:00
|
|
|
|
&.mx_EventTile_continuation {
|
2023-04-27 16:02:34 +03:00
|
|
|
|
padding-top: 0;
|
2022-07-05 14:17:11 +03:00
|
|
|
|
}
|
2022-07-06 13:44:23 +03:00
|
|
|
|
|
2022-07-12 16:40:19 +03:00
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
$spacing-block-start: 3px;
|
|
|
|
|
$spacing-block-end: 2px;
|
|
|
|
|
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar,
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
margin: $spacing-block-start 0 $spacing-block-end;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: initial;
|
|
|
|
|
inset-inline-start: $left-gutter;
|
|
|
|
|
height: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
padding-block: $spacing-block-start $spacing-block-end;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* 20px: avatar area */
|
2022-07-15 16:53:23 +03:00
|
|
|
|
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px);
|
2022-07-12 16:40:19 +03:00
|
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
|
top: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-08-01 09:19:22 +03:00
|
|
|
|
|
|
|
|
|
&.mx_EventTile_selected .mx_EventTile_line {
|
2022-10-24 09:50:21 +03:00
|
|
|
|
/* TODO: check if this would be necessary; */
|
2022-08-01 09:19:22 +03:00
|
|
|
|
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px);
|
|
|
|
|
}
|
2022-07-06 13:44:23 +03:00
|
|
|
|
}
|
2022-07-07 10:54:56 +03:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
&.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
|
&.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
|
&.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
|
2023-05-18 07:18:59 +03:00
|
|
|
|
padding-inline-start: calc($left-gutter + 18px + var(--selected-message-border-width));
|
2022-07-07 10:54:56 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-05 14:17:11 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="bubble"] {
|
2023-04-27 16:02:34 +03:00
|
|
|
|
/* Other half of the gutter is provided by margin-bottom on the last tile
|
|
|
|
|
of the section */
|
|
|
|
|
margin-top: calc(var(--gutterSize) / 2);
|
|
|
|
|
margin-left: var(--EventTile_bubble-margin-inline-start);
|
|
|
|
|
|
|
|
|
|
/* Reset default values. TODO: remove */
|
|
|
|
|
max-width: unset;
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
2022-07-13 00:30:59 +03:00
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset-block-start: auto;
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* as close to right gutter without clipping as possible */
|
2022-07-13 00:30:59 +03:00
|
|
|
|
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end));
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* (EventTileLine.line-height - ReadReceiptGroup.height) / 2 */
|
|
|
|
|
/* this centers the ReadReceiptGroup if we’ve got a single line */
|
2022-07-13 00:30:59 +03:00
|
|
|
|
inset-block-end: calc(($font-18px - 24px) / 2);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-07 12:24:24 +03:00
|
|
|
|
.mx_EventTileBubble {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Timestamps are inside the tile, so the width can be less constrained */
|
2022-07-07 12:24:24 +03:00
|
|
|
|
max-width: 600px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-05 14:17:11 +03:00
|
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
2022-12-04 01:31:40 +03:00
|
|
|
|
&.mx_EventTile_lastInSection {
|
|
|
|
|
/* Other half of the gutter is provided by margin-top on the first
|
|
|
|
|
tile of the section */
|
|
|
|
|
margin-bottom: calc(var(--gutterSize) / 2);
|
|
|
|
|
}
|
2022-05-09 09:27:13 +03:00
|
|
|
|
}
|
2022-01-10 15:53:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-06 13:44:23 +03:00
|
|
|
|
.mx_GenericEventListSummary {
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"],
|
|
|
|
|
&[data-layout="group"] {
|
2022-07-06 13:44:23 +03:00
|
|
|
|
.mx_EventTile_line .mx_RedactedBody {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
line-height: 1; /* remove spacing between lines */
|
2022-07-06 13:44:23 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"] {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Apply only collapsed events block */
|
2022-07-06 13:44:23 +03:00
|
|
|
|
> .mx_EventTile_line {
|
2023-03-03 12:32:38 +03:00
|
|
|
|
/* add --right-padding value of MessageTimestamp and avatar only */
|
2022-07-15 16:53:23 +03:00
|
|
|
|
/* stylelint-disable-next-line declaration-colon-space-after */
|
2022-12-12 14:24:14 +03:00
|
|
|
|
padding-left: calc(
|
2023-05-04 15:19:26 +03:00
|
|
|
|
var(--name-width) + var(--icon-width) + var(--MessageTimestamp-width) + 2 * var(--right-padding)
|
2022-12-12 14:24:14 +03:00
|
|
|
|
);
|
2022-07-06 13:44:23 +03:00
|
|
|
|
}
|
2022-05-09 09:27:13 +03:00
|
|
|
|
}
|
2022-02-22 13:25:44 +03:00
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="group"] {
|
2022-07-06 13:44:23 +03:00
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
padding-left: $left-gutter;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
|
2022-08-01 09:19:22 +03:00
|
|
|
|
/* override padding-left $left-gutter */
|
|
|
|
|
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px);
|
2022-07-06 13:44:23 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-07-27 17:24:05 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-21 12:41:52 +03:00
|
|
|
|
.mx_EventTile_content {
|
2022-05-18 16:04:39 +03:00
|
|
|
|
/*
|
|
|
|
|
all the overflow-y: hidden; are to trap Zalgos -
|
|
|
|
|
but they introduce an implicit overflow-x: auto.
|
|
|
|
|
so make that explicitly hidden too to avoid random
|
|
|
|
|
horizontal scrollbars occasionally appearing, like in
|
|
|
|
|
https://github.com/vector-im/vector-web/issues/1154
|
|
|
|
|
*/
|
2021-07-21 12:41:52 +03:00
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
overflow-x: hidden;
|
2022-06-29 21:31:40 +03:00
|
|
|
|
margin-right: var(--EventTile_content-margin-inline-end);
|
2022-05-18 16:04:39 +03:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_edited,
|
|
|
|
|
.mx_EventTile_pendingModeration {
|
|
|
|
|
user-select: none;
|
|
|
|
|
font-size: $font-12px;
|
|
|
|
|
color: $roomtopic-color;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-left: 9px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_edited {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.markdown-body {
|
|
|
|
|
font-family: inherit !important;
|
|
|
|
|
white-space: normal !important;
|
|
|
|
|
line-height: inherit !important;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
color: inherit; /* inherit the colour from the dark or light theme by default (but not for code blocks) */
|
2022-05-18 16:04:39 +03:00
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
|
|
|
|
|
pre,
|
|
|
|
|
code {
|
|
|
|
|
font-family: $monospace-font-family !important;
|
2023-01-19 18:49:21 +03:00
|
|
|
|
background-color: $system;
|
2022-05-18 16:04:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
2023-01-19 16:42:59 +03:00
|
|
|
|
code:not(pre *) {
|
|
|
|
|
background-color: $inlinecode-background-color;
|
|
|
|
|
border: 1px solid $inlinecode-border-color;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
// The horizontal padding is added by gfm.css .markdown-body
|
|
|
|
|
padding: $spacing-2 0;
|
|
|
|
|
// Avoid inline code blocks to be sticked when on multiple lines
|
|
|
|
|
line-height: $font-22px;
|
|
|
|
|
// Avoid the border to be glued to the other words
|
|
|
|
|
margin-right: $spacing-2;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-18 16:04:39 +03:00
|
|
|
|
code {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
white-space: pre-wrap; /* don't collapse spaces in inline code blocks */
|
2022-05-18 16:04:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* have to use overlay rather than auto otherwise Linux and Windows */
|
|
|
|
|
/* Chrome gets very confused about vertical spacing: */
|
|
|
|
|
/* https://github.com/vector-im/vector-web/issues/754 */
|
2022-05-18 16:04:39 +03:00
|
|
|
|
overflow-x: overlay;
|
|
|
|
|
overflow-y: visible;
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-19 18:49:21 +03:00
|
|
|
|
border: 1px solid $quinary-content;
|
|
|
|
|
|
2022-05-18 16:04:39 +03:00
|
|
|
|
code {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
white-space: pre; /* we want code blocks to be scrollable and not wrap */
|
2022-05-18 16:04:39 +03:00
|
|
|
|
|
|
|
|
|
> * {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
|
|
|
|
font-family: inherit !important;
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
|
h1,
|
|
|
|
|
h2 {
|
|
|
|
|
font-size: 1.5em;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
border-bottom: none !important; /* override GFM */
|
2022-05-18 16:04:39 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
color: $accent-alt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
|
border-left: 2px solid $blockquote-bar-color;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
// actually, removing the Italic TTF provides
|
|
|
|
|
// better results seemingly
|
|
|
|
|
|
|
|
|
|
// compensate for Nunito italics being terrible
|
|
|
|
|
// https://github.com/google/fonts/issues/1726
|
|
|
|
|
em {
|
|
|
|
|
transform: skewX(-14deg);
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
*/
|
2022-07-27 16:38:34 +03:00
|
|
|
|
|
|
|
|
|
/* Override nested lists being lower-roman */
|
2022-12-12 14:24:14 +03:00
|
|
|
|
ol ol,
|
|
|
|
|
ul ol {
|
2022-07-27 16:38:34 +03:00
|
|
|
|
list-style-type: revert;
|
|
|
|
|
}
|
2023-01-13 18:44:35 +03:00
|
|
|
|
|
|
|
|
|
/* Make list type disc to match rich text editor */
|
2023-02-02 12:09:52 +03:00
|
|
|
|
ul {
|
2023-01-13 18:44:35 +03:00
|
|
|
|
list-style-type: disc;
|
|
|
|
|
}
|
2022-05-18 16:04:39 +03:00
|
|
|
|
}
|
2021-07-21 12:41:52 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-21 09:42:42 +03:00
|
|
|
|
/* Spoiler stuff */
|
|
|
|
|
.mx_EventTile_spoiler {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
2022-05-23 23:16:50 +03:00
|
|
|
|
.mx_EventTile_spoiler_reason {
|
|
|
|
|
color: $event-timestamp-color;
|
|
|
|
|
font-size: $font-11px;
|
|
|
|
|
}
|
2021-07-21 09:42:42 +03:00
|
|
|
|
|
2022-05-23 23:16:50 +03:00
|
|
|
|
.mx_EventTile_spoiler_content {
|
|
|
|
|
filter: blur(5px) saturate(0.1) sepia(1);
|
|
|
|
|
transition-duration: 0.5s;
|
|
|
|
|
}
|
2021-07-21 09:42:42 +03:00
|
|
|
|
|
2022-05-23 23:16:50 +03:00
|
|
|
|
&.visible > .mx_EventTile_spoiler_content {
|
|
|
|
|
filter: none;
|
|
|
|
|
}
|
2021-07-21 09:42:42 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-31 12:53:04 +03:00
|
|
|
|
.mx_EventTile_bigEmoji {
|
|
|
|
|
font-size: 48px;
|
2022-01-21 13:10:57 +03:00
|
|
|
|
line-height: 57px;
|
2022-01-31 12:53:04 +03:00
|
|
|
|
|
|
|
|
|
.mx_Emoji {
|
|
|
|
|
font-size: inherit !important;
|
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
2021-07-07 16:13:58 +03:00
|
|
|
|
position: relative;
|
2020-07-14 01:56:25 +03:00
|
|
|
|
width: 14px;
|
|
|
|
|
height: 14px;
|
2019-12-04 08:41:22 +03:00
|
|
|
|
display: block;
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: contain;
|
2019-02-01 18:43:12 +03:00
|
|
|
|
|
2022-04-05 19:01:34 +03:00
|
|
|
|
&::before,
|
|
|
|
|
&::after {
|
2020-07-14 02:52:03 +03:00
|
|
|
|
content: "";
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
2023-05-09 13:02:12 +03:00
|
|
|
|
inset: 0;
|
2020-07-14 02:52:03 +03:00
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-position: center;
|
|
|
|
|
mask-size: contain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::before {
|
2021-06-23 18:10:47 +03:00
|
|
|
|
mask-size: 80%;
|
2020-07-14 02:52:03 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-05-23 23:16:50 +03:00
|
|
|
|
&.mx_EventTile_e2eIcon_warning::after {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
mask-image: url("$(res)/img/e2e/warning.svg");
|
2022-12-20 05:07:28 +03:00
|
|
|
|
background-color: $e2e-warning-color;
|
2020-07-14 02:52:03 +03:00
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2022-05-23 23:16:50 +03:00
|
|
|
|
&.mx_EventTile_e2eIcon_normal::after {
|
2022-12-12 14:24:14 +03:00
|
|
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
2021-11-16 13:10:44 +03:00
|
|
|
|
background-color: $header-panel-text-primary-color;
|
2020-07-14 02:52:03 +03:00
|
|
|
|
}
|
2022-12-15 20:24:33 +03:00
|
|
|
|
|
|
|
|
|
&.mx_EventTile_e2eIcon_decryption_failure::after {
|
|
|
|
|
mask-image: url("$(res)/img/e2e/decryption-failure.svg");
|
|
|
|
|
background-color: $secondary-content;
|
|
|
|
|
}
|
2020-06-19 04:57:33 +03:00
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
|
2021-07-30 10:54:28 +03:00
|
|
|
|
.mx_EventTile_body {
|
|
|
|
|
a:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre {
|
|
|
|
|
border: 1px solid transparent;
|
2022-06-27 09:38:17 +03:00
|
|
|
|
|
|
|
|
|
.mx_EventTile:hover &,
|
|
|
|
|
.mx_EventTile.focus-visible:focus-within & {
|
|
|
|
|
border: 1px solid $tertiary-content;
|
|
|
|
|
}
|
2021-07-30 10:54:28 +03:00
|
|
|
|
}
|
2022-01-10 18:32:06 +03:00
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* selector wrongly applies to pill avatars but those have explicit width/height passed at a higher specificity */
|
2022-01-10 18:32:06 +03:00
|
|
|
|
&.markdown-body img {
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
object-position: left top;
|
|
|
|
|
}
|
2019-07-10 18:55:03 +03:00
|
|
|
|
|
2022-06-27 09:38:17 +03:00
|
|
|
|
.mx_EventTile_clamp & {
|
2021-11-11 14:00:18 +03:00
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
}
|
2022-06-27 09:38:17 +03:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_pre_container {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* For correct positioning of _copyButton (See TextualBody) */
|
2022-06-27 09:38:17 +03:00
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&:focus-within,
|
|
|
|
|
&:hover {
|
|
|
|
|
.mx_EventTile_button {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_collapsedCodeBlock {
|
|
|
|
|
max-height: 30vh;
|
2023-01-19 18:49:21 +03:00
|
|
|
|
padding-top: $spacing-12;
|
|
|
|
|
padding-bottom: $spacing-12;
|
2022-06-27 09:38:17 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Inserted adjacent to <pre> blocks, (See TextualBody) */
|
2022-06-27 09:38:17 +03:00
|
|
|
|
.mx_EventTile_button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: $spacing-8;
|
|
|
|
|
right: $spacing-8;
|
|
|
|
|
width: 19px;
|
|
|
|
|
height: 19px;
|
|
|
|
|
visibility: hidden;
|
|
|
|
|
background-color: $message-action-bar-fg-color;
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_buttonBottom {
|
|
|
|
|
top: 33px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_collapseButton,
|
|
|
|
|
&.mx_EventTile_expandButton {
|
|
|
|
|
mask-size: 75%;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-01 12:29:19 +03:00
|
|
|
|
|
|
|
|
|
.mx_EventTile_copyButton {
|
|
|
|
|
height: 17px;
|
|
|
|
|
mask-image: url($copy-button-url);
|
|
|
|
|
mask-position: center center;
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-size: contain;
|
|
|
|
|
right: 9px;
|
|
|
|
|
width: 17px;
|
|
|
|
|
}
|
2022-06-27 09:38:17 +03:00
|
|
|
|
}
|
2021-11-11 14:00:18 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-01-21 12:53:18 +03:00
|
|
|
|
.mx_EventTile_lineNumbers {
|
|
|
|
|
float: left;
|
|
|
|
|
margin: 0 0.5em 0 -1.5em;
|
|
|
|
|
color: gray;
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2021-10-18 21:32:20 +03:00
|
|
|
|
& span {
|
|
|
|
|
text-align: right;
|
|
|
|
|
display: block;
|
|
|
|
|
padding-left: 1em;
|
|
|
|
|
}
|
2021-01-21 12:53:18 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-01-20 17:01:23 +03:00
|
|
|
|
.mx_EventTile_button {
|
2018-04-12 02:23:35 +03:00
|
|
|
|
display: inline-block;
|
|
|
|
|
cursor: pointer;
|
2021-01-20 17:01:23 +03:00
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2022-05-23 23:16:50 +03:00
|
|
|
|
.mx_EventTile_collapseButton,
|
|
|
|
|
.mx_EventTile_expandButton {
|
2021-02-08 17:22:30 +03:00
|
|
|
|
mask-position: center;
|
|
|
|
|
mask-repeat: no-repeat;
|
2022-05-23 23:16:50 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_collapseButton {
|
2021-11-16 17:43:18 +03:00
|
|
|
|
mask-image: url("$(res)/img/element-icons/minimise-collapse.svg");
|
2021-01-19 23:02:39 +03:00
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2021-01-19 23:02:39 +03:00
|
|
|
|
.mx_EventTile_expandButton {
|
2021-11-16 17:43:18 +03:00
|
|
|
|
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
|
2021-01-19 23:02:39 +03:00
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
|
2020-02-24 21:04:11 +03:00
|
|
|
|
.mx_EventTile_tileError {
|
|
|
|
|
color: red;
|
2020-03-26 16:47:32 +03:00
|
|
|
|
text-align: center;
|
2020-02-24 21:04:11 +03:00
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Remove some of the default tile padding so that the error is centered */
|
2020-04-06 13:44:46 +03:00
|
|
|
|
margin-right: 0;
|
2021-08-24 11:09:28 +03:00
|
|
|
|
|
2020-04-06 13:44:46 +03:00
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
2022-06-27 09:38:17 +03:00
|
|
|
|
span {
|
|
|
|
|
padding: $spacing-4 $spacing-8;
|
|
|
|
|
}
|
2020-02-24 21:04:11 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
margin-left: 1em;
|
|
|
|
|
}
|
2020-02-25 13:20:42 +03:00
|
|
|
|
}
|
2020-01-30 13:18:14 +03:00
|
|
|
|
|
2021-07-07 13:04:28 +03:00
|
|
|
|
.mx_EventTile:hover .mx_MessageActionBar,
|
|
|
|
|
.mx_EventTile.mx_EventTile_actionBarFocused .mx_MessageActionBar,
|
2022-12-12 14:24:14 +03:00
|
|
|
|
[data-whatinput="keyboard"] .mx_EventTile:focus-within .mx_MessageActionBar,
|
2021-07-07 13:04:28 +03:00
|
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_MessageActionBar {
|
|
|
|
|
visibility: visible;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Inverse of the above to *disable* the animation on any indicators. This approach */
|
|
|
|
|
/* is less pretty, but is easier to target because otherwise we need to define the */
|
|
|
|
|
/* animation for when it's shown which means duplicating the style definition in */
|
|
|
|
|
/* multiple places. */
|
2022-12-12 14:24:14 +03:00
|
|
|
|
.mx_EventTile:not(:hover):not(.mx_EventTile_actionBarFocused):not([data-whatinput="keyboard"] :focus-within) {
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&:not(.focus-visible:focus-within) .mx_MessageActionBar .mx_Indicator {
|
2022-04-17 04:05:20 +03:00
|
|
|
|
animation: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-21 13:25:50 +03:00
|
|
|
|
.mx_EventTile[data-shape="ThreadsList"],
|
|
|
|
|
.mx_EventTile[data-shape="Notification"] {
|
2022-04-29 14:03:39 +03:00
|
|
|
|
--topOffset: $spacing-12;
|
|
|
|
|
--leftOffset: 48px;
|
2022-04-05 19:01:34 +03:00
|
|
|
|
$borderRadius: 8px;
|
2022-04-29 14:03:39 +03:00
|
|
|
|
$padding: $spacing-8;
|
|
|
|
|
$hrHeight: 1px;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
$notification-dot-size: 8px; /* notification dot next to the timestamp */
|
2021-11-03 21:05:01 +03:00
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
margin: calc(var(--topOffset) + $hrHeight) 0 var(--topOffset); /* include the height of horizontal line */
|
2022-04-29 14:03:39 +03:00
|
|
|
|
padding: $padding $spacing-24 $padding $padding;
|
2022-04-05 19:01:34 +03:00
|
|
|
|
border-radius: $borderRadius;
|
2021-11-03 21:05:01 +03:00
|
|
|
|
|
2022-01-19 13:41:39 +03:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: wrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
2022-06-07 16:55:11 +03:00
|
|
|
|
&::after,
|
|
|
|
|
&::before {
|
2021-11-03 21:05:01 +03:00
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
2022-06-07 16:55:11 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
$inset-block-start: auto;
|
|
|
|
|
$inset-inline-end: calc(32px - $padding);
|
2022-07-27 16:39:29 +03:00
|
|
|
|
$inset-block-end: calc(-1 * var(--topOffset) - $hrHeight); /* exclude the height of horizontal line */
|
2022-06-07 16:55:11 +03:00
|
|
|
|
$inset-inline-start: calc(var(--leftOffset) + $padding);
|
|
|
|
|
inset: $inset-block-start $inset-inline-end $inset-block-end $inset-inline-start;
|
|
|
|
|
|
2022-04-29 14:03:39 +03:00
|
|
|
|
height: $hrHeight;
|
2021-11-03 21:05:01 +03:00
|
|
|
|
background-color: $quinary-content;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
pointer-events: none; /* disable the message action bar on hover */
|
2021-10-15 16:29:17 +03:00
|
|
|
|
}
|
2021-11-03 21:05:01 +03:00
|
|
|
|
|
2021-12-20 23:43:45 +03:00
|
|
|
|
&::before {
|
2022-05-26 01:33:35 +03:00
|
|
|
|
inset: 0;
|
2023-01-18 17:56:43 +03:00
|
|
|
|
pointer-events: none; /* ensures the title for the sender name can be correctly displayed */
|
2022-05-26 01:33:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Display notification dot */
|
2022-10-24 09:50:21 +03:00
|
|
|
|
&[data-notification]::before,
|
|
|
|
|
.mx_NotificationBadge {
|
|
|
|
|
position: absolute;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
$notification-inset-block-start: 14px; /* 14px: align the dot with the timestamp row */
|
2022-06-29 10:32:48 +03:00
|
|
|
|
|
2022-10-24 09:50:21 +03:00
|
|
|
|
/* !important to fix overly specific CSS selector applied on mx_NotificationBadge */
|
|
|
|
|
width: $notification-dot-size !important;
|
|
|
|
|
height: $notification-dot-size !important;
|
2022-05-26 01:33:35 +03:00
|
|
|
|
border-radius: 50%;
|
2022-06-29 10:32:48 +03:00
|
|
|
|
inset: $notification-inset-block-start $spacing-8 auto auto;
|
2022-05-26 01:33:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-10-24 09:50:21 +03:00
|
|
|
|
.mx_NotificationBadge_count {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-notification="total"]::before {
|
2022-05-26 01:33:35 +03:00
|
|
|
|
background-color: $room-icon-unread-color;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-notification="highlight"]::before {
|
2022-05-26 01:33:35 +03:00
|
|
|
|
background-color: $alert;
|
2021-12-20 23:43:45 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-11-03 21:05:01 +03:00
|
|
|
|
&:last-child {
|
|
|
|
|
&::after {
|
|
|
|
|
content: unset;
|
|
|
|
|
}
|
2022-04-05 19:01:34 +03:00
|
|
|
|
|
2021-11-03 21:05:01 +03:00
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
2022-06-07 16:55:11 +03:00
|
|
|
|
inset: $padding auto auto $padding;
|
2021-11-03 21:05:01 +03:00
|
|
|
|
}
|
|
|
|
|
|
2023-01-18 17:56:43 +03:00
|
|
|
|
.mx_EventTile_details {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-23 08:45:53 +03:00
|
|
|
|
.mx_DisambiguatedProfile {
|
2022-01-19 13:41:39 +03:00
|
|
|
|
display: inline-flex;
|
2023-01-18 17:56:43 +03:00
|
|
|
|
align-items: center;
|
|
|
|
|
flex: 1;
|
2022-01-19 13:41:39 +03:00
|
|
|
|
|
2022-06-07 16:55:11 +03:00
|
|
|
|
.mx_DisambiguatedProfile_displayName,
|
|
|
|
|
.mx_DisambiguatedProfile_mxid {
|
|
|
|
|
display: block;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
2022-01-19 13:41:39 +03:00
|
|
|
|
|
2022-06-07 16:55:11 +03:00
|
|
|
|
.mx_DisambiguatedProfile_displayName {
|
|
|
|
|
flex: none;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
}
|
2022-01-19 13:41:39 +03:00
|
|
|
|
|
2022-06-07 16:55:11 +03:00
|
|
|
|
.mx_DisambiguatedProfile_mxid {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
2021-11-03 21:05:01 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
2022-01-19 13:41:39 +03:00
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
2022-06-15 20:26:24 +03:00
|
|
|
|
padding-bottom: 0;
|
2022-12-21 13:25:50 +03:00
|
|
|
|
padding-inline-start: var(--leftOffset);
|
2022-06-07 16:55:11 +03:00
|
|
|
|
|
|
|
|
|
.mx_ThreadPanel_replies {
|
|
|
|
|
margin-top: $spacing-8;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
2022-07-04 22:07:50 +03:00
|
|
|
|
&::before {
|
|
|
|
|
@mixin ThreadSummaryIcon;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-07 16:55:11 +03:00
|
|
|
|
.mx_ThreadPanel_replies_amount {
|
2022-07-04 22:07:50 +03:00
|
|
|
|
@mixin ThreadRepliesAmount;
|
|
|
|
|
line-height: var(--EventTile_ThreadSummary-line-height);
|
2022-07-27 16:39:29 +03:00
|
|
|
|
font-size: $font-12px; /* Same font size as the counter on the main panel */
|
2022-06-07 16:55:11 +03:00
|
|
|
|
}
|
2022-07-06 09:33:40 +03:00
|
|
|
|
|
|
|
|
|
.mx_ThreadSummary_content {
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2022-06-07 16:55:11 +03:00
|
|
|
|
}
|
2021-11-03 21:05:01 +03:00
|
|
|
|
}
|
2022-01-19 13:41:39 +03:00
|
|
|
|
|
2021-11-03 21:05:01 +03:00
|
|
|
|
.mx_MessageTimestamp {
|
2022-06-30 14:37:43 +03:00
|
|
|
|
font-size: $font-12px;
|
2023-01-18 17:56:43 +03:00
|
|
|
|
width: unset; /* Cancel the default width */
|
|
|
|
|
overflow: hidden; /* ensure correct overflow behavior */
|
|
|
|
|
text-overflow: ellipsis;
|
2022-06-15 20:26:24 +03:00
|
|
|
|
position: initial;
|
2023-01-11 18:39:44 +03:00
|
|
|
|
margin-left: auto; /* to ensure it's end-aligned even if it's the only element of its parent */
|
2021-10-15 16:29:17 +03:00
|
|
|
|
}
|
2022-07-13 00:31:07 +03:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: $system;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* ThreadsList has always group layout */
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="group"]:hover {
|
2022-07-13 00:31:07 +03:00
|
|
|
|
.mx_EventTile_line {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
background-color: $system; /* override $event-selected-color */
|
|
|
|
|
box-shadow: none; /* don't show the verification left stroke in the thread list */
|
2022-07-13 00:31:07 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-23 16:44:44 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* For style rules of ThreadView, see _ThreadPanel.pcss */
|
2021-08-17 13:10:02 +03:00
|
|
|
|
.mx_ThreadView {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
--ThreadView_group_spacing-start: 56px; /* 56px: 64px - 8px (padding) */
|
|
|
|
|
--ThreadView_group_spacing-end: 8px; /* same as padding */
|
2022-05-12 10:04:54 +03:00
|
|
|
|
|
2021-08-17 13:10:02 +03:00
|
|
|
|
.mx_EventTile {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2021-09-24 13:44:11 +03:00
|
|
|
|
|
2022-06-09 15:31:38 +03:00
|
|
|
|
.mx_EventTile_roomName {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* handling for hidden events (e.g reactions) in the thread view */
|
2022-06-09 15:31:38 +03:00
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
position: absolute;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
top: 1.5px; /* Align with hidden event content */
|
2022-06-09 15:31:38 +03:00
|
|
|
|
margin-top: 0;
|
|
|
|
|
margin-bottom: 0;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
width: 14px; /* avatar img size */
|
|
|
|
|
height: 14px; /* avatar img size */
|
2022-06-09 15:31:38 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ViewSourceEvent_toggle {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
display: none; /* hide the hidden event expand button, not enough
|
|
|
|
|
space, view source can still be used */
|
2022-06-09 15:31:38 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_EventTile_selected .mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
$line-height: $font-12px;
|
|
|
|
|
|
|
|
|
|
padding-inline-start: 0;
|
|
|
|
|
line-height: $line-height;
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_content,
|
|
|
|
|
.mx_RedactedBody {
|
|
|
|
|
width: auto;
|
|
|
|
|
font-size: $line-height;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"],
|
|
|
|
|
&[data-layout="group"] {
|
2022-07-08 09:39:20 +03:00
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
2022-06-09 15:31:38 +03:00
|
|
|
|
.mx_EventTile_avatar {
|
2023-05-04 15:19:26 +03:00
|
|
|
|
/* 14px: avatar width, 4px: align with text */
|
|
|
|
|
left: calc(var(--MessageTimestamp-width) + 14px - 4px);
|
2022-07-27 16:39:29 +03:00
|
|
|
|
z-index: 9; /* position above the hover styling */
|
2022-06-09 15:31:38 +03:00
|
|
|
|
}
|
2022-07-08 12:38:06 +03:00
|
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
top: 2px; /* Align with avatar */
|
2022-07-08 12:38:06 +03:00
|
|
|
|
}
|
2023-03-08 14:23:41 +03:00
|
|
|
|
|
|
|
|
|
&.mx_EventTile_selected .mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
.mx_EventTile_content,
|
|
|
|
|
.mx_RedactedBody {
|
|
|
|
|
/* 14px: avatar width, 6px: 20px - 14px */
|
|
|
|
|
margin-inline-start: calc(14px + 6px);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-06-09 15:31:38 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="bubble"] {
|
2022-06-09 15:31:38 +03:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
inset-inline-start: 0;
|
|
|
|
|
}
|
2023-03-08 14:23:41 +03:00
|
|
|
|
|
|
|
|
|
&.mx_EventTile_selected .mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
|
.mx_EventTile_content,
|
|
|
|
|
.mx_RedactedBody {
|
|
|
|
|
margin-inline-start: calc(var(--ThreadView_group_spacing-start) + 14px + 6px);
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-06-09 15:31:38 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"],
|
|
|
|
|
&[data-layout="group"] {
|
2022-07-08 12:38:06 +03:00
|
|
|
|
padding-block-start: $spacing-16;
|
2022-06-09 15:31:38 +03:00
|
|
|
|
|
2023-03-08 14:23:41 +03:00
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
|
margin-inline-end: var(--ThreadView_group_spacing-end);
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-13 21:04:27 +03:00
|
|
|
|
.mx_EventTile_line {
|
2023-03-08 14:23:41 +03:00
|
|
|
|
padding-block: var(--BaseCard_EventTile_line-padding-block);
|
|
|
|
|
|
|
|
|
|
/* Add padding to align message text with summary text */
|
|
|
|
|
/* See: .mx_EventTile[data-layout="group"] .mx_EventTile_line */
|
|
|
|
|
padding-inline-start: var(--ThreadView_group_spacing-start);
|
|
|
|
|
|
2022-05-20 12:14:37 +03:00
|
|
|
|
.mx_EventTile_content {
|
|
|
|
|
&.mx_EditMessageComposer {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
padding-inline-start: 0; /* align start of first letter with that of the event body */
|
2022-05-20 12:14:37 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-05-13 21:04:27 +03:00
|
|
|
|
}
|
2022-01-12 12:02:30 +03:00
|
|
|
|
|
2022-06-09 15:31:38 +03:00
|
|
|
|
.mx_ReactionsRow {
|
2023-03-08 14:23:41 +03:00
|
|
|
|
/* Align with message text and summary text */
|
2022-05-22 09:19:45 +03:00
|
|
|
|
margin-inline-start: var(--ThreadView_group_spacing-start);
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-08 14:23:41 +03:00
|
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
|
padding-block-start: 0; /* Cancel padding-block-start */
|
2022-05-22 09:19:45 +03:00
|
|
|
|
}
|
2023-03-08 14:23:41 +03:00
|
|
|
|
}
|
2022-05-21 23:19:56 +03:00
|
|
|
|
|
2023-03-08 14:23:41 +03:00
|
|
|
|
&[data-layout="group"] {
|
|
|
|
|
width: 100%;
|
2022-01-12 12:02:30 +03:00
|
|
|
|
|
2022-06-09 15:31:38 +03:00
|
|
|
|
.mx_EventTile_senderDetails {
|
2022-01-12 12:02:30 +03:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2022-07-27 16:39:29 +03:00
|
|
|
|
gap: $spacing-16; /* gap between the avatar and the sender ID */
|
2022-06-09 15:31:38 +03:00
|
|
|
|
padding-inline-start: $spacing-8;
|
2022-01-12 12:02:30 +03:00
|
|
|
|
|
2022-06-09 15:31:38 +03:00
|
|
|
|
a {
|
2022-01-12 12:02:30 +03:00
|
|
|
|
flex: 1;
|
2022-06-09 15:31:38 +03:00
|
|
|
|
min-width: unset;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
2022-01-12 12:02:30 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-06 13:45:18 +03:00
|
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
position: absolute; /* for IRC layout */
|
|
|
|
|
top: 2px; /* Align with mx_EventTile_content */
|
2022-07-06 13:45:18 +03:00
|
|
|
|
}
|
2022-07-08 12:38:06 +03:00
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
&.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
|
&.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
|
&.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
|
|
|
|
|
padding-inline-start: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="bubble"] {
|
2022-07-08 12:38:06 +03:00
|
|
|
|
margin-inline: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
inset-inline: calc(-1 * var(--BaseCard_EventTile-spacing-inline));
|
2022-07-27 16:39:29 +03:00
|
|
|
|
z-index: auto; /* enable background color on hover */
|
2022-07-08 12:38:06 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
position: relative; /* display on hover */
|
2022-07-08 12:38:06 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line.mx_EventTile_mediaLine {
|
|
|
|
|
padding-block: 0;
|
|
|
|
|
padding-inline-start: 0;
|
|
|
|
|
max-width: var(--EventBubbleTile_line-max-width);
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-self="true"] {
|
2022-07-08 12:38:06 +03:00
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line.mx_EventTile_mediaLine {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
margin: 0 var(--EventTile_bubble_line-margin-inline-end) 0 0; /* align with normal messages */
|
2022-07-08 12:38:06 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-29 13:58:34 +03:00
|
|
|
|
}
|
2021-11-02 16:18:51 +03:00
|
|
|
|
}
|
2022-06-09 15:31:38 +03:00
|
|
|
|
|
|
|
|
|
.mx_GenericEventListSummary {
|
2022-07-15 16:53:23 +03:00
|
|
|
|
&[data-layout="irc"],
|
|
|
|
|
&[data-layout="group"] {
|
2022-07-08 12:38:06 +03:00
|
|
|
|
> .mx_EventTile_line {
|
2022-07-27 16:39:29 +03:00
|
|
|
|
padding-inline-start: var(--ThreadView_group_spacing-start); /* align summary text with message text */
|
|
|
|
|
padding-inline-end: var(--ThreadView_group_spacing-end); /* align summary text with message text */
|
2022-07-08 12:38:06 +03:00
|
|
|
|
}
|
2022-06-09 15:31:38 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-17 13:10:02 +03:00
|
|
|
|
}
|
2022-06-15 09:44:39 +03:00
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Cascading - compact modern layout on the main timeline and the right panel */
|
2022-06-18 16:43:23 +03:00
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile[data-layout="group"] {
|
|
|
|
|
--MatrixChat_useCompactLayout_group-padding-top: $spacing-4;
|
|
|
|
|
--MatrixChat_useCompactLayout-top-avatar: 2px;
|
|
|
|
|
--MatrixChat_useCompactLayout-top-e2eIcon: 3px;
|
|
|
|
|
--MatrixChat_useCompactLayout_line-spacing-block: 0px;
|
2022-06-29 10:32:48 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
padding-top: var(--MatrixChat_useCompactLayout_group-padding-top);
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
padding-block: var(--MatrixChat_useCompactLayout_line-spacing-block);
|
|
|
|
|
}
|
2022-07-05 14:02:29 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_ReplyChain {
|
|
|
|
|
margin-bottom: $spacing-4;
|
|
|
|
|
}
|
2023-03-06 12:19:38 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
|
padding-top: 0; /* same as the padding for non-compact .mx_EventTile.mx_EventTile_info */
|
|
|
|
|
font-size: $font-13px;
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_e2eIcon,
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: 0;
|
|
|
|
|
margin-block: var(--MatrixChat_useCompactLayout_line-spacing-block);
|
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
line-height: $font-20px;
|
2022-06-18 16:43:23 +03:00
|
|
|
|
}
|
2023-04-27 16:02:34 +03:00
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
&.mx_EventTile_emote {
|
|
|
|
|
padding-top: $spacing-8; /* add a bit more space for emotes so that avatars don't collide */
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: var(--MatrixChat_useCompactLayout-top-avatar);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
|
padding-bottom: 1px;
|
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
&.mx_EventTile_continuation {
|
2022-06-18 16:43:23 +03:00
|
|
|
|
.mx_EventTile_line,
|
|
|
|
|
.mx_EventTile_reply {
|
2023-04-27 16:02:34 +03:00
|
|
|
|
padding-bottom: var(--MatrixChat_useCompactLayout_line-spacing-block);
|
2022-07-05 14:02:29 +03:00
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
}
|
2023-04-27 16:02:34 +03:00
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
/* Cascading - apply zero padding to every element including mx_EventTile_emote */
|
|
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
|
padding-top: var(--MatrixChat_useCompactLayout_line-spacing-block);
|
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
|
top: var(--MatrixChat_useCompactLayout-top-avatar);
|
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
|
top: var(--MatrixChat_useCompactLayout-top-e2eIcon);
|
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
|
font-size: $font-13px;
|
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
|
/* This aligns the avatar with the last line of the */
|
|
|
|
|
/* message. We want to move it one line up - 2rem */
|
|
|
|
|
inset-block-start: -2rem;
|
2022-06-18 16:43:23 +03:00
|
|
|
|
}
|
2023-04-27 16:02:34 +03:00
|
|
|
|
}
|
2022-06-18 16:43:23 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
.mx_EventTile_content .markdown-body {
|
|
|
|
|
p,
|
|
|
|
|
ul,
|
|
|
|
|
ol,
|
|
|
|
|
dl,
|
|
|
|
|
blockquote,
|
|
|
|
|
pre,
|
|
|
|
|
table {
|
|
|
|
|
margin-bottom: $spacing-4; /* 1/4 of the non-compact margin-bottom */
|
2022-06-18 16:43:23 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-04-27 16:02:34 +03:00
|
|
|
|
}
|
2022-06-29 10:32:48 +03:00
|
|
|
|
|
2023-04-27 16:02:34 +03:00
|
|
|
|
&[data-shape="ThreadsList"][data-notification]::before,
|
|
|
|
|
.mx_NotificationBadge {
|
|
|
|
|
/* stylelint-disable-next-line declaration-colon-space-after */
|
|
|
|
|
inset-block-start: calc($notification-inset-block-start - var(--MatrixChat_useCompactLayout_group-padding-top));
|
2022-06-18 16:43:23 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-21 13:25:50 +03:00
|
|
|
|
.mx_EventTile_details {
|
|
|
|
|
display: flex;
|
2023-01-16 16:46:54 +03:00
|
|
|
|
width: stretch;
|
2022-12-21 13:25:50 +03:00
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: $spacing-8;
|
|
|
|
|
margin-left: var(--leftOffset);
|
|
|
|
|
.mx_EventTile_truncated {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
|
/* Media query for mobile UI */
|
2022-06-15 09:44:39 +03:00
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
|
.mx_EventTile_content {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|