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;
|
2021-06-10 19:53:56 +03:00
|
|
|
$hover-select-border: 4px;
|
2020-07-14 00:56:20 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile:not([data-layout=bubble]) {
|
2018-04-12 02:23:35 +03:00
|
|
|
max-width: 100%;
|
|
|
|
clear: both;
|
|
|
|
padding-top: 18px;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-14px;
|
2018-04-12 02:23:35 +03:00
|
|
|
position: relative;
|
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_info {
|
2021-06-18 20:59:22 +03:00
|
|
|
padding-top: 1px;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 14px;
|
|
|
|
left: 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_info .mx_EventTile_avatar {
|
2021-06-18 20:59:22 +03:00
|
|
|
top: $font-6px;
|
|
|
|
left: $left-gutter;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_continuation {
|
2021-06-18 20:59:22 +03:00
|
|
|
padding-top: 0px !important;
|
2019-05-21 13:20:58 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
&.mx_EventTile_isEditing {
|
|
|
|
padding-top: 5px !important;
|
|
|
|
margin-top: -5px;
|
|
|
|
}
|
2019-05-21 13:20:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_isEditing {
|
2021-06-18 20:59:22 +03:00
|
|
|
background-color: $header-panel-bg-color;
|
2019-05-21 13:20:58 +03:00
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
.mx_SenderProfile {
|
2021-06-18 20:59:22 +03:00
|
|
|
color: $primary-fg-color;
|
|
|
|
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 17:31:09 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
.mx_SenderProfile .mx_Flair {
|
2021-06-18 20:59:22 +03: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_isEditing .mx_MessageTimestamp {
|
2021-06-18 20:59:22 +03:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
2019-03-05 16:49:07 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
.mx_MessageTimestamp {
|
2021-06-18 20:59:22 +03:00
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
left: 0px;
|
|
|
|
text-align: center;
|
|
|
|
user-select: none;
|
|
|
|
}
|
2019-03-05 16:49:07 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_continuation .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
position: relative;
|
|
|
|
padding-left: $left-gutter;
|
2019-03-05 16:49:07 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_reply {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2019-05-17 18:01:52 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_selected > div > a > .mx_MessageTimestamp {
|
2021-06-18 20:59:22 +03:00
|
|
|
left: calc(-$hover-select-border);
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03: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 11:36:35 +03:00
|
|
|
&.mx_EventTile_selected > .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
border-left: $accent-color 4px solid;
|
|
|
|
padding-left: calc($left-gutter - $hover-select-border);
|
|
|
|
background-color: $event-selected-color;
|
2020-03-20 12:29:59 +03:00
|
|
|
}
|
2020-04-27 19:50:50 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_highlight,
|
|
|
|
&.mx_EventTile_highlight .markdown-body {
|
2021-06-18 20:59:22 +03:00
|
|
|
color: $event-highlight-fg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_line {
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
}
|
2020-03-20 12:29:59 +03:00
|
|
|
}
|
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_selected.mx_EventTile_info .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
padding-left: calc($left-gutter + 18px - $hover-select-border);
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03: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 20:59:22 +03:00
|
|
|
background-color: $event-selected-color;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_searchHighlight {
|
|
|
|
background-color: $accent-color;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-07-10 18:55:03 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_searchHighlight a {
|
|
|
|
background-color: $accent-color;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_receiptSent,
|
|
|
|
.mx_EventTile_receiptSending {
|
|
|
|
// 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-fg-color;
|
|
|
|
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');
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&.mx_EventTile_contextual {
|
2021-06-18 20:59:22 +03:00
|
|
|
opacity: 0.4;
|
2019-11-07 19:39:50 +03:00
|
|
|
}
|
2019-11-08 19:10:51 +03:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
2021-06-18 20:59:22 +03: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-08 19:10:51 +03:00
|
|
|
}
|
2021-06-18 18:03:48 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_msgOption a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
/* De-zalgoing */
|
|
|
|
.mx_EventTile_body {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover.mx_EventTile_verified .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unverified .mx_EventTile_line,
|
|
|
|
&:hover.mx_EventTile_unknown .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
padding-left: calc($left-gutter - $hover-select-border);
|
|
|
|
}
|
2019-11-06 13:41:10 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover.mx_EventTile_verified .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
border-left: $e2e-verified-color $EventTile_e2e_state_indicator_width solid;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover.mx_EventTile_unverified .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
border-left: $e2e-unverified-color $EventTile_e2e_state_indicator_width solid;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover.mx_EventTile_unknown .mx_EventTile_line {
|
2021-06-18 20:59:22 +03:00
|
|
|
border-left: $e2e-unknown-color $EventTile_e2e_state_indicator_width solid;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-13 11:36:35 +03: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-06-18 20:59:22 +03:00
|
|
|
padding-left: calc($left-gutter + 18px - $hover-select-border);
|
|
|
|
}
|
2021-02-28 08:46:38 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
/* End to end encryption stuff */
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover .mx_EventTile_e2eIcon {
|
2021-06-18 20:59:22 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Explicit relationships so that it doesn't apply to nested EventTile components (e.g in Replies)
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover.mx_EventTile_verified .mx_EventTile_line > a > .mx_MessageTimestamp,
|
|
|
|
&:hover.mx_EventTile_unverified .mx_EventTile_line > a > .mx_MessageTimestamp,
|
|
|
|
&:hover.mx_EventTile_unknown .mx_EventTile_line > a > .mx_MessageTimestamp {
|
2021-06-18 20:59:22 +03:00
|
|
|
left: calc(-$hover-select-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Explicit relationships so that it doesn't apply to nested EventTile components (e.g in Replies)
|
2021-07-13 11:36:35 +03:00
|
|
|
&:hover.mx_EventTile_verified .mx_EventTile_line > .mx_EventTile_e2eIcon,
|
|
|
|
&:hover.mx_EventTile_unverified .mx_EventTile_line > .mx_EventTile_e2eIcon,
|
|
|
|
&:hover.mx_EventTile_unknown .mx_EventTile_line > .mx_EventTile_e2eIcon {
|
2021-06-18 20:59:22 +03:00
|
|
|
display: block;
|
|
|
|
left: 41px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MImageBody {
|
|
|
|
margin-right: 34px;
|
|
|
|
}
|
2021-07-07 16:13:58 +03:00
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
2021-02-28 08:46:38 +03:00
|
|
|
position: absolute;
|
2021-07-07 16:13:58 +03:00
|
|
|
top: 6px;
|
|
|
|
left: 44px;
|
|
|
|
bottom: 0;
|
2021-02-28 08:46:38 +03:00
|
|
|
right: 0;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-14 16:32:35 +03:00
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin: 0;
|
2021-07-28 06:48:51 +03:00
|
|
|
padding: 4px 64px;
|
2021-07-14 16:32:35 +03:00
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2021-07-27 17:24:05 +03:00
|
|
|
.mx_EventTile:not([data-layout=bubble]).mx_EventTile_info .mx_EventTile_line,
|
|
|
|
.mx_EventListSummary:not([data-layout=bubble]) > :not(.mx_EventTile) .mx_EventTile_avatar ~ .mx_EventTile_line {
|
|
|
|
padding-left: calc($left-gutter + 18px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventListSummary:not([data-layout=bubble]) .mx_EventTile_line {
|
|
|
|
padding-left: calc($left-gutter);
|
|
|
|
}
|
|
|
|
|
2021-07-21 12:41:52 +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 */
|
|
|
|
.mx_EventTile_content {
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: hidden;
|
|
|
|
margin-right: 34px;
|
|
|
|
}
|
|
|
|
|
2021-07-21 09:42:42 +03: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 16:32:35 +03:00
|
|
|
.mx_RoomView_timeline_rr_enabled {
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-14 16:32:35 +03:00
|
|
|
.mx_EventTile:not([data-layout=bubble]) {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
/* ideally should be 100px, but 95px gives us a max thumbnail size of 800x600, which is nice */
|
|
|
|
margin-right: 110px;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-07-14 16:32:35 +03:00
|
|
|
// on ELS we need the margin to allow interaction with the expand/collapse button which is normally in the RR gutter
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2021-07-29 12:58:32 +03:00
|
|
|
.mx_SenderProfile {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-06-18 20:59:22 +03: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 15:23:28 +03:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.mx_EventTile_line {
|
|
|
|
// To avoid bubble events being highlighted
|
|
|
|
background-color: inherit !important;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-02-23 21:16:52 +03:00
|
|
|
// This aligns the avatar with the last line of the
|
2021-02-23 21:14:36 +03:00
|
|
|
// message. We want to move it one line up - 2.2rem
|
|
|
|
top: -2.2rem;
|
2019-04-22 00:18:06 +03:00
|
|
|
user-select: none;
|
2019-06-06 15:59:07 +03:00
|
|
|
z-index: 1;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars .mx_BaseAvatar {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
2020-04-06 18:23:52 +03:00
|
|
|
height: $font-14px;
|
|
|
|
width: $font-14px;
|
2021-04-08 11:27:41 +03:00
|
|
|
|
2021-05-28 16:59:54 +03:00
|
|
|
will-change: left, top;
|
2021-04-08 11:27:41 +03:00
|
|
|
transition:
|
2021-04-08 13:05:45 +03:00
|
|
|
left var(--transition-short) ease-out,
|
|
|
|
top var(--transition-standard) ease-out;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatarRemainder {
|
|
|
|
color: $event-timestamp-color;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-11px;
|
2018-04-12 02:23:35 +03:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
/* HACK to override line-height which is already marked important elsewhere */
|
|
|
|
.mx_EventTile_bigEmoji.mx_EventTile_bigEmoji {
|
|
|
|
font-size: 48px !important;
|
|
|
|
line-height: 57px !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-05-17 13:36:36 +03:00
|
|
|
.mx_EventTile_content .mx_EventTile_edited {
|
|
|
|
user-select: none;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-12px;
|
2019-05-17 13:36:36 +03:00
|
|
|
color: $roomtopic-color;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 9px;
|
2019-05-22 21:41:27 +03:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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;
|
2019-02-14 19:00:47 +03:00
|
|
|
opacity: 0.2;
|
2019-12-04 08:41:22 +03:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
2019-02-01 18:43:12 +03:00
|
|
|
|
2020-07-14 02:52:03 +03: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 {
|
|
|
|
background-color: #ffffff;
|
2020-07-20 16:05:07 +03:00
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
2020-07-14 02:52:03 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-06-23 18:10:47 +03:00
|
|
|
mask-size: 80%;
|
2020-07-14 02:52:03 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-01 18:43:12 +03:00
|
|
|
.mx_EventTile_e2eIcon_undecryptable, .mx_EventTile_e2eIcon_unverified {
|
2020-07-14 02:52:03 +03:00
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
background-color: $notice-primary-color;
|
|
|
|
}
|
2019-12-04 08:41:22 +03:00
|
|
|
opacity: 1;
|
2019-02-01 18:43:12 +03:00
|
|
|
}
|
|
|
|
|
2020-01-20 20:14:31 +03:00
|
|
|
.mx_EventTile_e2eIcon_unknown {
|
2020-07-14 02:52:03 +03:00
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
background-color: $notice-primary-color;
|
|
|
|
}
|
2020-01-20 20:25:08 +03:00
|
|
|
opacity: 1;
|
2020-01-20 18:16:41 +03:00
|
|
|
}
|
|
|
|
|
2019-02-01 18:43:12 +03:00
|
|
|
.mx_EventTile_e2eIcon_unencrypted {
|
2020-07-14 02:52:03 +03:00
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
background-color: $notice-primary-color;
|
|
|
|
}
|
2019-12-04 08:41:22 +03:00
|
|
|
opacity: 1;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-06-19 04:57:33 +03:00
|
|
|
.mx_EventTile_e2eIcon_unauthenticated {
|
2020-07-14 02:52:03 +03:00
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
2020-07-14 15:30:05 +03:00
|
|
|
background-color: $composer-e2e-icon-color;
|
2020-07-14 02:52:03 +03:00
|
|
|
}
|
2020-06-19 04:57:33 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
|
|
|
/* Various markdown overrides */
|
|
|
|
|
2021-07-30 10:54:28 +03:00
|
|
|
.mx_EventTile_body {
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
2019-07-10 18:55:03 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_EventTile_content .markdown-body {
|
2019-07-09 20:15:10 +03:00
|
|
|
font-family: inherit !important;
|
|
|
|
white-space: normal !important;
|
|
|
|
line-height: inherit !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
color: inherit; // inherit the colour from the dark or light theme by default (but not for code blocks)
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-14px;
|
2019-02-16 06:28:26 +03:00
|
|
|
|
|
|
|
pre, code {
|
2019-07-09 20:15:10 +03:00
|
|
|
font-family: $monospace-font-family !important;
|
2021-07-07 09:42:16 +03:00
|
|
|
background-color: $header-panel-bg-color;
|
2019-02-16 06:28:26 +03:00
|
|
|
}
|
2019-07-10 18:55:03 +03:00
|
|
|
|
2021-07-12 17:59:16 +03:00
|
|
|
pre code > * {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2019-07-10 18:55:03 +03: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-01-21 12:53:18 +03:00
|
|
|
.mx_EventTile_lineNumbers {
|
|
|
|
float: left;
|
|
|
|
margin: 0 0.5em 0 -1.5em;
|
|
|
|
color: gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_lineNumber {
|
|
|
|
text-align: right;
|
|
|
|
display: block;
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
|
|
|
|
2021-01-19 18:35:32 +03:00
|
|
|
.mx_EventTile_collapsedCodeBlock {
|
|
|
|
max-height: 30vh;
|
2021-01-18 19:49:09 +03:00
|
|
|
}
|
|
|
|
|
2019-11-01 13:50:58 +03:00
|
|
|
.mx_EventTile:hover .mx_EventTile_body pre,
|
2019-11-04 19:47:20 +03:00
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_EventTile_body pre {
|
2019-07-10 18:55:03 +03:00
|
|
|
border: 1px solid #e5e5e5; // deliberate constant as we're behind an invert filter
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2018-06-27 13:31:55 +03:00
|
|
|
.mx_EventTile_pre_container {
|
|
|
|
// For correct positioning of _copyButton (See TextualBody)
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Inserted adjacent to <pre> blocks, (See TextualBody)
|
2021-01-20 17:01:23 +03:00
|
|
|
.mx_EventTile_button {
|
2018-04-12 02:23:35 +03:00
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
visibility: hidden;
|
|
|
|
cursor: pointer;
|
2021-02-13 17:29:38 +03:00
|
|
|
top: 8px;
|
|
|
|
right: 8px;
|
2018-04-12 02:23:35 +03:00
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
2020-07-27 17:13:02 +03:00
|
|
|
background-color: $message-action-bar-fg-color;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
2021-01-20 17:01:23 +03:00
|
|
|
.mx_EventTile_buttonBottom {
|
2021-02-13 17:29:38 +03:00
|
|
|
top: 33px;
|
2021-01-20 17:01:23 +03:00
|
|
|
}
|
|
|
|
.mx_EventTile_copyButton {
|
|
|
|
mask-image: url($copy-button-url);
|
|
|
|
}
|
2021-01-19 23:02:39 +03:00
|
|
|
.mx_EventTile_collapseButton {
|
2021-02-08 17:22:30 +03:00
|
|
|
mask-size: 75%;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
2021-01-19 23:02:39 +03:00
|
|
|
mask-image: url($collapse-button-url);
|
|
|
|
}
|
|
|
|
.mx_EventTile_expandButton {
|
2021-02-08 17:22:30 +03:00
|
|
|
mask-size: 75%;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
2021-01-19 23:02:39 +03:00
|
|
|
mask-image: url($expand-button-url);
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2021-01-19 23:02:39 +03:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:focus-within .mx_EventTile_copyButton,
|
2021-01-21 20:18:07 +03:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:hover .mx_EventTile_copyButton,
|
2021-01-19 23:02:39 +03:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:focus-within .mx_EventTile_collapseButton,
|
2021-01-21 20:18:07 +03:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:hover .mx_EventTile_collapseButton,
|
2021-01-19 23:02:39 +03: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 02:23:35 +03: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-09 20:15:10 +03:00
|
|
|
.mx_EventTile_content .markdown-body h6 {
|
|
|
|
font-family: inherit !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
.mx_EventTile_content .markdown-body h1,
|
2019-07-09 20:15:10 +03:00
|
|
|
.mx_EventTile_content .markdown-body h2 {
|
2018-04-12 02:23:35 +03:00
|
|
|
font-size: 1.5em;
|
2019-07-09 20:15:10 +03:00
|
|
|
border-bottom: none !important; // override GFM
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_content .markdown-body a {
|
2018-12-20 15:46:43 +03:00
|
|
|
color: $accent-color-alt;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2021-07-23 18:45:26 +03:00
|
|
|
.mx_EventTile_content .markdown-body blockquote {
|
|
|
|
border-left: 2px solid $blockquote-bar-color;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_EventTile_content .markdown-body .hljs {
|
2019-07-09 20:15:10 +03:00
|
|
|
display: inline !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-01-31 13:51:26 +03:00
|
|
|
/*
|
|
|
|
// actually, removing the Italic TTF provides
|
|
|
|
// better results seemingly
|
|
|
|
|
2019-01-16 15:53:46 +03: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 13:51:26 +03:00
|
|
|
*/
|
2019-01-16 15:53:46 +03:00
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
/* end of overrides */
|
|
|
|
|
2020-02-24 21:04:11 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_keyRequestInfo {
|
|
|
|
font-size: $font-12px;
|
|
|
|
}
|
2020-04-06 13:44:46 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_keyRequestInfo_text {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2020-02-24 21:04:11 +03:00
|
|
|
|
2021-06-18 20:59:22 +03:00
|
|
|
.mx_EventTile_keyRequestInfo_text a {
|
|
|
|
color: $primary-fg-color;
|
|
|
|
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 13:20:42 +03:00
|
|
|
}
|
2020-01-30 13:18:14 +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
|
|
|
|
2020-04-06 13:44:46 +03:00
|
|
|
// Remove some of the default tile padding so that the error is centered
|
|
|
|
margin-right: 0;
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-02-24 21:04:11 +03:00
|
|
|
.mx_EventTile_line span {
|
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
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,
|
|
|
|
[data-whatinput='keyboard'] .mx_EventTile:focus-within .mx_MessageActionBar,
|
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_MessageActionBar {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2020-05-27 20:33:55 +03: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 13:18:14 +03:00
|
|
|
}
|