2018-04-11 23:23:35 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2021-06-18 17:59:22 +00:00
|
|
|
Copyright 2020-2021 The Matrix.org Foundation C.I.C.
|
2018-04-11 23:23:35 +00: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-13 21:56:20 +00:00
|
|
|
$left-gutter: 64px;
|
2022-04-29 11:03:39 +00:00
|
|
|
$threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
|
2020-07-13 21:56:20 +00:00
|
|
|
|
2022-01-10 12:53:23 +00:00
|
|
|
.mx_EventTile {
|
2022-06-29 18:31:40 +00:00
|
|
|
--EventTile_content-margin-inline-end: 34px; // TODO: Use a spacing variable
|
2022-07-01 09:04:53 +00: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-06-29 18:31:40 +00:00
|
|
|
|
2022-03-02 14:24:43 +00:00
|
|
|
flex-shrink: 0;
|
|
|
|
|
2022-06-30 04:47:35 +00:00
|
|
|
&.mx_EventTile_highlight,
|
|
|
|
&.mx_EventTile_highlight .markdown-body {
|
|
|
|
color: $alert;
|
|
|
|
}
|
|
|
|
|
2022-07-01 07:25:23 +00:00
|
|
|
&.mx_EventTile_bubbleContainer {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 100px;
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
margin-right: 0;
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
padding: 0 !important; // override default padding of mx_EventTile_line so that we can be centered
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
grid-column: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
// To avoid bubble events being highlighted
|
|
|
|
background-color: inherit !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-25 17:22:52 +00:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2022-07-01 08:04:33 +00:00
|
|
|
.mx_EventTile_body {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2022-01-10 12:53:23 +00:00
|
|
|
.mx_EventTile_receiptSent,
|
|
|
|
.mx_EventTile_receiptSending {
|
2022-04-22 15:09:44 +00:00
|
|
|
position: relative;
|
2022-01-19 03:08:11 +00:00
|
|
|
display: inline-block;
|
2022-04-22 15:09:44 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2022-01-10 12:53:23 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $tertiary-content;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2022-04-22 15:09:44 +00:00
|
|
|
mask-size: 16px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2022-01-10 12:53:23 +00:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-01-10 12:53:23 +00:00
|
|
|
.mx_EventTile_receiptSent::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/circle-sent.svg');
|
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-01-10 12:53:23 +00:00
|
|
|
.mx_EventTile_receiptSending::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/circle-sending.svg');
|
|
|
|
}
|
2022-05-09 06:27:13 +00:00
|
|
|
|
2022-05-17 17:12:13 +00:00
|
|
|
.mx_EventTile_content {
|
|
|
|
&.mx_EditMessageComposer {
|
|
|
|
// Make sure the formatting bar is visible
|
|
|
|
overflow: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-23 07:02:13 +00:00
|
|
|
.mx_MImageBody {
|
|
|
|
.mx_MImageBody_thumbnail_container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center; // on every layout
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-29 22:38:23 +00:00
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
color: $primary-content;
|
|
|
|
font-size: $font-14px;
|
|
|
|
display: inline-block;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
padding-top: 0px;
|
|
|
|
}
|
|
|
|
|
2022-06-16 17:47:37 +00:00
|
|
|
.mx_ReactionsRow {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: wrap;
|
|
|
|
align-items: center;
|
|
|
|
gap: $spacing-4;
|
|
|
|
}
|
|
|
|
|
2022-07-01 08:04:33 +00:00
|
|
|
.mx_ReplyChain--expanded {
|
|
|
|
.mx_EventTile_body {
|
|
|
|
display: block;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_collapsedCodeBlock {
|
|
|
|
display: block !important; // !important needed due to .mx_ReplyTile .mx_EventTile_content .mx_EventTile_pre_container > pre
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:19:02 +00:00
|
|
|
&[data-layout=irc],
|
|
|
|
&[data-layout=group] {
|
2022-06-30 04:47:35 +00:00
|
|
|
&.mx_EventTile_highlight,
|
|
|
|
&.mx_EventTile_highlight .markdown-body {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-25 17:49:34 +00:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:19:02 +00:00
|
|
|
.mx_MImageBody {
|
2022-06-29 18:31:40 +00:00
|
|
|
margin-right: var(--EventTile_content-margin-inline-end);
|
|
|
|
|
|
|
|
.mx_MImageBody_thumbnail_container {
|
|
|
|
justify-content: flex-start;
|
|
|
|
min-height: $font-44px;
|
|
|
|
min-width: $font-44px;
|
|
|
|
}
|
2022-06-25 12:19:02 +00:00
|
|
|
}
|
2022-06-29 05:41:52 +00:00
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
position: relative;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2022-06-25 12:19:02 +00:00
|
|
|
}
|
|
|
|
|
2022-05-09 06:27:13 +00:00
|
|
|
&[data-layout=group] {
|
2022-06-15 17:26:24 +00:00
|
|
|
> .mx_DisambiguatedProfile {
|
|
|
|
line-height: $font-20px;
|
|
|
|
margin-left: $left-gutter;
|
2022-06-20 14:26:34 +00:00
|
|
|
max-width: calc(100% - $left-gutter);
|
2022-06-15 17:26:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_EventTile_avatar {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 9;
|
|
|
|
}
|
|
|
|
|
2022-06-25 17:22:52 +00:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 14px;
|
|
|
|
left: $spacing-8;
|
|
|
|
}
|
|
|
|
|
2022-06-15 17:26:24 +00:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
position: absolute; // for modern layout
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_reply {
|
2022-07-01 09:04:53 +00: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 18:28:47 +00:00
|
|
|
line-height: var(--EventTile_group_line-line-height);
|
2022-05-09 06:27:13 +00:00
|
|
|
}
|
2022-06-25 11:59:25 +00:00
|
|
|
|
2022-06-25 17:49:34 +00:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
inset: 6px 0 0 44px;
|
|
|
|
}
|
|
|
|
|
2022-06-26 14:01:28 +00:00
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
2022-06-25 11:59:25 +00:00
|
|
|
.mx_ThreadSummary,
|
|
|
|
.mx_ThreadSummaryIcon {
|
|
|
|
margin-left: $left-gutter;
|
|
|
|
}
|
2022-06-25 14:24:18 +00:00
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin: $spacing-4 64px;
|
|
|
|
}
|
2022-05-09 06:27:13 +00:00
|
|
|
}
|
2022-01-10 12:53:23 +00:00
|
|
|
}
|
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
.mx_EventTile:not([data-layout=bubble]) {
|
2018-04-11 23:23:35 +00:00
|
|
|
max-width: 100%;
|
|
|
|
clear: both;
|
|
|
|
padding-top: 18px;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2018-04-11 23:23:35 +00:00
|
|
|
position: relative;
|
|
|
|
|
2022-05-12 07:04:54 +00:00
|
|
|
&.mx_EventTile_info {
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar,
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
margin: 3px 0 2px; // Align with mx_EventTile_line
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: initial;
|
|
|
|
inset-inline-start: $left-gutter;
|
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding: 3px 0 2px; // Align with mx_EventTile_avatar and mx_EventTile_e2eIcon
|
2022-05-14 07:55:52 +00:00
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
top: 0;
|
|
|
|
}
|
2022-05-12 07:04:54 +00:00
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile_continuation {
|
2021-06-18 17:59:22 +00:00
|
|
|
padding-top: 0px !important;
|
2019-05-21 10:20:58 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile_isEditing .mx_MessageTimestamp {
|
2021-06-18 17:59:22 +00:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
2019-03-05 13:49:07 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
.mx_MessageTimestamp {
|
2021-06-18 17:59:22 +00:00
|
|
|
left: 0px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-03-05 13:49:07 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile_continuation .mx_EventTile_line {
|
2021-06-18 17:59:22 +00:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* this is used for the tile for the event which is selected via the URL.
|
|
|
|
* TODO: ultimately we probably want some transition on here.
|
|
|
|
*/
|
2022-05-12 10:27:06 +00:00
|
|
|
&.mx_EventTile_isEditing > .mx_EventTile_line,
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile_selected > .mx_EventTile_line {
|
2021-11-29 10:58:34 +00:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $accent;
|
2021-06-18 17:59:22 +00:00
|
|
|
background-color: $event-selected-color;
|
2020-03-20 09:29:59 +00:00
|
|
|
}
|
2020-04-27 16:50:50 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile_selected.mx_EventTile_info .mx_EventTile_line {
|
2021-11-29 10:58:34 +00:00
|
|
|
padding-left: calc($left-gutter + 18px);
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile:hover .mx_EventTile_line,
|
|
|
|
&.mx_EventTile.mx_EventTile_actionBarFocused .mx_EventTile_line,
|
|
|
|
&.mx_EventTile.focus-visible:focus-within .mx_EventTile_line {
|
2021-06-18 17:59:22 +00:00
|
|
|
background-color: $event-selected-color;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
.mx_EventTile_searchHighlight {
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $accent;
|
2021-06-18 17:59:22 +00:00
|
|
|
color: $accent-fg-color;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
|
|
|
cursor: pointer;
|
2019-07-10 15:55:03 +00:00
|
|
|
|
2022-06-27 06:38:17 +00:00
|
|
|
a {
|
|
|
|
background-color: $accent;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&.mx_EventTile_contextual {
|
2021-06-18 17:59:22 +00:00
|
|
|
opacity: 0.4;
|
2019-11-07 16:39:50 +00:00
|
|
|
}
|
2019-11-08 16:10:51 +00:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
2021-06-18 17:59:22 +00:00
|
|
|
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;
|
2021-06-18 15:03:48 +00:00
|
|
|
|
2022-06-27 06:38:17 +00:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&:hover.mx_EventTile_verified .mx_EventTile_line {
|
2021-11-29 10:58:34 +00:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $e2e-verified-color;
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&:hover.mx_EventTile_unverified .mx_EventTile_line {
|
2021-11-29 10:58:34 +00:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $e2e-unverified-color;
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&:hover.mx_EventTile_unknown .mx_EventTile_line {
|
2021-11-29 10:58:34 +00:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $e2e-unknown-color;
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-13 08:36:35 +00:00
|
|
|
&:hover.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
|
2021-11-29 10:58:34 +00:00
|
|
|
padding-left: calc($left-gutter + 18px + $selected-message-border-width);
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
2021-02-28 05:46:38 +00:00
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
/* End to end encryption stuff */
|
2021-07-13 08:36:35 +00:00
|
|
|
&:hover .mx_EventTile_e2eIcon {
|
2021-06-18 17:59:22 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2022-06-28 13:05:19 +00:00
|
|
|
.mx_GenericEventListSummary:not([data-layout=bubble]) .mx_EventTile_line {
|
|
|
|
padding-left: $left-gutter;
|
2022-05-09 06:27:13 +00:00
|
|
|
|
2022-06-28 13:05:19 +00:00
|
|
|
.mx_RedactedBody {
|
|
|
|
line-height: 1; // remove spacing between lines
|
2022-05-09 06:27:13 +00:00
|
|
|
}
|
2022-02-22 10:25:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile:not([data-layout=bubble]).mx_EventTile_info .mx_EventTile_line,
|
2022-02-28 10:23:01 +00:00
|
|
|
.mx_GenericEventListSummary:not([data-layout=bubble]) > .mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
|
|
|
|
padding-left: calc($left-gutter + 20px); // override padding-left $left-gutter
|
2021-07-27 14:24:05 +00:00
|
|
|
}
|
|
|
|
|
2021-07-21 09:41:52 +00:00
|
|
|
.mx_EventTile_content {
|
2022-05-18 13:04:39 +00: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 09:41:52 +00:00
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: hidden;
|
2022-06-29 18:31:40 +00:00
|
|
|
margin-right: var(--EventTile_content-margin-inline-end);
|
2022-05-18 13:04:39 +00: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;
|
|
|
|
color: inherit; // inherit the colour from the dark or light theme by default (but not for code blocks)
|
|
|
|
font-size: $font-14px;
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code {
|
|
|
|
font-family: $monospace-font-family !important;
|
|
|
|
background-color: $codeblock-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
white-space: pre-wrap; // don't collapse spaces in inline code blocks
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
// 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
|
|
|
|
overflow-x: overlay;
|
|
|
|
overflow-y: visible;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
white-space: pre; // we want code blocks to be scrollable and not wrap
|
|
|
|
|
|
|
|
> * {
|
|
|
|
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;
|
|
|
|
border-bottom: none !important; // override GFM
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
}
|
2021-07-21 09:41:52 +00:00
|
|
|
}
|
|
|
|
|
2021-07-21 06:42:42 +00:00
|
|
|
/* Spoiler stuff */
|
|
|
|
.mx_EventTile_spoiler {
|
|
|
|
cursor: pointer;
|
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
.mx_EventTile_spoiler_reason {
|
|
|
|
color: $event-timestamp-color;
|
|
|
|
font-size: $font-11px;
|
|
|
|
}
|
2021-07-21 06:42:42 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
.mx_EventTile_spoiler_content {
|
|
|
|
filter: blur(5px) saturate(0.1) sepia(1);
|
|
|
|
transition-duration: 0.5s;
|
|
|
|
}
|
2021-07-21 06:42:42 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
&.visible > .mx_EventTile_spoiler_content {
|
|
|
|
filter: none;
|
|
|
|
}
|
2021-07-21 06:42:42 +00:00
|
|
|
}
|
|
|
|
|
2021-07-14 13:32:35 +00:00
|
|
|
.mx_RoomView_timeline_rr_enabled {
|
2021-08-04 09:21:52 +00:00
|
|
|
.mx_EventTile[data-layout=group] {
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-04-27 17:10:27 +00:00
|
|
|
.mx_ThreadSummary,
|
2022-04-05 16:01:34 +00:00
|
|
|
.mx_ThreadSummaryIcon,
|
2021-07-14 13:32:35 +00:00
|
|
|
.mx_EventTile_line {
|
|
|
|
/* ideally should be 100px, but 95px gives us a max thumbnail size of 800x600, which is nice */
|
2022-06-06 09:14:38 +00:00
|
|
|
margin-right: 80px;
|
2022-04-14 20:28:39 +00:00
|
|
|
min-height: $font-14px;
|
2021-07-14 13:32:35 +00:00
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-04-27 17:10:27 +00:00
|
|
|
.mx_ThreadSummary {
|
2022-06-06 09:14:38 +00:00
|
|
|
max-width: min(calc(100% - $left-gutter - 80px), 600px); // leave space on both left & right gutters
|
2022-04-05 16:01:34 +00:00
|
|
|
}
|
2021-07-14 13:32:35 +00:00
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2021-07-14 13:32:35 +00:00
|
|
|
// on ELS we need the margin to allow interaction with the expand/collapse button which is normally in the RR gutter
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2022-01-31 09:53:04 +00:00
|
|
|
.mx_EventTile_bigEmoji {
|
|
|
|
font-size: 48px;
|
2022-01-21 10:10:57 +00:00
|
|
|
line-height: 57px;
|
2022-01-31 09:53:04 +00:00
|
|
|
|
|
|
|
.mx_Emoji {
|
|
|
|
font-size: inherit !important;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
2021-07-07 13:13:58 +00:00
|
|
|
position: relative;
|
2020-07-13 22:56:25 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2019-12-04 05:41:22 +00:00
|
|
|
display: block;
|
2019-02-14 16:00:47 +00:00
|
|
|
opacity: 0.2;
|
2019-12-04 05:41:22 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
2019-02-01 15:43:12 +00:00
|
|
|
|
2022-04-05 16:01:34 +00:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2020-07-13 23:52:03 +00:00
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
2021-06-23 15:10:47 +00:00
|
|
|
mask-size: 80%;
|
2020-07-13 23:52:03 +00:00
|
|
|
}
|
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
&.mx_EventTile_e2eIcon_warning,
|
|
|
|
&.mx_EventTile_e2eIcon_normal {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_e2eIcon_warning::after {
|
2020-07-13 23:52:03 +00:00
|
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $alert;
|
2020-07-13 23:52:03 +00:00
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
&.mx_EventTile_e2eIcon_normal::after {
|
2020-07-13 23:52:03 +00:00
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
2021-11-16 10:10:44 +00:00
|
|
|
background-color: $header-panel-text-primary-color;
|
2020-07-13 23:52:03 +00:00
|
|
|
}
|
2020-06-19 01:57:33 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-07-30 07:54:28 +00:00
|
|
|
.mx_EventTile_body {
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
border: 1px solid transparent;
|
2022-06-27 06:38:17 +00:00
|
|
|
|
|
|
|
.mx_EventTile:hover &,
|
|
|
|
.mx_EventTile.focus-visible:focus-within & {
|
|
|
|
border: 1px solid $tertiary-content;
|
|
|
|
}
|
2021-07-30 07:54:28 +00:00
|
|
|
}
|
2022-01-10 15:32:06 +00:00
|
|
|
|
|
|
|
// selector wrongly applies to pill avatars but those have explicit width/height passed at a higher specificity
|
|
|
|
&.markdown-body img {
|
|
|
|
object-fit: contain;
|
|
|
|
object-position: left top;
|
|
|
|
}
|
2019-07-10 15:55:03 +00:00
|
|
|
|
2022-06-27 06:38:17 +00:00
|
|
|
.mx_EventTile_clamp & {
|
2021-11-11 11:00:18 +00:00
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
|
|
|
}
|
2022-06-27 06:38:17 +00:00
|
|
|
|
|
|
|
.mx_EventTile_pre_container {
|
|
|
|
// For correct positioning of _copyButton (See TextualBody)
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:focus-within,
|
|
|
|
&:hover {
|
|
|
|
.mx_EventTile_button {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_collapsedCodeBlock {
|
|
|
|
max-height: 30vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Inserted adjacent to <pre> blocks, (See TextualBody)
|
|
|
|
.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%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 11:00:18 +00:00
|
|
|
}
|
|
|
|
|
2021-01-21 09:53:18 +00:00
|
|
|
.mx_EventTile_lineNumbers {
|
|
|
|
float: left;
|
|
|
|
margin: 0 0.5em 0 -1.5em;
|
|
|
|
color: gray;
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2021-10-18 18:32:20 +00:00
|
|
|
& span {
|
|
|
|
text-align: right;
|
|
|
|
display: block;
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
2021-01-21 09:53:18 +00:00
|
|
|
}
|
|
|
|
|
2021-01-20 14:01:23 +00:00
|
|
|
.mx_EventTile_button {
|
2018-04-11 23:23:35 +00:00
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2021-01-20 14:01:23 +00:00
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2021-01-20 14:01:23 +00:00
|
|
|
.mx_EventTile_copyButton {
|
|
|
|
mask-image: url($copy-button-url);
|
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
.mx_EventTile_collapseButton,
|
|
|
|
.mx_EventTile_expandButton {
|
2021-02-08 14:22:30 +00:00
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
2022-05-23 20:16:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_collapseButton {
|
2021-11-16 14:43:18 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/minimise-collapse.svg");
|
2021-01-19 20:02:39 +00:00
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2021-01-19 20:02:39 +00:00
|
|
|
.mx_EventTile_expandButton {
|
2021-11-16 14:43:18 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
|
2021-01-19 20:02:39 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2021-06-18 17:59:22 +00:00
|
|
|
.mx_EventTile_keyRequestInfo {
|
|
|
|
font-size: $font-12px;
|
2020-04-06 10:44:46 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
.mx_EventTile_keyRequestInfo_text {
|
|
|
|
opacity: 0.5;
|
2020-02-24 18:04:11 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
color: $primary-content;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_keyRequestInfo_tooltip_contents p {
|
|
|
|
text-align: auto;
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 3px;
|
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0px;
|
|
|
|
}
|
2021-06-18 17:59:22 +00:00
|
|
|
|
2022-05-23 20:16:50 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0px;
|
|
|
|
}
|
2020-02-25 10:20:42 +00:00
|
|
|
}
|
2020-01-30 10:18:14 +00:00
|
|
|
|
2020-02-24 18:04:11 +00:00
|
|
|
.mx_EventTile_tileError {
|
|
|
|
color: red;
|
2020-03-26 13:47:32 +00:00
|
|
|
text-align: center;
|
2020-02-24 18:04:11 +00:00
|
|
|
|
2020-04-06 10:44:46 +00:00
|
|
|
// Remove some of the default tile padding so that the error is centered
|
|
|
|
margin-right: 0;
|
2021-08-24 08:09:28 +00:00
|
|
|
|
2020-04-06 10:44:46 +00:00
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
|
2022-06-27 06:38:17 +00:00
|
|
|
span {
|
|
|
|
padding: $spacing-4 $spacing-8;
|
|
|
|
}
|
2020-02-24 18:04:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
2020-02-25 10:20:42 +00:00
|
|
|
}
|
2020-01-30 10:18:14 +00:00
|
|
|
|
2021-07-07 10:04:28 +00:00
|
|
|
.mx_EventTile:hover .mx_MessageActionBar,
|
|
|
|
.mx_EventTile.mx_EventTile_actionBarFocused .mx_MessageActionBar,
|
|
|
|
[data-whatinput='keyboard'] .mx_EventTile:focus-within .mx_MessageActionBar,
|
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_MessageActionBar {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2022-04-17 01:05:20 +00: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.
|
|
|
|
.mx_EventTile:not(:hover):not(.mx_EventTile_actionBarFocused):not([data-whatinput='keyboard'] :focus-within):not(.focus-visible:focus-within) {
|
|
|
|
.mx_MessageActionBar .mx_Indicator {
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-27 17:10:27 +00:00
|
|
|
.mx_ThreadPanel_replies::before,
|
2022-01-12 17:16:00 +00:00
|
|
|
.mx_ThreadSummaryIcon::before,
|
2022-04-27 17:10:27 +00:00
|
|
|
.mx_ThreadSummary::before {
|
2022-04-29 11:03:39 +00:00
|
|
|
@mixin ThreadInfoIcon;
|
2022-04-05 16:01:34 +00:00
|
|
|
background-color: $secondary-content !important;
|
2022-01-12 17:16:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummaryIcon {
|
2022-04-05 16:01:34 +00:00
|
|
|
display: inline-block;
|
2022-01-12 17:16:00 +00:00
|
|
|
font-size: $font-12px;
|
2022-04-05 16:01:34 +00:00
|
|
|
color: $secondary-content !important;
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
2022-01-12 17:16:00 +00:00
|
|
|
&::before {
|
|
|
|
vertical-align: middle;
|
2022-04-05 16:01:34 +00:00
|
|
|
margin-right: 8px;
|
|
|
|
margin-top: -2px;
|
2022-01-12 17:16:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-27 17:10:27 +00:00
|
|
|
.mx_MessagePanel_narrow .mx_ThreadSummary {
|
2022-02-23 14:03:46 +00:00
|
|
|
min-width: initial;
|
2022-05-06 17:56:22 +00:00
|
|
|
max-width: 100%; // prevent overflow
|
2022-02-23 14:03:46 +00:00
|
|
|
width: initial;
|
|
|
|
}
|
|
|
|
|
2022-02-18 15:56:05 +00:00
|
|
|
.mx_EventTile[data-shape=ThreadsList] {
|
2022-04-29 11:03:39 +00:00
|
|
|
--topOffset: $spacing-12;
|
|
|
|
--leftOffset: 48px;
|
2022-04-05 16:01:34 +00:00
|
|
|
$borderRadius: 8px;
|
2022-04-29 11:03:39 +00:00
|
|
|
$padding: $spacing-8;
|
|
|
|
$hrHeight: 1px;
|
2022-06-07 13:55:11 +00:00
|
|
|
$notification-dot-size: 8px; // notification dot next to the timestamp
|
2021-11-03 18:05:01 +00:00
|
|
|
|
2022-04-29 11:03:39 +00:00
|
|
|
margin: calc(var(--topOffset) + $hrHeight) 0 var(--topOffset); // include the height of horizontal line
|
|
|
|
padding: $padding $spacing-24 $padding $padding;
|
2022-04-05 16:01:34 +00:00
|
|
|
border-radius: $borderRadius;
|
2021-11-03 18:05:01 +00:00
|
|
|
|
2022-01-19 10:41:39 +00:00
|
|
|
display: flex;
|
|
|
|
flex-flow: wrap;
|
|
|
|
align-items: center;
|
|
|
|
|
2022-04-29 11:03:39 +00:00
|
|
|
&:hover,
|
2022-05-11 09:56:58 +00:00
|
|
|
// Override .mx_EventTile:not([data-layout=bubble]).mx_EventTile:hover .mx_EventTile_line
|
2022-04-29 11:03:39 +00:00
|
|
|
&:not([data-layout=bubble]):hover .mx_EventTile_line {
|
2021-11-03 18:05:01 +00:00
|
|
|
background-color: $system;
|
2021-10-15 13:29:17 +00:00
|
|
|
}
|
|
|
|
|
2022-05-11 09:56:58 +00:00
|
|
|
&:not([data-layout=bubble]):hover .mx_EventTile_line {
|
|
|
|
box-shadow: none; // don't show the verification left stroke in the thread list
|
|
|
|
}
|
|
|
|
|
2022-06-07 13:55:11 +00:00
|
|
|
&::after,
|
|
|
|
&::before {
|
2021-11-03 18:05:01 +00:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2022-06-07 13:55:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
$inset-block-start: auto;
|
|
|
|
$inset-inline-end: calc(32px - $padding);
|
|
|
|
$inset-block-end: calc(-1 * var(--topOffset) - $hrHeight); // exclude the height of horizontal line
|
|
|
|
$inset-inline-start: calc(var(--leftOffset) + $padding);
|
|
|
|
inset: $inset-block-start $inset-inline-end $inset-block-end $inset-inline-start;
|
|
|
|
|
2022-04-29 11:03:39 +00:00
|
|
|
height: $hrHeight;
|
2021-11-03 18:05:01 +00:00
|
|
|
background-color: $quinary-content;
|
2022-04-28 16:06:56 +00:00
|
|
|
pointer-events: none; // disable the message action bar on hover
|
2021-10-15 13:29:17 +00:00
|
|
|
}
|
2021-11-03 18:05:01 +00:00
|
|
|
|
2021-12-20 20:43:45 +00:00
|
|
|
&::before {
|
2022-05-25 22:33:35 +00:00
|
|
|
inset: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Display notification dot
|
|
|
|
&[data-notification]::before {
|
2022-06-29 07:32:48 +00:00
|
|
|
$notification-inset-block-start: 14px; // 14px: align the dot with the timestamp row
|
|
|
|
|
2022-06-07 13:55:11 +00:00
|
|
|
width: $notification-dot-size;
|
|
|
|
height: $notification-dot-size;
|
2022-05-25 22:33:35 +00:00
|
|
|
border-radius: 50%;
|
2022-06-29 07:32:48 +00:00
|
|
|
inset: $notification-inset-block-start $spacing-8 auto auto;
|
2022-05-25 22:33:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-notification=total]::before {
|
|
|
|
background-color: $room-icon-unread-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-notification=highlight]::before {
|
|
|
|
background-color: $alert;
|
2021-12-20 20:43:45 +00:00
|
|
|
}
|
|
|
|
|
2021-11-03 18:05:01 +00:00
|
|
|
&:last-child {
|
|
|
|
&::after {
|
|
|
|
content: unset;
|
|
|
|
}
|
2022-04-05 16:01:34 +00:00
|
|
|
|
2021-11-03 18:05:01 +00:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
2022-06-07 13:55:11 +00:00
|
|
|
inset: $padding auto auto $padding;
|
2021-11-03 18:05:01 +00:00
|
|
|
}
|
|
|
|
|
2022-03-23 05:45:53 +00:00
|
|
|
.mx_DisambiguatedProfile {
|
2022-06-15 17:26:24 +00:00
|
|
|
margin-inline: 0 $spacing-12;
|
2022-01-19 10:41:39 +00:00
|
|
|
display: inline-flex;
|
2022-04-29 11:03:39 +00:00
|
|
|
flex: 1;
|
2022-01-19 10:41:39 +00:00
|
|
|
|
2022-06-07 13:55:11 +00:00
|
|
|
.mx_DisambiguatedProfile_displayName,
|
|
|
|
.mx_DisambiguatedProfile_mxid {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2022-01-19 10:41:39 +00:00
|
|
|
|
2022-06-07 13:55:11 +00:00
|
|
|
.mx_DisambiguatedProfile_displayName {
|
|
|
|
flex: none;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2022-01-19 10:41:39 +00:00
|
|
|
|
2022-06-07 13:55:11 +00:00
|
|
|
.mx_DisambiguatedProfile_mxid {
|
|
|
|
flex: 1;
|
|
|
|
}
|
2021-11-03 18:05:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
2022-01-19 10:41:39 +00:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2022-06-15 17:26:24 +00:00
|
|
|
padding-bottom: 0;
|
2022-06-07 13:55:11 +00:00
|
|
|
|
|
|
|
.mx_ThreadPanel_replies {
|
|
|
|
margin-top: $spacing-8;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.mx_ThreadPanel_replies_amount {
|
|
|
|
@mixin ThreadsAmount;
|
|
|
|
font-size: $font-12px; // Same font size as the counter on the main panel
|
|
|
|
}
|
|
|
|
}
|
2021-11-03 18:05:01 +00:00
|
|
|
}
|
2022-01-19 10:41:39 +00:00
|
|
|
|
2022-04-29 11:03:39 +00:00
|
|
|
.mx_DisambiguatedProfile,
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-inline-start: var(--leftOffset);
|
|
|
|
}
|
|
|
|
|
2021-11-03 18:05:01 +00:00
|
|
|
.mx_MessageTimestamp {
|
2022-06-30 11:37:43 +00:00
|
|
|
font-size: $font-12px;
|
|
|
|
max-width: var(--MessageTimestamp-max-width);
|
2022-06-15 17:26:24 +00:00
|
|
|
position: initial;
|
2021-10-15 13:29:17 +00:00
|
|
|
}
|
2021-08-23 13:44:44 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
// For style rules of ThreadView, see _ThreadPanel.scss
|
2021-08-17 10:10:02 +00:00
|
|
|
.mx_ThreadView {
|
2022-05-12 07:04:54 +00:00
|
|
|
--ThreadView_group_spacing-start: 56px; // 56px: 64px - 8px (padding)
|
2022-05-18 13:08:39 +00:00
|
|
|
--ThreadView_group_spacing-end: 8px; // same as padding
|
2022-05-12 07:04:54 +00:00
|
|
|
|
2021-08-17 10:10:02 +00:00
|
|
|
.mx_EventTile {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-09-24 10:44:11 +00:00
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
.mx_EventTile_roomName {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-11-11 14:48:11 +00:00
|
|
|
.mx_EventTile_line {
|
2022-05-23 10:11:55 +00:00
|
|
|
padding-top: var(--BaseCard_EventTile_line-padding-block);
|
|
|
|
padding-bottom: var(--BaseCard_EventTile_line-padding-block);
|
2021-11-11 14:48:11 +00:00
|
|
|
}
|
|
|
|
|
2022-05-23 10:11:55 +00:00
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
padding-inline-start: 0; // Cancel inherited padding value for event message and reactions row
|
2021-09-24 10:44:11 +00:00
|
|
|
}
|
2021-10-20 17:14:24 +00:00
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
2022-05-23 10:11:55 +00:00
|
|
|
padding-inline-end: 0;
|
|
|
|
}
|
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
// handling for hidden events (e.g reactions) in the thread view
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: absolute;
|
|
|
|
top: 1.5px; // Align with hidden event content
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
width: 14px; // avatar img size
|
|
|
|
height: 14px; // avatar img size
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ViewSourceEvent_toggle {
|
|
|
|
display: none; // hide the hidden event expand button, not enough space, view source can still be used
|
|
|
|
}
|
|
|
|
|
|
|
|
&.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;
|
|
|
|
margin-inline-start: calc(var(--ThreadView_group_spacing-start) + 14px + 6px); // 14px: avatar width, 6px: 20px - 14px
|
|
|
|
font-size: $line-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not([data-layout=bubble]) {
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
top: 2px; // Align with avatar
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
left: calc($MessageTimestamp_width + 14px - 4px); // 14px: avatar width, 4px: align with text
|
|
|
|
z-index: 9; // position above the hover styling
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-layout=bubble] {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
inset-inline-start: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-29 11:03:39 +00:00
|
|
|
&:not([data-layout=bubble]) {
|
|
|
|
padding-top: $spacing-16;
|
2022-05-13 18:04:27 +00:00
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
&:hover.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
|
|
|
|
padding-inline-start: 0; // Override
|
|
|
|
}
|
|
|
|
|
2022-05-13 18:04:27 +00:00
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-top: var(--BaseCard_EventTile_line-padding-block);
|
|
|
|
padding-bottom: var(--BaseCard_EventTile_line-padding-block);
|
2022-05-20 09:14:37 +00:00
|
|
|
|
|
|
|
.mx_EventTile_content {
|
|
|
|
&.mx_EditMessageComposer {
|
|
|
|
padding-inline-start: 0; // align start of first letter with that of the event body
|
|
|
|
}
|
|
|
|
}
|
2022-05-13 18:04:27 +00:00
|
|
|
}
|
2022-04-29 11:03:39 +00:00
|
|
|
}
|
2022-04-08 08:11:08 +00:00
|
|
|
|
2022-05-18 13:08:39 +00:00
|
|
|
&[data-layout=bubble] {
|
2022-06-10 08:21:22 +00:00
|
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
margin-inline-end: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
inset-inline: calc(-1 * var(--BaseCard_EventTile-spacing-inline));
|
|
|
|
z-index: auto; // enable background color on hover
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
position: relative; // display on hover
|
|
|
|
}
|
2022-01-12 09:02:30 +00:00
|
|
|
|
2022-05-18 13:08:39 +00:00
|
|
|
.mx_EventTile_line.mx_EventTile_mediaLine {
|
2022-05-25 04:31:39 +00:00
|
|
|
padding-block: 0;
|
|
|
|
padding-inline-start: 0;
|
|
|
|
max-width: var(--EventBubbleTile_line-max-width);
|
2022-01-13 22:46:11 +00:00
|
|
|
}
|
|
|
|
|
2022-05-18 13:08:39 +00:00
|
|
|
&[data-self=true] {
|
|
|
|
align-items: flex-end;
|
2022-01-12 09:02:30 +00:00
|
|
|
|
2022-05-18 13:08:39 +00:00
|
|
|
.mx_EventTile_line.mx_EventTile_mediaLine {
|
2022-06-16 17:47:37 +00:00
|
|
|
margin: 0 var(--EventTile_bubble_line-margin-inline-end) 0 0; // align with normal messages
|
2022-05-18 13:08:39 +00:00
|
|
|
}
|
2022-01-12 09:02:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
&[data-layout=group] {
|
|
|
|
width: 100%;
|
2022-01-12 09:02:30 +00:00
|
|
|
|
|
|
|
.mx_EventTile_content,
|
2022-01-17 15:04:37 +00:00
|
|
|
.mx_HiddenBody,
|
2022-01-12 09:02:30 +00:00
|
|
|
.mx_RedactedBody,
|
2022-06-09 12:31:38 +00:00
|
|
|
.mx_UnknownBody,
|
|
|
|
.mx_MPollBody,
|
2022-05-30 06:55:12 +00:00
|
|
|
.mx_MLocationBody,
|
2022-06-09 12:31:38 +00:00
|
|
|
.mx_ReplyChain_wrapper,
|
|
|
|
.mx_ReactionsRow {
|
2022-05-22 06:19:45 +00:00
|
|
|
margin-inline-start: var(--ThreadView_group_spacing-start);
|
|
|
|
margin-inline-end: var(--ThreadView_group_spacing-end);
|
2022-06-09 12:31:38 +00:00
|
|
|
|
|
|
|
.mx_EventTile_content,
|
|
|
|
.mx_HiddenBody,
|
|
|
|
.mx_RedactedBody,
|
|
|
|
.mx_MImageBody {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-05-22 06:19:45 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
.mx_ReplyChain_wrapper {
|
|
|
|
.mx_MLocationBody,
|
|
|
|
.mx_UnknownBody { // Error message inside ReplyTile
|
|
|
|
margin-inline: unset;
|
|
|
|
}
|
2022-05-22 06:19:45 +00:00
|
|
|
}
|
2022-05-21 20:19:56 +00:00
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
.mx_EventTile_mediaLine {
|
|
|
|
// such as MImageBody
|
|
|
|
> div,
|
|
|
|
> span {
|
|
|
|
margin-inline-start: var(--ThreadView_group_spacing-start);
|
|
|
|
margin-inline-end: var(--ThreadView_group_spacing-end);
|
|
|
|
}
|
2022-01-12 09:02:30 +00:00
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
// such as MAudioBody and MFileBody
|
|
|
|
> span {
|
|
|
|
display: block; // Apply the margin declarations to span element
|
|
|
|
}
|
|
|
|
}
|
2022-01-12 09:02:30 +00:00
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
top: 2px; // Align with mx_EventTile_content
|
2022-06-30 11:37:43 +00:00
|
|
|
position: absolute; // for IRC layout
|
2022-06-09 12:31:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_senderDetails {
|
2022-01-12 09:02:30 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2022-06-09 12:31:38 +00:00
|
|
|
gap: $spacing-16; // gap between the avatar and the sender ID
|
|
|
|
padding-inline-start: $spacing-8;
|
2022-01-12 09:02:30 +00:00
|
|
|
|
2022-06-09 12:31:38 +00:00
|
|
|
a {
|
2022-01-12 09:02:30 +00:00
|
|
|
flex: 1;
|
2022-06-09 12:31:38 +00:00
|
|
|
min-width: unset;
|
|
|
|
max-width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
margin-left: 8px;
|
|
|
|
flex: 1;
|
|
|
|
}
|
2022-01-12 09:02:30 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-29 10:58:34 +00:00
|
|
|
}
|
2021-11-02 13:18:51 +00:00
|
|
|
}
|
2022-06-09 12:31:38 +00:00
|
|
|
|
|
|
|
.mx_GenericEventListSummary {
|
|
|
|
&:not([data-layout=bubble]) > .mx_EventTile_line {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2021-08-17 10:10:02 +00:00
|
|
|
}
|
2022-06-15 06:44:39 +00:00
|
|
|
|
2022-06-18 13:43:23 +00:00
|
|
|
// Cascading - compact modern layout on the main timeline and the right panel
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
|
|
|
.mx_EventTile {
|
|
|
|
// Override :not([data-layout="bubble"])
|
|
|
|
&[data-layout=group] {
|
2022-06-29 07:32:48 +00:00
|
|
|
--MatrixChat_useCompactLayout_group-padding-top: $spacing-4;
|
|
|
|
|
|
|
|
padding-top: var(--MatrixChat_useCompactLayout_group-padding-top);
|
2022-06-18 13:43:23 +00:00
|
|
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
padding-top: 0; // same as the padding for non-compact .mx_EventTile.mx_EventTile_info
|
|
|
|
font-size: $font-13px;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: $spacing-4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
line-height: $font-20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_emote {
|
|
|
|
padding-top: $spacing-8; // add a bit more space for emotes so that avatars don't collide
|
|
|
|
|
|
|
|
&.mx_EventTile_continuation {
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line,
|
|
|
|
.mx_EventTile_reply {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
top: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
font-size: $font-13px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
// This aligns the avatar with the last line of the
|
|
|
|
// message. We want to move it one line up - 2rem
|
|
|
|
top: -2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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-29 07:32:48 +00:00
|
|
|
|
|
|
|
&[data-shape=ThreadsList][data-notification]::before {
|
|
|
|
inset-block-start: calc($notification-inset-block-start - var(--MatrixChat_useCompactLayout_group-padding-top));
|
|
|
|
}
|
2022-06-18 13:43:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-15 06:44:39 +00:00
|
|
|
// Media query for mobile UI
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_EventTile_content {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|