2020-04-29 16:07:17 +02:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2020-07-13 23:56:20 +02:00
|
|
|
$left-gutter: 64px;
|
2020-04-29 16:07:17 +02:00
|
|
|
|
|
|
|
.mx_GroupLayout {
|
|
|
|
.mx_EventTile {
|
|
|
|
> .mx_SenderProfile {
|
2021-01-24 17:40:19 +01:00
|
|
|
line-height: $font-20px;
|
2021-03-04 14:54:35 +01:00
|
|
|
margin-left: $left-gutter;
|
2020-04-29 16:07:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_EventTile_avatar {
|
|
|
|
position: absolute;
|
2021-07-22 11:31:46 +02:00
|
|
|
z-index: 9;
|
2020-04-29 16:07:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageTimestamp {
|
|
|
|
position: absolute;
|
2021-01-31 11:11:34 +01:00
|
|
|
width: $MessageTimestamp_width;
|
2020-04-29 16:07:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
2021-01-24 17:40:19 +01:00
|
|
|
padding-top: 1px;
|
2020-04-29 16:07:17 +02:00
|
|
|
padding-bottom: 3px;
|
|
|
|
line-height: $font-22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
|
|
|
|
/* Compact layout overrides */
|
|
|
|
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
|
|
|
.mx_EventTile {
|
|
|
|
padding-top: 4px;
|
|
|
|
|
2020-06-05 11:53:00 +02:00
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2020-06-01 17:00:11 +02:00
|
|
|
&.mx_EventTile_info {
|
2020-06-01 16:23:34 +02:00
|
|
|
// same as the padding for non-compact .mx_EventTile.mx_EventTile_info
|
|
|
|
padding-top: 0px;
|
|
|
|
font-size: $font-13px;
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
line-height: $font-20px;
|
|
|
|
}
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 4px;
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
}
|
|
|
|
|
2020-06-01 17:45:19 +02:00
|
|
|
.mx_SenderProfile {
|
2020-06-01 16:23:34 +02:00
|
|
|
font-size: $font-13px;
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
|
2020-06-01 17:45:19 +02:00
|
|
|
&.mx_EventTile_emote {
|
2020-06-01 16:23:34 +02:00
|
|
|
// add a bit more space for emotes so that avatars don't collide
|
|
|
|
padding-top: 8px;
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 1px;
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
}
|
2020-06-01 16:23:34 +02:00
|
|
|
|
2020-06-01 17:45:19 +02:00
|
|
|
&.mx_EventTile_emote.mx_EventTile_continuation {
|
2020-06-01 16:23:34 +02:00
|
|
|
padding-top: 0;
|
|
|
|
.mx_EventTile_line, .mx_EventTile_reply {
|
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
}
|
|
|
|
|
2020-06-01 16:23:34 +02:00
|
|
|
.mx_EventTile_avatar {
|
|
|
|
top: 2px;
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
|
2020-06-01 16:23:34 +02:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
top: 3px;
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
|
2020-06-01 16:23:34 +02:00
|
|
|
.mx_EventTile_readAvatars {
|
2021-02-28 13:32:17 +01:00
|
|
|
// This aligns the avatar with the last line of the
|
|
|
|
// message. We want to move it one line up - 2rem
|
|
|
|
top: -2rem;
|
2020-06-01 16:23:34 +02:00
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
|
2020-06-01 16:23:34 +02:00
|
|
|
.mx_EventTile_content .markdown-body {
|
|
|
|
p, ul, ol, dl, blockquote, pre, table {
|
|
|
|
margin-bottom: 4px; // 1/4 of the non-compact margin-bottom
|
|
|
|
}
|
|
|
|
}
|
2020-05-18 17:37:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomView_MessageList h2 {
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
2020-05-18 17:43:47 +02:00
|
|
|
}
|