2018-04-11 23:23:35 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2020-01-02 16:52:25 +00:00
|
|
|
Copyright 2020 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_EventTile {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2019-11-07 16:39:50 +00:00
|
|
|
.mx_EventTile_bubble {
|
|
|
|
background-color: $dark-panel-bg-color;
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
margin: 10px auto;
|
|
|
|
max-width: 75%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile.mx_EventTile_info {
|
|
|
|
padding-top: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: absolute;
|
|
|
|
top: 14px;
|
|
|
|
left: 8px;
|
|
|
|
cursor: pointer;
|
2019-04-21 21:18:06 +00:00
|
|
|
user-select: none;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_info .mx_EventTile_avatar {
|
2020-04-06 15:48:35 +00:00
|
|
|
top: $font-8px;
|
2018-04-11 23:23:35 +00:00
|
|
|
left: 65px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_continuation {
|
2019-05-21 11:50:27 +00:00
|
|
|
padding-top: 0px !important;
|
2019-05-21 10:20:58 +00:00
|
|
|
|
|
|
|
&.mx_EventTile_isEditing {
|
2019-05-21 11:50:27 +00:00
|
|
|
padding-top: 5px !important;
|
2019-05-21 10:20:58 +00:00
|
|
|
margin-top: -5px;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 14:31:09 +00:00
|
|
|
.mx_EventTile_isEditing {
|
|
|
|
background-color: $header-panel-bg-color;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile .mx_SenderProfile {
|
|
|
|
color: $primary-fg-color;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2019-02-15 15:55:16 +00:00
|
|
|
display: inline-block; /* anti-zalgo, with overflow hidden */
|
2019-06-07 02:41:10 +00:00
|
|
|
overflow: hidden;
|
2018-04-11 23:23:35 +00:00
|
|
|
cursor: pointer;
|
|
|
|
padding-left: 65px; /* left gutter */
|
|
|
|
padding-bottom: 0px;
|
|
|
|
padding-top: 0px;
|
|
|
|
margin: 0px;
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-17px;
|
2019-06-07 02:41:10 +00:00
|
|
|
/* the next three lines, along with overflow hidden, truncate long display names */
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: calc(100% - 65px);
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile .mx_SenderProfile .mx_Flair {
|
|
|
|
opacity: 0.7;
|
|
|
|
margin-left: 5px;
|
2019-03-05 13:49:07 +00:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
height: 16px;
|
|
|
|
overflow: hidden;
|
2019-04-21 21:18:06 +00:00
|
|
|
user-select: none;
|
2019-03-05 13:49:07 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: -2px;
|
|
|
|
margin-right: 2px;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-05-17 15:01:52 +00:00
|
|
|
.mx_EventTile_isEditing .mx_MessageTimestamp {
|
|
|
|
visibility: hidden !important;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile .mx_MessageTimestamp {
|
|
|
|
display: block;
|
|
|
|
visibility: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
left: 0px;
|
|
|
|
width: 46px; /* 8 + 30 (avatar) + 8 */
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
2019-04-21 21:18:06 +00:00
|
|
|
user-select: none;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2020-04-27 16:50:50 +00:00
|
|
|
.mx_EventTile_continuation .mx_EventTile_line {
|
2020-04-09 12:36:53 +00:00
|
|
|
clear: both;
|
2020-04-27 16:50:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
2018-04-11 23:23:35 +00:00
|
|
|
position: relative;
|
|
|
|
padding-left: 65px; /* left gutter */
|
2020-03-31 15:02:23 +00:00
|
|
|
padding-top: 3px;
|
|
|
|
padding-bottom: 3px;
|
2018-04-11 23:23:35 +00:00
|
|
|
border-radius: 4px;
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-22px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:29:58 +00:00
|
|
|
.mx_RoomView_timeline_rr_enabled,
|
|
|
|
// on ELS we need the margin to allow interaction with the expand/collapse button which is normally in the RR gutter
|
|
|
|
.mx_EventListSummary {
|
2020-03-20 09:29:59 +00:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
/* ideally should be 100px, but 95px gives us a max thumbnail size of 800x600, which is nice */
|
|
|
|
margin-right: 110px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-07 19:11:31 +00:00
|
|
|
.mx_EventTile_bubbleContainer {
|
2019-11-07 16:39:50 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 100px;
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
margin-right: 0px;
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2019-11-08 16:10:51 +00:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
grid-column: 2;
|
|
|
|
}
|
2019-11-07 16:39:50 +00:00
|
|
|
}
|
|
|
|
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile_reply {
|
2018-04-11 23:23:35 +00:00
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_info .mx_EventTile_line {
|
|
|
|
padding-left: 83px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* HACK to override line-height which is already marked important elsewhere */
|
|
|
|
.mx_EventTile_bigEmoji.mx_EventTile_bigEmoji {
|
2019-07-09 17:15:10 +00:00
|
|
|
font-size: 48px !important;
|
|
|
|
line-height: 57px !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_MessagePanel_alwaysShowTimestamps .mx_MessageTimestamp {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_selected > div > a > .mx_MessageTimestamp {
|
|
|
|
left: 3px;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Explicit relationships so that it doesn't apply to nested EventTile components (e.g in Replies)
|
|
|
|
.mx_EventTile_last > div > a > .mx_MessageTimestamp,
|
|
|
|
.mx_EventTile:hover > div > a > .mx_MessageTimestamp,
|
2019-11-05 12:01:30 +00:00
|
|
|
.mx_EventTile.mx_EventTile_actionBarFocused > div > a > .mx_MessageTimestamp,
|
|
|
|
.mx_EventTile.focus-visible:focus-within > div > a > .mx_MessageTimestamp {
|
2019-07-10 15:55:03 +00:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile:hover .mx_MessageActionBar,
|
2019-11-05 12:01:30 +00:00
|
|
|
.mx_EventTile.mx_EventTile_actionBarFocused .mx_MessageActionBar,
|
2019-12-07 13:07:52 +00:00
|
|
|
[data-whatinput='keyboard'] .mx_EventTile:focus-within .mx_MessageActionBar,
|
2019-11-05 12:01:30 +00:00
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_MessageActionBar {
|
2019-07-10 15:55:03 +00:00
|
|
|
visibility: visible;
|
2018-04-11 23:23:35 +00: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.
|
|
|
|
*/
|
|
|
|
.mx_EventTile_selected > .mx_EventTile_line {
|
|
|
|
border-left: $accent-color 5px solid;
|
|
|
|
padding-left: 60px;
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_EventTile_highlight,
|
|
|
|
.mx_EventTile_highlight .markdown-body {
|
|
|
|
color: $event-highlight-fg-color;
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
|
|
|
background-color: $event-highlight-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-06 10:41:10 +00:00
|
|
|
.mx_EventTile_selected.mx_EventTile_info .mx_EventTile_line {
|
|
|
|
padding-left: 78px;
|
|
|
|
}
|
|
|
|
|
2018-04-20 08:37:25 +00:00
|
|
|
.mx_EventTile:hover .mx_EventTile_line,
|
2019-11-05 12:01:30 +00:00
|
|
|
.mx_EventTile.mx_EventTile_actionBarFocused .mx_EventTile_line,
|
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_EventTile_line {
|
2018-04-11 23:23:35 +00:00
|
|
|
background-color: $event-selected-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_searchHighlight {
|
|
|
|
background-color: $accent-color;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding-left: 2px;
|
|
|
|
padding-right: 2px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_searchHighlight a {
|
|
|
|
background-color: $accent-color;
|
|
|
|
color: $accent-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_encrypting {
|
2019-07-09 17:15:10 +00:00
|
|
|
color: $event-encrypting-color !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_sending {
|
|
|
|
color: $event-sending-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_sending .mx_UserPill,
|
2019-05-19 16:11:41 +00:00
|
|
|
.mx_EventTile_sending .mx_RoomPill {
|
2018-04-11 23:23:35 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_notSent {
|
|
|
|
color: $event-notsent-color;
|
|
|
|
}
|
|
|
|
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile_redacted .mx_EventTile_line .mx_UnknownBody,
|
|
|
|
.mx_EventTile_redacted .mx_EventTile_reply .mx_UnknownBody {
|
2019-06-27 15:19:01 +00:00
|
|
|
--lozenge-color: $event-redacted-fg-color;
|
|
|
|
--lozenge-border-color: $event-redacted-border-color;
|
2018-04-11 23:23:35 +00:00
|
|
|
display: block;
|
|
|
|
height: 22px;
|
|
|
|
width: 250px;
|
|
|
|
border-radius: 11px;
|
2019-07-09 17:15:10 +00:00
|
|
|
background:
|
2019-07-10 15:55:03 +00:00
|
|
|
repeating-linear-gradient(
|
|
|
|
-45deg,
|
|
|
|
var(--lozenge-color),
|
|
|
|
var(--lozenge-color) 3px,
|
|
|
|
transparent 3px,
|
|
|
|
transparent 6px
|
|
|
|
);
|
2019-06-27 15:19:01 +00:00
|
|
|
box-shadow: 0px 0px 3px var(--lozenge-border-color) inset;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_EventTile_sending.mx_EventTile_redacted .mx_UnknownBody {
|
|
|
|
opacity: 0.4;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
div.mx_EventTile_notSent.mx_EventTile_redacted .mx_UnknownBody {
|
|
|
|
--lozenge-color: $event-notsent-color;
|
|
|
|
--lozenge-border-color: $event-notsent-color;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_contextual {
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
position: relative;
|
|
|
|
width: 90px;
|
|
|
|
|
|
|
|
/* Hack to stop the height of this pushing the messages apart.
|
|
|
|
Replaces margin-top: -6px. This interacts better with a read
|
|
|
|
marker being in between. Content overflows. */
|
|
|
|
height: 1px;
|
|
|
|
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_msgOption a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
top: 29px;
|
2019-04-21 21:18:06 +00:00
|
|
|
user-select: none;
|
2019-06-06 12:59:07 +00:00
|
|
|
z-index: 1;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_continuation .mx_EventTile_readAvatars,
|
|
|
|
.mx_EventTile_info .mx_EventTile_readAvatars,
|
|
|
|
.mx_EventTile_emote .mx_EventTile_readAvatars {
|
|
|
|
top: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars .mx_BaseAvatar {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
2020-04-06 15:23:52 +00:00
|
|
|
height: $font-14px;
|
|
|
|
width: $font-14px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatarRemainder {
|
|
|
|
color: $event-timestamp-color;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-11px;
|
2018-04-11 23:23:35 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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 {
|
|
|
|
display: block;
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: hidden;
|
|
|
|
margin-right: 34px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* De-zalgoing */
|
|
|
|
.mx_EventTile_body {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2019-05-22 18:41:27 +00:00
|
|
|
/* Spoiler stuff */
|
|
|
|
.mx_EventTile_spoiler {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_spoiler_reason {
|
|
|
|
color: $event-timestamp-color;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-11px;
|
2019-05-22 18:41:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_spoiler_content {
|
2019-06-11 19:08:45 +00:00
|
|
|
filter: blur(5px) saturate(0.1) sepia(1);
|
|
|
|
transition-duration: 0.5s;
|
2019-05-22 18:41:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_spoiler.visible > .mx_EventTile_spoiler_content {
|
2019-06-11 19:08:45 +00:00
|
|
|
filter: none;
|
2019-05-22 18:41:27 +00:00
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
position: absolute;
|
2019-12-04 05:41:22 +00:00
|
|
|
top: 6px;
|
2018-04-11 23:23:35 +00:00
|
|
|
left: 46px;
|
2019-02-01 15:43:12 +00:00
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
2019-12-04 05:41:22 +00:00
|
|
|
display: block;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon_undecryptable, .mx_EventTile_e2eIcon_unverified {
|
2019-12-04 05:41:22 +00:00
|
|
|
background-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
opacity: 1;
|
2019-02-01 15:43:12 +00:00
|
|
|
}
|
|
|
|
|
2020-01-20 17:14:31 +00:00
|
|
|
.mx_EventTile_e2eIcon_unknown {
|
2020-01-20 17:25:08 +00:00
|
|
|
background-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
opacity: 1;
|
2020-01-20 15:16:41 +00:00
|
|
|
}
|
|
|
|
|
2019-02-01 15:43:12 +00:00
|
|
|
.mx_EventTile_e2eIcon_unencrypted {
|
2019-12-04 05:41:22 +00:00
|
|
|
background-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
opacity: 1;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-04-30 16:22:16 +00:00
|
|
|
.mx_EventTile_e2eIcon_hidden {
|
2018-04-23 02:30:37 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* always override hidden attribute for blocked and warning */
|
2019-01-11 01:37:28 +00:00
|
|
|
.mx_EventTile_e2eIcon_hidden[src*="img/e2e-blocked.svg"],
|
|
|
|
.mx_EventTile_e2eIcon_hidden[src*="img/e2e-warning.svg"] {
|
2018-04-23 02:30:37 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile_keyRequestInfo {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-12px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_keyRequestInfo_text {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_12hr .mx_EventTile_e2eIcon {
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line,
|
2020-01-20 15:16:41 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line,
|
2020-01-20 17:14:31 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line {
|
2018-04-11 23:23:35 +00:00
|
|
|
padding-left: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line {
|
|
|
|
border-left: $e2e-verified-color 5px solid;
|
|
|
|
}
|
2019-07-10 15:55:03 +00:00
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line {
|
|
|
|
border-left: $e2e-unverified-color 5px solid;
|
|
|
|
}
|
|
|
|
|
2020-01-20 17:14:31 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line {
|
|
|
|
border-left: $e2e-unknown-color 5px solid;
|
2020-01-20 15:16:41 +00:00
|
|
|
}
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_verified.mx_EventTile_info .mx_EventTile_line,
|
2020-01-20 15:16:41 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unverified.mx_EventTile_info .mx_EventTile_line,
|
2020-01-20 17:14:31 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unknown.mx_EventTile_info .mx_EventTile_line {
|
2019-07-10 15:55:03 +00:00
|
|
|
padding-left: 78px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* End to end encryption stuff */
|
|
|
|
.mx_EventTile:hover .mx_EventTile_e2eIcon {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2018-04-27 10:13:09 +00:00
|
|
|
// Explicit relationships so that it doesn't apply to nested EventTile components (e.g in Replies)
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line > a > .mx_MessageTimestamp,
|
2020-01-20 15:16:41 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line > a > .mx_MessageTimestamp,
|
2020-01-20 17:14:31 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line > a > .mx_MessageTimestamp {
|
2018-04-11 23:23:35 +00:00
|
|
|
left: 3px;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
2018-04-27 10:13:09 +00:00
|
|
|
// Explicit relationships so that it doesn't apply to nested EventTile components (e.g in Replies)
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line > .mx_EventTile_e2eIcon,
|
2020-01-20 15:16:41 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line > .mx_EventTile_e2eIcon,
|
2020-01-20 17:14:31 +00:00
|
|
|
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line > .mx_EventTile_e2eIcon {
|
2018-04-11 23:23:35 +00:00
|
|
|
display: block;
|
|
|
|
left: 41px;
|
|
|
|
}
|
|
|
|
|
2019-05-17 10:36:36 +00:00
|
|
|
.mx_EventTile_content .mx_EventTile_edited {
|
|
|
|
user-select: none;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-12px;
|
2019-05-17 10:36:36 +00:00
|
|
|
color: $roomtopic-color;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 9px;
|
2019-06-26 10:15:13 +00:00
|
|
|
cursor: pointer;
|
2019-05-17 10:36:36 +00:00
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
/* Various markdown overrides */
|
|
|
|
|
2019-07-10 15:55:03 +00:00
|
|
|
.mx_EventTile_body pre {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile_content .markdown-body {
|
2019-07-09 17:15:10 +00:00
|
|
|
font-family: inherit !important;
|
|
|
|
white-space: normal !important;
|
|
|
|
line-height: inherit !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
color: inherit; // inherit the colour from the dark or light theme by default (but not for code blocks)
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2019-02-16 03:28:26 +00:00
|
|
|
|
|
|
|
pre, code {
|
2019-07-09 17:15:10 +00:00
|
|
|
font-family: $monospace-font-family !important;
|
2019-02-16 18:28:35 +00:00
|
|
|
// deliberate constants as we're behind an invert filter
|
2019-02-16 03:28:26 +00:00
|
|
|
color: #333;
|
|
|
|
}
|
2019-07-10 15:55:03 +00: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;
|
|
|
|
max-height: 30vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
// deliberate constants as we're behind an invert filter
|
|
|
|
background-color: #f8f8f8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-01 10:50:58 +00:00
|
|
|
.mx_EventTile:hover .mx_EventTile_body pre,
|
2019-11-04 16:47:20 +00:00
|
|
|
.mx_EventTile.focus-visible:focus-within .mx_EventTile_body pre {
|
2019-07-10 15:55:03 +00:00
|
|
|
border: 1px solid #e5e5e5; // deliberate constant as we're behind an invert filter
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-06-27 10:31:55 +00:00
|
|
|
.mx_EventTile_pre_container {
|
|
|
|
// For correct positioning of _copyButton (See TextualBody)
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Inserted adjacent to <pre> blocks, (See TextualBody)
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_EventTile_copyButton {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
visibility: hidden;
|
|
|
|
cursor: pointer;
|
|
|
|
top: 6px;
|
2018-06-25 15:31:43 +00:00
|
|
|
right: 6px;
|
2018-04-11 23:23:35 +00:00
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
|
|
|
background-image: url($copy-button-url);
|
|
|
|
}
|
|
|
|
|
2019-11-01 10:50:58 +00:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:focus-within .mx_EventTile_copyButton,
|
2019-07-09 17:15:10 +00:00
|
|
|
.mx_EventTile_body .mx_EventTile_pre_container:hover .mx_EventTile_copyButton {
|
2018-04-11 23:23:35 +00:00
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 17:15:10 +00:00
|
|
|
.mx_EventTile_content .markdown-body h6 {
|
|
|
|
font-family: inherit !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Make h1 and h2 the same size as h3. */
|
|
|
|
.mx_EventTile_content .markdown-body h1,
|
2019-07-09 17:15:10 +00:00
|
|
|
.mx_EventTile_content .markdown-body h2 {
|
2018-04-11 23:23:35 +00:00
|
|
|
font-size: 1.5em;
|
2019-07-09 17:15:10 +00:00
|
|
|
border-bottom: none !important; // override GFM
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_content .markdown-body a {
|
2018-12-20 12:46:43 +00:00
|
|
|
color: $accent-color-alt;
|
2019-01-05 00:14:24 +00:00
|
|
|
text-decoration: underline;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_content .markdown-body .hljs {
|
2019-07-09 17:15:10 +00:00
|
|
|
display: inline !important;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-31 10:51:26 +00:00
|
|
|
/*
|
|
|
|
// actually, removing the Italic TTF provides
|
|
|
|
// better results seemingly
|
|
|
|
|
2019-01-16 12:53:46 +00: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 10:51:26 +00:00
|
|
|
*/
|
2019-01-16 12:53:46 +00:00
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
/* end of overrides */
|
|
|
|
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
|
|
|
.mx_EventTile {
|
|
|
|
padding-top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_info {
|
|
|
|
// same as the padding for non-compact .mx_EventTile.mx_EventTile_info
|
|
|
|
padding-top: 0px;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-13px;
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
2020-03-31 14:26:23 +00:00
|
|
|
line-height: $font-20px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile .mx_SenderProfile {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-13px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_emote {
|
|
|
|
// add a bit more space for emotes so that avatars don't collide
|
|
|
|
padding-top: 8px;
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 2px;
|
|
|
|
}
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
2018-04-11 23:23:35 +00:00
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_emote.mx_EventTile_continuation {
|
|
|
|
padding-top: 0;
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
2018-04-11 23:23:35 +00:00
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-20 08:23:27 +00:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
2018-04-11 23:23:35 +00:00
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_e2eIcon {
|
2019-02-12 18:14:46 +00:00
|
|
|
top: 3px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_readAvatars {
|
|
|
|
top: 27px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_continuation .mx_EventTile_readAvatars,
|
|
|
|
.mx_EventTile_emote .mx_EventTile_readAvatars {
|
|
|
|
top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_info .mx_EventTile_readAvatars {
|
|
|
|
top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomView_MessageList h2 {
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_content .markdown-body {
|
2019-07-09 17:15:10 +00:00
|
|
|
p, ul, ol, dl, blockquote, pre, table {
|
|
|
|
margin-bottom: 4px; // 1/4 of the non-compact margin-bottom
|
|
|
|
}
|
2018-04-11 23:23:35 +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;
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-02-24 18:04:11 +00:00
|
|
|
.mx_EventTile_line span {
|
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
2020-02-25 10:20:42 +00:00
|
|
|
}
|