2018-04-12 07:23:35 +08:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2021-06-19 01:59:22 +08:00
|
|
|
Copyright 2020-2021 The Matrix.org Foundation C.I.C.
|
2018-04-12 07:23:35 +08: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 05:56:20 +08:00
|
|
|
$left-gutter: 64px;
|
|
|
|
|
2022-01-10 20:53:23 +08:00
|
|
|
.mx_EventTile {
|
2022-03-02 22:24:43 +08:00
|
|
|
flex-shrink: 0;
|
|
|
|
|
2022-01-10 20:53:23 +08:00
|
|
|
.mx_EventTile_receiptSent,
|
|
|
|
.mx_EventTile_receiptSending {
|
2022-01-19 11:08:11 +08:00
|
|
|
// Give it some dimensions so the tooltip can position properly
|
|
|
|
display: inline-block;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2022-01-10 20:53:23 +08:00
|
|
|
// We don't use `position: relative` on the element because then it won't line
|
|
|
|
// up with the other read receipts
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $tertiary-content;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 14px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.mx_EventTile_receiptSent::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/circle-sent.svg');
|
|
|
|
}
|
|
|
|
.mx_EventTile_receiptSending::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/circle-sending.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile:not([data-layout=bubble]) {
|
2018-04-12 07:23:35 +08:00
|
|
|
max-width: 100%;
|
|
|
|
clear: both;
|
|
|
|
padding-top: 18px;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2018-04-12 07:23:35 +08:00
|
|
|
position: relative;
|
|
|
|
|
2022-02-18 23:56:05 +08:00
|
|
|
&[data-shape=ThreadsList][data-notification]::before {
|
2021-12-13 22:05:42 +08:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
border-radius: 50%;
|
|
|
|
right: -16px;
|
2022-01-20 16:47:37 +08:00
|
|
|
top: 6px;
|
|
|
|
left: auto;
|
2021-12-13 22:05:42 +08:00
|
|
|
}
|
|
|
|
|
2022-02-18 23:56:05 +08:00
|
|
|
&[data-shape=ThreadsList][data-notification=total]::before {
|
2021-12-13 22:05:42 +08:00
|
|
|
background-color: $roomtile-default-badge-bg-color;
|
|
|
|
}
|
|
|
|
|
2022-02-18 23:56:05 +08:00
|
|
|
&[data-shape=ThreadsList][data-notification=highlight]::before {
|
2021-12-13 22:05:42 +08:00
|
|
|
background-color: $alert;
|
|
|
|
}
|
|
|
|
|
2022-01-13 01:16:00 +08:00
|
|
|
.mx_ThreadInfo,
|
|
|
|
.mx_ThreadSummaryIcon {
|
2021-10-21 01:14:24 +08:00
|
|
|
margin-right: 110px;
|
|
|
|
margin-left: 64px;
|
|
|
|
}
|
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_info {
|
2021-06-19 01:59:22 +08:00
|
|
|
padding-top: 1px;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 14px;
|
|
|
|
left: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_info .mx_EventTile_avatar {
|
2021-06-19 01:59:22 +08:00
|
|
|
top: $font-6px;
|
|
|
|
left: $left-gutter;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_continuation {
|
2021-06-19 01:59:22 +08:00
|
|
|
padding-top: 0px !important;
|
2019-05-21 18:20:58 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
&.mx_EventTile_isEditing {
|
|
|
|
padding-top: 5px !important;
|
|
|
|
margin-top: -5px;
|
|
|
|
}
|
2019-05-21 18:20:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_isEditing {
|
2021-06-19 01:59:22 +08:00
|
|
|
background-color: $header-panel-bg-color;
|
2019-05-21 18:20:58 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
.mx_SenderProfile {
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-06-19 01:59:22 +08:00
|
|
|
font-size: $font-14px;
|
|
|
|
display: inline-block; /* anti-zalgo, with overflow hidden */
|
|
|
|
overflow: hidden;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
padding-top: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
/* the next three lines, along with overflow hidden, truncate long display names */
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: calc(100% - $left-gutter);
|
|
|
|
}
|
2019-05-17 22:31:09 +08:00
|
|
|
|
2022-03-22 09:08:43 +08:00
|
|
|
.mx_DisambiguatedProfile .mx_Flair {
|
2021-06-19 01:59:22 +08:00
|
|
|
opacity: 0.7;
|
|
|
|
margin-left: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
overflow: hidden;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: -2px;
|
|
|
|
margin-right: 2px;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-22 09:08:43 +08:00
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
color: $primary-content;
|
|
|
|
font-size: $font-14px;
|
|
|
|
display: inline-block; /* anti-zalgo, with overflow hidden */
|
|
|
|
overflow: hidden;
|
|
|
|
cursor: pointer;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
padding-top: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
/* the next three lines, along with overflow hidden, truncate long display names */
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: calc(100% - $left-gutter);
|
|
|
|
}
|
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_isEditing .mx_MessageTimestamp {
|
2021-06-19 01:59:22 +08:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
2019-03-05 21:49:07 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
.mx_MessageTimestamp {
|
2021-06-19 01:59:22 +08:00
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
left: 0px;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
|
|
|
}
|
2019-03-05 21:49:07 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_continuation .mx_EventTile_line {
|
2021-06-19 01:59:22 +08:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
position: relative;
|
|
|
|
padding-left: $left-gutter;
|
2019-03-05 21:49:07 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_reply {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2019-05-17 23:01:52 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
/* this is used for the tile for the event which is selected via the URL.
|
|
|
|
* TODO: ultimately we probably want some transition on here.
|
|
|
|
*/
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_selected > .mx_EventTile_line {
|
2021-11-29 18:58:34 +08:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $accent;
|
2021-06-19 01:59:22 +08:00
|
|
|
background-color: $event-selected-color;
|
2020-03-20 17:29:59 +08:00
|
|
|
}
|
2020-04-28 00:50:50 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_highlight,
|
|
|
|
&.mx_EventTile_highlight .markdown-body {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $alert;
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_line {
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
}
|
2020-03-20 17:29:59 +08:00
|
|
|
}
|
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_selected.mx_EventTile_info .mx_EventTile_line {
|
2021-11-29 18:58:34 +08:00
|
|
|
padding-left: calc($left-gutter + 18px);
|
2021-06-19 01:59:22 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08: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-19 01:59:22 +08:00
|
|
|
background-color: $event-selected-color;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_searchHighlight {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2021-06-19 01:59:22 +08:00
|
|
|
color: $accent-fg-color;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-07-10 23:55:03 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_searchHighlight a {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2021-06-19 01:59:22 +08:00
|
|
|
color: $accent-fg-color;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&.mx_EventTile_contextual {
|
2021-06-19 01:59:22 +08:00
|
|
|
opacity: 0.4;
|
2019-11-08 00:39:50 +08:00
|
|
|
}
|
2019-11-09 00:10:51 +08:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
2021-06-19 01:59:22 +08: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;
|
|
|
|
|
|
|
|
margin-right: 10px;
|
2019-11-09 00:10:51 +08:00
|
|
|
}
|
2021-06-18 23:03:48 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_msgOption a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
/* De-zalgoing */
|
|
|
|
.mx_EventTile_body {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-10-20 23:33:23 +08:00
|
|
|
&.mx_EventTile_selected .mx_EventTile_line,
|
|
|
|
&:hover .mx_EventTile_line {
|
|
|
|
border-top-left-radius: 4px;
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&:hover.mx_EventTile_verified .mx_EventTile_line {
|
2021-11-29 18:58:34 +08:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $e2e-verified-color;
|
2021-06-19 01:59:22 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&:hover.mx_EventTile_unverified .mx_EventTile_line {
|
2021-11-29 18:58:34 +08:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $e2e-unverified-color;
|
2021-06-19 01:59:22 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08:00
|
|
|
&:hover.mx_EventTile_unknown .mx_EventTile_line {
|
2021-11-29 18:58:34 +08:00
|
|
|
box-shadow: inset calc(50px + $selected-message-border-width) 0 0 -50px $e2e-unknown-color;
|
2021-06-19 01:59:22 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-13 16:36:35 +08: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 18:58:34 +08:00
|
|
|
padding-left: calc($left-gutter + 18px + $selected-message-border-width);
|
2021-06-19 01:59:22 +08:00
|
|
|
}
|
2021-02-28 13:46:38 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
/* End to end encryption stuff */
|
2021-07-13 16:36:35 +08:00
|
|
|
&:hover .mx_EventTile_e2eIcon {
|
2021-06-19 01:59:22 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MImageBody {
|
|
|
|
margin-right: 34px;
|
|
|
|
}
|
2021-07-07 21:13:58 +08:00
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
2021-02-28 13:46:38 +08:00
|
|
|
position: absolute;
|
2021-07-07 21:13:58 +08:00
|
|
|
top: 6px;
|
|
|
|
left: 44px;
|
|
|
|
bottom: 0;
|
2021-02-28 13:46:38 +08:00
|
|
|
right: 0;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-07-14 21:32:35 +08:00
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin: 0;
|
2021-07-28 11:48:51 +08:00
|
|
|
padding: 4px 64px;
|
2021-07-14 21:32:35 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2022-02-28 18:23:01 +08:00
|
|
|
.mx_GenericEventListSummary:not([data-layout=bubble]) .mx_EventTile_line {
|
|
|
|
padding-left: $left-gutter;
|
2022-02-22 18:25:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile:not([data-layout=bubble]).mx_EventTile_info .mx_EventTile_line,
|
2022-02-28 18:23:01 +08: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 22:24:05 +08:00
|
|
|
}
|
|
|
|
|
2021-07-21 17:41:52 +08: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 */
|
|
|
|
.mx_EventTile_content {
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: hidden;
|
|
|
|
margin-right: 34px;
|
|
|
|
}
|
|
|
|
|
2021-07-21 14:42:42 +08:00
|
|
|
/* Spoiler stuff */
|
|
|
|
.mx_EventTile_spoiler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_spoiler_reason {
|
|
|
|
color: $event-timestamp-color;
|
|
|
|
font-size: $font-11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_spoiler_content {
|
|
|
|
filter: blur(5px) saturate(0.1) sepia(1);
|
|
|
|
transition-duration: 0.5s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_spoiler.visible > .mx_EventTile_spoiler_content {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
2021-07-14 21:32:35 +08:00
|
|
|
.mx_RoomView_timeline_rr_enabled {
|
2021-08-04 17:21:52 +08:00
|
|
|
.mx_EventTile[data-layout=group] {
|
2021-07-14 21:32:35 +08:00
|
|
|
.mx_EventTile_line {
|
|
|
|
/* ideally should be 100px, but 95px gives us a max thumbnail size of 800x600, which is nice */
|
|
|
|
margin-right: 110px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// on ELS we need the margin to allow interaction with the expand/collapse button which is normally in the RR gutter
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2021-07-29 17:58:32 +08:00
|
|
|
.mx_SenderProfile {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_bubbleContainer {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 100px;
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
margin-right: 0;
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
// override default padding of mx_EventTile_line so that we can be centered
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
grid-column: 2;
|
|
|
|
}
|
2021-07-20 20:23:28 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
// To avoid bubble events being highlighted
|
|
|
|
background-color: inherit !important;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-02-24 02:16:52 +08:00
|
|
|
// This aligns the avatar with the last line of the
|
2021-02-24 02:14:36 +08:00
|
|
|
// message. We want to move it one line up - 2.2rem
|
|
|
|
top: -2.2rem;
|
2019-04-22 05:18:06 +08:00
|
|
|
user-select: none;
|
2019-06-06 20:59:07 +08:00
|
|
|
z-index: 1;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars .mx_BaseAvatar {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
2020-04-06 23:23:52 +08:00
|
|
|
height: $font-14px;
|
|
|
|
width: $font-14px;
|
2021-04-08 16:27:41 +08:00
|
|
|
|
2021-05-28 21:59:54 +08:00
|
|
|
will-change: left, top;
|
2021-04-08 16:27:41 +08:00
|
|
|
transition:
|
2021-04-08 18:05:45 +08:00
|
|
|
left var(--transition-short) ease-out,
|
|
|
|
top var(--transition-standard) ease-out;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatarRemainder {
|
|
|
|
color: $event-timestamp-color;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-11px;
|
2018-04-12 07:23:35 +08:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2022-01-31 17:53:04 +08:00
|
|
|
.mx_EventTile_bigEmoji {
|
|
|
|
font-size: 48px;
|
2022-01-21 18:10:57 +08:00
|
|
|
line-height: 57px;
|
2022-01-31 17:53:04 +08:00
|
|
|
|
|
|
|
.mx_Emoji {
|
|
|
|
font-size: inherit !important;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2019-05-17 18:36:36 +08:00
|
|
|
.mx_EventTile_content .mx_EventTile_edited {
|
|
|
|
user-select: none;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-12px;
|
2019-05-17 18:36:36 +08:00
|
|
|
color: $roomtopic-color;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 9px;
|
2019-05-23 02:41:27 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2022-01-17 23:04:37 +08:00
|
|
|
.mx_EventTile_content .mx_EventTile_pendingModeration {
|
|
|
|
user-select: none;
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $roomtopic-color;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 9px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_EventTile_e2eIcon {
|
2021-07-07 21:13:58 +08:00
|
|
|
position: relative;
|
2020-07-14 06:56:25 +08:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2019-12-04 13:41:22 +08:00
|
|
|
display: block;
|
2019-02-15 00:00:47 +08:00
|
|
|
opacity: 0.2;
|
2019-12-04 13:41:22 +08:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
2019-02-01 23:43:12 +08:00
|
|
|
|
2020-07-14 07:52:03 +08:00
|
|
|
&::before, &::after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-06-23 23:10:47 +08:00
|
|
|
mask-size: 80%;
|
2020-07-14 07:52:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-02 01:28:23 +08:00
|
|
|
.mx_EventTile_e2eIcon_warning {
|
2020-07-14 07:52:03 +08:00
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $alert;
|
2020-07-14 07:52:03 +08:00
|
|
|
}
|
2019-12-04 13:41:22 +08:00
|
|
|
opacity: 1;
|
2019-02-01 23:43:12 +08:00
|
|
|
}
|
|
|
|
|
2021-11-02 01:28:23 +08:00
|
|
|
.mx_EventTile_e2eIcon_normal {
|
2020-07-14 07:52:03 +08:00
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
2021-11-16 18:10:44 +08:00
|
|
|
background-color: $header-panel-text-primary-color;
|
2020-07-14 07:52:03 +08:00
|
|
|
}
|
2020-06-19 09:57:33 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
|
|
|
/* Various markdown overrides */
|
|
|
|
|
2021-07-30 15:54:28 +08:00
|
|
|
.mx_EventTile_body {
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
2022-01-10 23:32:06 +08: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 23:55:03 +08:00
|
|
|
}
|
|
|
|
|
2021-11-11 19:00:18 +08:00
|
|
|
.mx_EventTile_clamp {
|
|
|
|
.mx_EventTile_body {
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: -webkit-box;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_EventTile_content .markdown-body {
|
2019-07-10 01:15:10 +08:00
|
|
|
font-family: inherit !important;
|
|
|
|
white-space: normal !important;
|
|
|
|
line-height: inherit !important;
|
2018-04-12 07:23:35 +08:00
|
|
|
color: inherit; // inherit the colour from the dark or light theme by default (but not for code blocks)
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2019-02-16 11:28:26 +08:00
|
|
|
|
|
|
|
pre, code {
|
2019-07-10 01:15:10 +08:00
|
|
|
font-family: $monospace-font-family !important;
|
2021-10-23 11:32:45 +08:00
|
|
|
background-color: $codeblock-background-color;
|
2019-02-16 11:28:26 +08:00
|
|
|
}
|
2019-07-10 23:55:03 +08:00
|
|
|
|
2022-01-11 18:50:29 +08:00
|
|
|
// this selector wrongly applies to code blocks too but we will unset it in the next one
|
|
|
|
code {
|
|
|
|
white-space: pre-wrap; // don't collapse spaces in inline code blocks
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
white-space: pre; // we want code blocks to be scrollable and not wrap
|
|
|
|
|
|
|
|
> * {
|
|
|
|
display: inline;
|
|
|
|
}
|
2021-07-12 22:59:16 +08:00
|
|
|
}
|
|
|
|
|
2019-07-10 23:55:03 +08:00
|
|
|
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;
|
2021-08-12 00:33:16 +08:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2019-07-10 23:55:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-21 17:53:18 +08:00
|
|
|
.mx_EventTile_lineNumbers {
|
|
|
|
float: left;
|
|
|
|
margin: 0 0.5em 0 -1.5em;
|
|
|
|
color: gray;
|
2021-10-19 02:32:20 +08:00
|
|
|
& span {
|
|
|
|
text-align: right;
|
|
|
|
display: block;
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
2021-01-21 17:53:18 +08:00
|
|
|
}
|
|
|
|
|
2021-01-19 23:35:32 +08:00
|
|
|
.mx_EventTile_collapsedCodeBlock {
|
|
|
|
max-height: 30vh;
|
2021-01-19 00:49:09 +08:00
|
|
|
}
|
|
|
|
|
2019-11-01 18:50:58 +08:00
|
|
|
.mx_EventTile:hover .mx_EventTile_body pre,
|
2019-11-05 00:47:20 +08:00
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_EventTile_body pre {
|
2021-08-26 21:12:26 +08:00
|
|
|
border: 1px solid $tertiary-content;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2018-06-27 18:31:55 +08:00
|
|
|
.mx_EventTile_pre_container {
|
|
|
|
// For correct positioning of _copyButton (See TextualBody)
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Inserted adjacent to <pre> blocks, (See TextualBody)
|
2021-01-20 22:01:23 +08:00
|
|
|
.mx_EventTile_button {
|
2018-04-12 07:23:35 +08:00
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
visibility: hidden;
|
|
|
|
cursor: pointer;
|
2021-02-13 22:29:38 +08:00
|
|
|
top: 8px;
|
|
|
|
right: 8px;
|
2018-04-12 07:23:35 +08:00
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
2020-07-27 22:13:02 +08:00
|
|
|
background-color: $message-action-bar-fg-color;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
2021-01-20 22:01:23 +08:00
|
|
|
.mx_EventTile_buttonBottom {
|
2021-02-13 22:29:38 +08:00
|
|
|
top: 33px;
|
2021-01-20 22:01:23 +08:00
|
|
|
}
|
|
|
|
.mx_EventTile_copyButton {
|
|
|
|
mask-image: url($copy-button-url);
|
|
|
|
}
|
2021-01-20 04:02:39 +08:00
|
|
|
.mx_EventTile_collapseButton {
|
2021-02-08 22:22:30 +08:00
|
|
|
mask-size: 75%;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
2021-11-16 22:43:18 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/minimise-collapse.svg");
|
2021-01-20 04:02:39 +08:00
|
|
|
}
|
|
|
|
.mx_EventTile_expandButton {
|
2021-02-08 22:22:30 +08:00
|
|
|
mask-size: 75%;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
2021-11-16 22:43:18 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
|
2021-01-20 04:02:39 +08:00
|
|
|
}
|
2018-04-12 07:23:35 +08:00
|
|
|
|
2021-01-20 04:02:39 +08:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:focus-within .mx_EventTile_copyButton,
|
2021-01-22 01:18:07 +08:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:hover .mx_EventTile_copyButton,
|
2021-01-20 04:02:39 +08:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:focus-within .mx_EventTile_collapseButton,
|
2021-01-22 01:18:07 +08:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:hover .mx_EventTile_collapseButton,
|
2021-01-20 04:02:39 +08:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:focus-within .mx_EventTile_expandButton,
|
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:hover .mx_EventTile_expandButton {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
.mx_EventTile_content .markdown-body h1,
|
|
|
|
.mx_EventTile_content .markdown-body h2,
|
|
|
|
.mx_EventTile_content .markdown-body h3,
|
|
|
|
.mx_EventTile_content .markdown-body h4,
|
|
|
|
.mx_EventTile_content .markdown-body h5,
|
2019-07-10 01:15:10 +08:00
|
|
|
.mx_EventTile_content .markdown-body h6 {
|
|
|
|
font-family: inherit !important;
|
2018-04-12 07:23:35 +08:00
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
.mx_EventTile_content .markdown-body h1,
|
2019-07-10 01:15:10 +08:00
|
|
|
.mx_EventTile_content .markdown-body h2 {
|
2018-04-12 07:23:35 +08:00
|
|
|
font-size: 1.5em;
|
2019-07-10 01:15:10 +08:00
|
|
|
border-bottom: none !important; // override GFM
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_content .markdown-body a {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent-alt;
|
2018-04-12 07:23:35 +08:00
|
|
|
}
|
|
|
|
|
2021-07-23 23:45:26 +08:00
|
|
|
.mx_EventTile_content .markdown-body blockquote {
|
|
|
|
border-left: 2px solid $blockquote-bar-color;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
|
2019-01-31 18:51:26 +08:00
|
|
|
/*
|
|
|
|
// actually, removing the Italic TTF provides
|
|
|
|
// better results seemingly
|
|
|
|
|
2019-01-16 20:53:46 +08:00
|
|
|
// compensate for Nunito italics being terrible
|
|
|
|
// https://github.com/google/fonts/issues/1726
|
|
|
|
.mx_EventTile_content .markdown-body em {
|
|
|
|
transform: skewX(-14deg);
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2019-01-31 18:51:26 +08:00
|
|
|
*/
|
2019-01-16 20:53:46 +08:00
|
|
|
|
2018-04-12 07:23:35 +08:00
|
|
|
/* end of overrides */
|
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_keyRequestInfo {
|
|
|
|
font-size: $font-12px;
|
|
|
|
}
|
2020-04-06 18:44:46 +08:00
|
|
|
|
2021-06-19 01:59:22 +08:00
|
|
|
.mx_EventTile_keyRequestInfo_text {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2020-02-25 02:04:11 +08:00
|
|
|
|
2022-01-07 17:40:53 +08:00
|
|
|
.mx_EventTile_keyRequestInfo_text .mx_AccessibleButton {
|
|
|
|
@mixin ButtonResetDefault;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-06-19 01:59:22 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_keyRequestInfo_tooltip_contents p {
|
|
|
|
text-align: auto;
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_keyRequestInfo_tooltip_contents p:first-child {
|
|
|
|
margin-top: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_keyRequestInfo_tooltip_contents p:last-child {
|
|
|
|
margin-bottom: 0px;
|
2020-02-25 18:20:42 +08:00
|
|
|
}
|
2020-01-30 18:18:14 +08:00
|
|
|
|
2020-02-25 02:04:11 +08:00
|
|
|
.mx_EventTile_tileError {
|
|
|
|
color: red;
|
2020-03-26 21:47:32 +08:00
|
|
|
text-align: center;
|
2020-02-25 02:04:11 +08:00
|
|
|
|
2020-04-06 18:44:46 +08:00
|
|
|
// Remove some of the default tile padding so that the error is centered
|
|
|
|
margin-right: 0;
|
2021-08-24 16:09:28 +08:00
|
|
|
|
2020-04-06 18:44:46 +08:00
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-02-25 02:04:11 +08:00
|
|
|
.mx_EventTile_line span {
|
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
2020-02-25 18:20:42 +08:00
|
|
|
}
|
2020-01-30 18:18:14 +08:00
|
|
|
|
2021-07-07 18:04:28 +08: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;
|
|
|
|
}
|
|
|
|
|
2020-05-28 01:33:55 +08:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
.mx_EventTile_content {
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2020-01-30 18:18:14 +08:00
|
|
|
}
|
2021-08-17 18:10:02 +08:00
|
|
|
|
2022-01-13 01:16:00 +08:00
|
|
|
.mx_ThreadSummaryIcon::before,
|
|
|
|
.mx_ThreadInfo::before {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
mask-image: url('$(res)/img/element-icons/thread-summary.svg');
|
|
|
|
mask-position: center;
|
|
|
|
height: 18px;
|
|
|
|
min-width: 18px;
|
|
|
|
background-color: $secondary-content;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummaryIcon {
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $secondary-content;
|
|
|
|
&::before {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-15 21:29:17 +08:00
|
|
|
.mx_ThreadInfo {
|
2021-11-11 19:00:18 +08:00
|
|
|
min-width: 267px;
|
2022-03-12 03:24:18 +08:00
|
|
|
max-width: min(calc(100% - $left-gutter - 64px), 600px); // leave space on both left & right gutters
|
2022-02-23 22:03:46 +08:00
|
|
|
width: fit-content;
|
2021-11-11 19:00:18 +08:00
|
|
|
height: 40px;
|
2021-10-15 21:29:17 +08:00
|
|
|
position: relative;
|
|
|
|
background-color: $system;
|
|
|
|
padding-left: 12px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding-right: 16px;
|
2021-11-11 19:00:18 +08:00
|
|
|
margin-top: 8px;
|
2021-11-05 01:10:22 +08:00
|
|
|
font-size: $font-12px;
|
2021-10-15 21:29:17 +08:00
|
|
|
color: $secondary-content;
|
|
|
|
box-sizing: border-box;
|
|
|
|
justify-content: flex-start;
|
2021-10-19 16:31:28 +08:00
|
|
|
clear: both;
|
2021-11-11 19:00:18 +08:00
|
|
|
overflow: hidden;
|
2022-03-12 03:24:18 +08:00
|
|
|
border: 1px solid $system; // always render a border so the hover effect doesn't require a re-layout
|
2021-10-15 21:29:17 +08:00
|
|
|
|
2022-03-12 03:24:18 +08:00
|
|
|
.mx_ThreadInfo_chevron {
|
2021-11-11 19:00:18 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 60px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: linear-gradient(270deg, $system 52.6%, transparent 100%);
|
|
|
|
|
|
|
|
opacity: 0;
|
2022-03-12 03:24:18 +08:00
|
|
|
transform: translateX(60px);
|
2021-11-11 19:00:18 +08:00
|
|
|
transition: all .1s ease-in-out;
|
2022-03-12 03:24:18 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 12px;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
mask-image: url('$(res)/img/compound/chevron-right-12px.svg');
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
2021-11-11 19:00:18 +08:00
|
|
|
}
|
|
|
|
|
2022-03-12 03:24:18 +08:00
|
|
|
&:hover, &:focus {
|
|
|
|
cursor: pointer;
|
|
|
|
border-color: $quinary-content;
|
|
|
|
|
|
|
|
.mx_ThreadInfo_chevron {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
align-self: center; // v-align the threads icon
|
2021-11-11 19:00:18 +08:00
|
|
|
}
|
2021-11-04 02:05:01 +08:00
|
|
|
}
|
2021-10-15 21:29:17 +08:00
|
|
|
|
2022-02-23 22:03:46 +08:00
|
|
|
.mx_MessagePanel_narrow .mx_ThreadInfo {
|
|
|
|
min-width: initial;
|
|
|
|
max-width: initial;
|
|
|
|
width: initial;
|
|
|
|
}
|
|
|
|
|
2022-03-12 03:24:18 +08:00
|
|
|
$threadInfoLineHeight: calc(2 * $font-12px);
|
|
|
|
|
|
|
|
.mx_ThreadInfo_sender {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
line-height: $threadInfoLineHeight;
|
|
|
|
}
|
|
|
|
|
2021-11-04 02:05:01 +08:00
|
|
|
.mx_ThreadInfo_content {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2022-03-12 03:24:18 +08:00
|
|
|
margin-left: 4px;
|
2021-11-05 01:10:22 +08:00
|
|
|
font-size: $font-12px;
|
2022-03-12 03:24:18 +08:00
|
|
|
line-height: $threadInfoLineHeight;
|
2021-11-05 01:10:22 +08:00
|
|
|
color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadInfo_avatar {
|
|
|
|
float: left;
|
2022-03-12 03:24:18 +08:00
|
|
|
margin-right: 8px;
|
2021-11-04 02:05:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadInfo_threads-amount {
|
2022-03-12 03:24:18 +08:00
|
|
|
font-weight: $font-semi-bold;
|
2021-11-04 02:05:01 +08:00
|
|
|
position: relative;
|
2022-02-07 23:13:34 +08:00
|
|
|
padding: 0 12px 0 8px;
|
2021-11-04 02:05:01 +08:00
|
|
|
white-space: nowrap;
|
2022-03-12 03:24:18 +08:00
|
|
|
line-height: $threadInfoLineHeight;
|
2021-11-04 02:05:01 +08:00
|
|
|
}
|
|
|
|
|
2022-02-18 23:56:05 +08:00
|
|
|
.mx_EventTile[data-shape=ThreadsList] {
|
2021-11-11 19:00:18 +08:00
|
|
|
--topOffset: 20px;
|
2021-11-04 02:05:01 +08:00
|
|
|
--leftOffset: 46px;
|
|
|
|
|
2021-11-11 19:00:18 +08:00
|
|
|
margin: var(--topOffset) 16px var(--topOffset) 0;
|
2021-11-04 02:05:01 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
|
2022-01-19 18:41:39 +08:00
|
|
|
display: flex;
|
|
|
|
flex-flow: wrap;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-11-04 02:05:01 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: $system;
|
2021-10-15 21:29:17 +08:00
|
|
|
}
|
|
|
|
|
2021-11-04 02:05:01 +08:00
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: var(--leftOffset);
|
|
|
|
right: 0;
|
|
|
|
height: 1px;
|
|
|
|
bottom: calc(-1 * var(--topOffset));
|
|
|
|
background-color: $quinary-content;
|
2021-10-15 21:29:17 +08:00
|
|
|
}
|
2021-11-04 02:05:01 +08:00
|
|
|
|
2021-12-21 04:43:45 +08:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
/* enough to cover all sibling elements */
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
2021-11-04 02:05:01 +08:00
|
|
|
&:last-child {
|
|
|
|
&::after {
|
|
|
|
content: unset;
|
|
|
|
}
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: -4px;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile {
|
|
|
|
margin-left: var(--leftOffset) !important;
|
2022-01-19 18:41:39 +08:00
|
|
|
flex: 1;
|
|
|
|
margin-right: 12px;
|
|
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
// not a fan of the magic number here, but I just tweaked
|
|
|
|
// the hardcoded value of the current implementation
|
|
|
|
max-width: calc(100% - 96px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile_displayName,
|
|
|
|
.mx_SenderProfile_mxid {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile_displayName {
|
|
|
|
flex: none;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SenderProfile_mxid {
|
|
|
|
flex: 1;
|
2021-11-04 02:05:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
2022-01-19 18:41:39 +08:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
2021-11-04 02:05:01 +08:00
|
|
|
padding-left: var(--leftOffset) !important;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2022-01-19 18:41:39 +08:00
|
|
|
|
2021-11-04 02:05:01 +08:00
|
|
|
.mx_MessageTimestamp {
|
2022-01-19 18:41:39 +08:00
|
|
|
position: initial !important;
|
|
|
|
max-width: 80px;
|
|
|
|
width: auto !important;
|
2021-10-15 21:29:17 +08:00
|
|
|
}
|
2021-08-23 21:44:44 +08:00
|
|
|
}
|
|
|
|
|
2021-08-17 18:10:02 +08:00
|
|
|
.mx_ThreadView {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.mx_ThreadView_List {
|
|
|
|
flex: 1;
|
|
|
|
overflow: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_roomName {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-11-02 21:18:51 +08:00
|
|
|
padding-top: 0;
|
2021-09-24 18:44:11 +08:00
|
|
|
|
2021-11-11 22:48:11 +08:00
|
|
|
.mx_EventTile_line {
|
2021-11-29 18:58:34 +08:00
|
|
|
padding-left: 0;
|
2021-11-11 22:48:11 +08:00
|
|
|
order: 10 !important;
|
|
|
|
}
|
|
|
|
|
2021-09-24 18:44:11 +08:00
|
|
|
.mx_MessageTimestamp {
|
2022-01-12 17:02:30 +08:00
|
|
|
font-size: $font-10px;
|
2021-09-24 18:44:11 +08:00
|
|
|
}
|
2021-10-21 01:14:24 +08:00
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
order: 999;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2021-08-17 18:10:02 +08:00
|
|
|
}
|
2021-09-09 20:27:25 +08:00
|
|
|
|
2022-01-12 17:02:30 +08:00
|
|
|
.mx_EventTile[data-layout=bubble] {
|
2021-11-02 21:18:51 +08:00
|
|
|
margin-left: 36px;
|
2022-01-12 17:02:30 +08:00
|
|
|
margin-right: 36px;
|
|
|
|
|
2022-01-14 06:46:11 +08:00
|
|
|
.mx_EventTile_line.mx_EventTile_mediaLine {
|
|
|
|
padding: 0 !important;
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
|
|
.mx_MFileBody {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-12 17:02:30 +08:00
|
|
|
&[data-self=true] {
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
|
|
.mx_EventTile_line.mx_EventTile_mediaLine {
|
|
|
|
margin: 0 -13px 0 0; // align with normal messages
|
|
|
|
}
|
|
|
|
}
|
2022-01-19 09:48:07 +08:00
|
|
|
|
|
|
|
&[data-self=false] {
|
|
|
|
.mx_MessageActionBar {
|
|
|
|
right: -60px; // smaller overlap, otherwise it'll overflow on the right
|
|
|
|
}
|
|
|
|
}
|
2022-01-12 17:02:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile[data-layout=group] {
|
|
|
|
width: 100%;
|
2021-11-29 18:58:34 +08:00
|
|
|
|
|
|
|
.mx_EventTile_content,
|
2022-01-17 23:04:37 +08:00
|
|
|
.mx_HiddenBody,
|
2021-11-29 18:58:34 +08:00
|
|
|
.mx_RedactedBody,
|
2022-03-10 21:27:25 +08:00
|
|
|
.mx_MPollBody,
|
2022-01-12 17:02:30 +08:00
|
|
|
.mx_ReplyChain_wrapper {
|
|
|
|
margin-left: 36px;
|
2022-02-07 23:13:34 +08:00
|
|
|
margin-right: 8px;
|
2022-01-12 17:02:30 +08:00
|
|
|
|
|
|
|
.mx_EventTile_content,
|
2022-01-17 23:04:37 +08:00
|
|
|
.mx_HiddenBody,
|
2022-01-12 17:02:30 +08:00
|
|
|
.mx_RedactedBody,
|
|
|
|
.mx_MImageBody {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-14 06:46:11 +08:00
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin-left: 36px;
|
2022-02-07 23:13:34 +08:00
|
|
|
margin-right: 8px;
|
2022-01-14 06:46:11 +08:00
|
|
|
}
|
|
|
|
|
2022-01-12 17:02:30 +08:00
|
|
|
.mx_MessageTimestamp {
|
2022-02-07 23:13:34 +08:00
|
|
|
top: 2px !important;
|
|
|
|
width: auto;
|
2022-01-12 17:02:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_senderDetails {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: calc(6px + $selected-message-border-width);
|
|
|
|
|
|
|
|
a {
|
|
|
|
flex: 1;
|
|
|
|
min-width: none;
|
|
|
|
max-width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_SenderProfile {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
2021-11-29 18:58:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_mediaLine {
|
|
|
|
padding-left: 36px !important;
|
|
|
|
padding-right: 50px;
|
|
|
|
|
|
|
|
.mx_MImageBody {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-11-02 21:18:51 +08:00
|
|
|
}
|
|
|
|
|
2021-09-09 20:27:25 +08:00
|
|
|
.mx_MessageComposer_sendMessage {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2021-08-17 18:10:02 +08:00
|
|
|
}
|