2020-04-29 22:07:41 +08:00
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
$icon-width: 14px;
|
|
|
|
$right-padding: 5px;
|
2020-05-09 05:21:26 +08:00
|
|
|
$irc-line-height: $font-18px;
|
2020-04-29 22:07:41 +08:00
|
|
|
|
|
|
|
.mx_IRCLayout {
|
2020-05-13 09:16:43 +08:00
|
|
|
--name-width: 70px;
|
2020-04-29 22:07:41 +08:00
|
|
|
|
2020-05-09 05:21:26 +08:00
|
|
|
line-height: $irc-line-height !important;
|
2020-04-29 22:07:41 +08:00
|
|
|
|
|
|
|
.mx_EventTile {
|
2020-05-09 05:21:26 +08:00
|
|
|
// timestamps are links which shouldn't be underlined
|
|
|
|
> a {
|
|
|
|
text-decoration: none;
|
2022-05-07 11:07:51 +08:00
|
|
|
min-width: $MessageTimestamp_width;
|
2020-05-09 05:21:26 +08:00
|
|
|
}
|
|
|
|
|
2020-04-29 22:07:41 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
2020-04-29 22:29:25 +08:00
|
|
|
padding-top: 0;
|
2020-04-29 22:07:41 +08:00
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-right: $right-padding;
|
|
|
|
}
|
|
|
|
|
2022-04-28 01:10:27 +08:00
|
|
|
.mx_ThreadSummary {
|
2021-11-03 16:26:41 +08:00
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-29 22:07:41 +08:00
|
|
|
> .mx_EventTile_msgOption {
|
2020-05-27 01:15:06 +08:00
|
|
|
order: 5;
|
2020-04-29 22:07:41 +08:00
|
|
|
flex-shrink: 0;
|
2020-06-10 22:21:36 +08:00
|
|
|
|
2022-04-22 23:09:44 +08:00
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
top: -0.3rem; // ($irc-line-height - avatar height) / 2
|
2020-06-10 22:21:36 +08:00
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
|
2020-05-09 05:21:26 +08:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-04-29 22:07:41 +08:00
|
|
|
order: 3;
|
|
|
|
flex-grow: 1;
|
2020-05-27 00:39:39 +08:00
|
|
|
flex-shrink: 1;
|
|
|
|
min-width: 0;
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_EventTile_avatar {
|
|
|
|
order: 1;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
flex-shrink: 0;
|
2020-05-09 05:21:26 +08:00
|
|
|
height: $irc-line-height;
|
2020-04-29 22:07:41 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-05-05 17:54:44 +08:00
|
|
|
// Need to use important to override the js provided height and width values.
|
2020-06-11 17:36:52 +08:00
|
|
|
> .mx_BaseAvatar, > .mx_BaseAvatar > * {
|
2020-05-05 17:54:44 +08:00
|
|
|
height: $font-14px !important;
|
|
|
|
width: $font-14px !important;
|
|
|
|
font-size: $font-10px !important;
|
2020-05-13 21:04:46 +08:00
|
|
|
line-height: $font-15px !important;
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
font-size: $font-10px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-05-27 01:15:06 +08:00
|
|
|
> .mx_EventTile_e2eIcon {
|
2020-07-16 10:52:35 +08:00
|
|
|
position: absolute;
|
2020-04-29 22:07:41 +08:00
|
|
|
right: unset;
|
|
|
|
left: unset;
|
2020-06-11 18:44:11 +08:00
|
|
|
top: 0;
|
|
|
|
|
2020-04-29 22:07:41 +08:00
|
|
|
padding: 0;
|
2020-06-11 18:44:11 +08:00
|
|
|
|
2020-05-27 01:15:06 +08:00
|
|
|
flex-shrink: 0;
|
|
|
|
flex-grow: 0;
|
2020-06-11 18:44:11 +08:00
|
|
|
|
|
|
|
height: $font-18px;
|
|
|
|
|
|
|
|
background-position: center;
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
|
2020-05-07 20:55:23 +08:00
|
|
|
.mx_EventTile_line {
|
|
|
|
.mx_EventTile_e2eIcon,
|
|
|
|
.mx_TextualEvent,
|
2021-05-20 22:39:25 +08:00
|
|
|
.mx_MTextBody {
|
2020-05-07 20:55:23 +08:00
|
|
|
display: inline-block;
|
2022-01-27 17:45:52 +08:00
|
|
|
// add a 1px padding top and bottom because our larger emoji font otherwise gets cropped by anti-zalgo
|
|
|
|
padding: 1px 0;
|
2020-05-07 20:55:23 +08:00
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
2020-05-05 17:54:44 +08:00
|
|
|
|
|
|
|
.mx_EventTile_reply {
|
2020-05-27 01:15:06 +08:00
|
|
|
order: 4;
|
2020-05-05 17:54:44 +08:00
|
|
|
}
|
2020-05-07 20:55:23 +08:00
|
|
|
|
|
|
|
.mx_EditMessageComposer_buttons {
|
|
|
|
position: relative;
|
|
|
|
}
|
2021-07-23 20:52:51 +08:00
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
|
2020-05-09 05:21:26 +08:00
|
|
|
.mx_EventTile_emote {
|
|
|
|
> .mx_EventTile_avatar {
|
2020-05-13 09:16:43 +08:00
|
|
|
margin-left: calc(var(--name-width) + $icon-width + $right-padding);
|
2020-05-09 05:21:26 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-09 18:51:12 +08:00
|
|
|
.mx_GenericEventListSummary {
|
2020-04-29 22:07:41 +08:00
|
|
|
> .mx_EventTile_line {
|
2022-05-07 11:07:51 +08:00
|
|
|
padding-left: calc(var(--name-width) + $icon-width + $MessageTimestamp_width + 3 * $right-padding); // 15 px of padding
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
2020-05-09 05:21:26 +08:00
|
|
|
|
2022-02-09 18:51:12 +08:00
|
|
|
.mx_GenericEventListSummary_avatars {
|
2020-05-09 05:21:26 +08:00
|
|
|
padding: 0;
|
2020-05-18 23:37:10 +08:00
|
|
|
margin: 0 9px 0 0;
|
2020-05-09 05:21:26 +08:00
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_info {
|
|
|
|
.mx_EventTile_avatar {
|
2020-05-13 09:16:43 +08:00
|
|
|
left: calc(var(--name-width) + 10px + $icon-width);
|
2020-04-29 22:07:41 +08:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
2020-05-13 09:16:43 +08:00
|
|
|
left: calc(var(--name-width) + 10px + $icon-width);
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TextualEvent {
|
2020-05-09 05:21:26 +08:00
|
|
|
line-height: $irc-line-height;
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-05 04:53:48 +08:00
|
|
|
// Suppress highlight thing from the normal Layout.
|
|
|
|
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line,
|
|
|
|
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line,
|
|
|
|
.mx_EventTile:hover.mx_EventTile_unknown .mx_EventTile_line {
|
|
|
|
padding-left: 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
2020-05-07 20:55:23 +08:00
|
|
|
|
2022-03-23 06:14:55 +08:00
|
|
|
.mx_DisambiguatedProfile {
|
2021-06-16 23:21:29 +08:00
|
|
|
width: var(--name-width);
|
2021-05-20 22:25:20 +08:00
|
|
|
display: flex;
|
2021-06-16 23:21:29 +08:00
|
|
|
order: 2;
|
|
|
|
flex-shrink: 0;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
2020-05-09 05:21:26 +08:00
|
|
|
|
2022-03-23 06:14:55 +08:00
|
|
|
> .mx_DisambiguatedProfile_displayName {
|
2021-06-16 23:21:29 +08:00
|
|
|
width: 100%;
|
|
|
|
text-align: end;
|
2021-05-20 22:25:20 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-05-09 05:21:26 +08:00
|
|
|
}
|
2020-05-07 20:55:23 +08:00
|
|
|
|
2022-03-23 06:14:55 +08:00
|
|
|
> .mx_DisambiguatedProfile_mxid {
|
2021-06-16 23:21:29 +08:00
|
|
|
visibility: collapse;
|
2022-02-01 17:24:05 +08:00
|
|
|
// Override the inherited margin.
|
|
|
|
margin-left: 0;
|
|
|
|
padding: 0 5px;
|
2021-06-16 23:21:29 +08:00
|
|
|
}
|
2020-05-13 21:04:46 +08:00
|
|
|
}
|
|
|
|
|
2022-03-23 06:14:55 +08:00
|
|
|
.mx_DisambiguatedProfile:hover {
|
2020-05-07 20:55:23 +08:00
|
|
|
overflow: visible;
|
|
|
|
z-index: 10;
|
2021-06-16 23:21:29 +08:00
|
|
|
|
2022-03-23 06:14:55 +08:00
|
|
|
> .mx_DisambiguatedProfile_displayName {
|
2021-06-16 23:21:29 +08:00
|
|
|
overflow: visible;
|
2022-02-01 17:24:05 +08:00
|
|
|
display: inline;
|
|
|
|
background-color: $event-selected-color;
|
|
|
|
border-radius: 8px 0 0 8px;
|
|
|
|
padding-right: 8px;
|
2021-06-16 23:21:29 +08:00
|
|
|
}
|
|
|
|
|
2022-03-23 06:14:55 +08:00
|
|
|
> .mx_DisambiguatedProfile_mxid {
|
2021-06-16 23:21:29 +08:00
|
|
|
visibility: visible;
|
2022-02-01 17:24:05 +08:00
|
|
|
opacity: 1;
|
|
|
|
background-color: $event-selected-color;
|
2021-06-16 23:21:29 +08:00
|
|
|
}
|
2020-05-07 20:55:23 +08:00
|
|
|
}
|
2020-05-09 05:21:26 +08:00
|
|
|
|
2021-10-16 00:42:44 +08:00
|
|
|
.mx_ReplyChain {
|
2020-05-09 05:21:26 +08:00
|
|
|
margin: 0;
|
2022-03-23 06:14:55 +08:00
|
|
|
.mx_DisambiguatedProfile {
|
2021-07-16 13:53:20 +08:00
|
|
|
order: unset;
|
|
|
|
max-width: unset;
|
2020-05-09 05:21:26 +08:00
|
|
|
width: unset;
|
2020-12-21 23:58:51 +08:00
|
|
|
background: transparent;
|
|
|
|
}
|
2021-04-14 15:15:32 +08:00
|
|
|
|
|
|
|
.mx_EventTile_emote {
|
|
|
|
> .mx_EventTile_avatar {
|
|
|
|
margin-left: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
width: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* adding the icon back in the document flow
|
|
|
|
* if it's not present, there's no unwanted wasted space
|
|
|
|
*/
|
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
position: relative;
|
|
|
|
order: -1;
|
|
|
|
}
|
2020-05-09 05:21:26 +08:00
|
|
|
}
|
2020-05-13 09:16:43 +08:00
|
|
|
|
|
|
|
.mx_ProfileResizer {
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 15px;
|
|
|
|
left: calc(80px + var(--name-width));
|
|
|
|
cursor: col-resize;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|