2020-04-29 14:07:41 +00: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;
|
|
|
|
$timestamp-width: 45px;
|
|
|
|
$right-padding: 5px;
|
2020-05-08 21:21:26 +00:00
|
|
|
$irc-line-height: $font-18px;
|
2020-04-29 14:07:41 +00:00
|
|
|
|
|
|
|
.mx_IRCLayout {
|
2020-05-13 01:16:43 +00:00
|
|
|
--name-width: 70px;
|
2020-04-29 14:07:41 +00:00
|
|
|
|
2020-05-08 21:21:26 +00:00
|
|
|
line-height: $irc-line-height !important;
|
2020-04-29 14:07:41 +00:00
|
|
|
|
|
|
|
.mx_EventTile {
|
2020-05-08 21:21:26 +00:00
|
|
|
|
|
|
|
// timestamps are links which shouldn't be underlined
|
|
|
|
> a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2020-04-29 14:07:41 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: flex-start;
|
2020-04-29 14:29:25 +00:00
|
|
|
padding-top: 0;
|
2020-04-29 14:07:41 +00:00
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-right: $right-padding;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_EventTile_msgOption {
|
2020-05-26 17:15:06 +00:00
|
|
|
order: 5;
|
2020-04-29 14:07:41 +00:00
|
|
|
flex-shrink: 0;
|
2020-06-10 14:21:36 +00:00
|
|
|
|
|
|
|
.mx_EventTile_readAvatars {
|
2020-06-11 09:36:52 +00:00
|
|
|
top: 0.2rem; // ($irc-line-height - avatar height) / 2
|
2020-06-10 14:21:36 +00:00
|
|
|
}
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_SenderProfile {
|
|
|
|
order: 2;
|
|
|
|
flex-shrink: 0;
|
2020-05-13 01:16:43 +00:00
|
|
|
width: var(--name-width);
|
2020-04-29 14:07:41 +00:00
|
|
|
text-overflow: ellipsis;
|
2020-07-27 14:20:50 +00:00
|
|
|
text-align: left;
|
2020-04-29 14:07:41 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-05-07 12:55:23 +00:00
|
|
|
overflow: visible;
|
2020-05-13 13:04:46 +00:00
|
|
|
justify-content: flex-end;
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
2020-05-08 21:21:26 +00:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-04-29 14:07:41 +00:00
|
|
|
order: 3;
|
|
|
|
flex-grow: 1;
|
2020-05-26 16:39:39 +00:00
|
|
|
flex-shrink: 1;
|
|
|
|
min-width: 0;
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_EventTile_avatar {
|
|
|
|
order: 1;
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
flex-shrink: 0;
|
2020-05-08 21:21:26 +00:00
|
|
|
height: $irc-line-height;
|
2020-04-29 14:07:41 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-05-05 09:54:44 +00:00
|
|
|
// Need to use important to override the js provided height and width values.
|
2020-06-11 09:36:52 +00:00
|
|
|
> .mx_BaseAvatar, > .mx_BaseAvatar > * {
|
2020-05-05 09:54:44 +00:00
|
|
|
height: $font-14px !important;
|
|
|
|
width: $font-14px !important;
|
|
|
|
font-size: $font-10px !important;
|
2020-05-13 13:04:46 +00:00
|
|
|
line-height: $font-15px !important;
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
font-size: $font-10px;
|
|
|
|
width: $timestamp-width;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-05-26 17:15:06 +00:00
|
|
|
> .mx_EventTile_e2eIcon {
|
2020-07-16 02:52:35 +00:00
|
|
|
position: absolute;
|
2020-04-29 14:07:41 +00:00
|
|
|
right: unset;
|
|
|
|
left: unset;
|
2020-06-11 10:44:11 +00:00
|
|
|
top: 0;
|
|
|
|
|
2020-04-29 14:07:41 +00:00
|
|
|
padding: 0;
|
2020-06-11 10:44:11 +00:00
|
|
|
|
2020-05-26 17:15:06 +00:00
|
|
|
flex-shrink: 0;
|
|
|
|
flex-grow: 0;
|
2020-06-11 10:44:11 +00:00
|
|
|
|
|
|
|
height: $font-18px;
|
|
|
|
|
|
|
|
background-position: center;
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
2020-05-07 12:55:23 +00:00
|
|
|
.mx_EventTile_line {
|
|
|
|
.mx_EventTile_e2eIcon,
|
|
|
|
.mx_TextualEvent,
|
|
|
|
.mx_MTextBody,
|
|
|
|
.mx_ReplyThread_wrapper_empty {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
2020-05-05 09:54:44 +00:00
|
|
|
|
|
|
|
.mx_EventTile_reply {
|
2020-05-26 17:15:06 +00:00
|
|
|
order: 4;
|
2020-05-05 09:54:44 +00:00
|
|
|
}
|
2020-05-07 12:55:23 +00:00
|
|
|
|
|
|
|
.mx_EditMessageComposer_buttons {
|
|
|
|
position: relative;
|
|
|
|
}
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
2020-05-08 21:21:26 +00:00
|
|
|
.mx_EventTile_emote {
|
|
|
|
> .mx_EventTile_avatar {
|
2020-05-13 01:16:43 +00:00
|
|
|
margin-left: calc(var(--name-width) + $icon-width + $right-padding);
|
2020-05-08 21:21:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-29 14:07:41 +00:00
|
|
|
.mx_EventListSummary {
|
|
|
|
> .mx_EventTile_line {
|
2020-05-13 01:16:43 +00:00
|
|
|
padding-left: calc(var(--name-width) + $icon-width + $timestamp-width + 3 * $right-padding); // 15 px of padding
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
2020-05-08 21:21:26 +00:00
|
|
|
|
|
|
|
.mx_EventListSummary_avatars {
|
|
|
|
padding: 0;
|
2020-05-18 15:37:10 +00:00
|
|
|
margin: 0 9px 0 0;
|
2020-05-08 21:21:26 +00:00
|
|
|
}
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile.mx_EventTile_info {
|
|
|
|
.mx_EventTile_avatar {
|
2020-05-13 01:16:43 +00:00
|
|
|
left: calc(var(--name-width) + 10px + $icon-width);
|
2020-04-29 14:07:41 +00:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line {
|
2020-05-13 01:16:43 +00:00
|
|
|
left: calc(var(--name-width) + 10px + $icon-width);
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_TextualEvent {
|
2020-05-08 21:21:26 +00:00
|
|
|
line-height: $irc-line-height;
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-04 20:53:48 +00: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 12:55:23 +00:00
|
|
|
|
|
|
|
.mx_SenderProfile_hover {
|
|
|
|
background-color: $primary-bg-color;
|
|
|
|
overflow: hidden;
|
2020-05-08 21:21:26 +00:00
|
|
|
|
|
|
|
> span {
|
|
|
|
display: flex;
|
|
|
|
|
2020-07-16 01:52:16 +00:00
|
|
|
> .mx_SenderProfile_name,
|
|
|
|
> .mx_SenderProfile_aux {
|
2020-05-08 21:21:26 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-07-16 02:14:20 +00:00
|
|
|
min-width: var(--name-width);
|
2020-05-08 21:21:26 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-07 12:55:23 +00:00
|
|
|
}
|
|
|
|
|
2020-05-13 13:04:46 +00:00
|
|
|
.mx_SenderProfile:hover {
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
2020-05-07 12:55:23 +00:00
|
|
|
.mx_SenderProfile_hover:hover {
|
|
|
|
overflow: visible;
|
2020-05-18 15:37:10 +00:00
|
|
|
width: max(auto, 100%);
|
2020-05-07 12:55:23 +00:00
|
|
|
z-index: 10;
|
|
|
|
}
|
2020-05-08 21:21:26 +00:00
|
|
|
|
|
|
|
.mx_ReplyThread {
|
|
|
|
margin: 0;
|
|
|
|
.mx_SenderProfile {
|
|
|
|
width: unset;
|
2020-05-13 01:16:43 +00:00
|
|
|
max-width: var(--name-width);
|
2020-05-08 21:21:26 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-13 01:16:43 +00:00
|
|
|
|
|
|
|
.mx_ProfileResizer {
|
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
|
|
|
width: 15px;
|
|
|
|
left: calc(80px + var(--name-width));
|
|
|
|
cursor: col-resize;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
2020-05-13 13:04:46 +00:00
|
|
|
|
|
|
|
// Need to use important to override the js provided height and width values.
|
|
|
|
.mx_Flair > img {
|
|
|
|
height: $font-14px !important;
|
|
|
|
width: $font-14px !important;
|
|
|
|
}
|
2020-04-29 14:07:41 +00:00
|
|
|
}
|