2021-11-29 19:06:15 +03:00
|
|
|
/*
|
2022-03-30 14:43:54 +03:00
|
|
|
Copyright 2021 - 2022 The Matrix.org Foundation C.I.C.
|
2021-11-29 19:06:15 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_TimelineCard {
|
2022-03-30 14:43:54 +03:00
|
|
|
.mx_TimelineCard_timeline {
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative; // offset parent for jump to bottom button
|
|
|
|
flex: 1;
|
2022-04-13 18:33:54 +03:00
|
|
|
border-radius: 8px;
|
2022-03-30 14:43:54 +03:00
|
|
|
}
|
|
|
|
|
2022-02-08 16:11:18 +03:00
|
|
|
.mx_NewRoomIntro {
|
2022-06-10 11:21:22 +03:00
|
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
margin-inline-end: var(--BaseCard_EventTile-spacing-inline);
|
2022-02-08 16:11:18 +03:00
|
|
|
}
|
|
|
|
|
2021-12-13 19:46:32 +03:00
|
|
|
.mx_EventTile_content {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-02-08 16:11:18 +03:00
|
|
|
|
2022-06-10 11:21:22 +03:00
|
|
|
.mx_EventTile {
|
2022-06-25 20:22:52 +03:00
|
|
|
&[data-layout=irc],
|
|
|
|
&[data-layout=group] {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
position: absolute; // for IRC layout
|
|
|
|
left: -3px;
|
|
|
|
}
|
2022-06-26 17:01:28 +03:00
|
|
|
|
|
|
|
.mx_EventTile_msgOption {
|
|
|
|
margin-inline-end: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_DisambiguatedProfile,
|
|
|
|
.mx_ReactionsRow,
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
}
|
|
|
|
|
2022-06-27 16:16:40 +03:00
|
|
|
.mx_DisambiguatedProfile {
|
|
|
|
max-width: calc(100% - var(--BaseCard_EventTile-spacing-inline)); // instead of $left-gutter
|
|
|
|
}
|
|
|
|
|
2022-06-26 17:01:28 +03:00
|
|
|
.mx_ReplyTile .mx_DisambiguatedProfile {
|
|
|
|
margin-inline-start: 0;
|
2022-06-27 16:16:40 +03:00
|
|
|
max-width: unset;
|
2022-06-26 17:01:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ReactionsRow {
|
|
|
|
margin-inline-end: $spacing-8; // See: var(--ThreadView_group_spacing-end) for ReactionsRow on _EventTile.scss
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
margin-inline-end: 0;
|
|
|
|
max-width: min(calc(100% - 36px), 600px);
|
|
|
|
}
|
2022-06-25 20:22:52 +03:00
|
|
|
}
|
|
|
|
|
2022-06-10 11:21:22 +03:00
|
|
|
&[data-layout=bubble] {
|
|
|
|
&::before {
|
|
|
|
z-index: auto; // enable background color on hover
|
2022-05-13 21:04:27 +03:00
|
|
|
}
|
2022-05-07 06:07:51 +03:00
|
|
|
|
2022-06-18 17:29:04 +03:00
|
|
|
&.mx_EventTile_info .mx_MessageActionBar {
|
|
|
|
inset-inline-end: calc($container-gap-width + var(--BaseCard_padding-inline) + 1px); // 1px: border width
|
|
|
|
}
|
|
|
|
|
2022-06-10 11:21:22 +03:00
|
|
|
.mx_ReactionsRow {
|
|
|
|
position: relative; // display on hover
|
|
|
|
}
|
2022-04-15 00:13:46 +03:00
|
|
|
}
|
2021-12-13 19:46:32 +03:00
|
|
|
|
2022-06-10 11:21:22 +03:00
|
|
|
&:not([data-layout="bubble"]) {
|
|
|
|
&.mx_EventTile_info .mx_EventTile_line,
|
|
|
|
.mx_EventTile_line {
|
|
|
|
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
padding-inline-end: $MessageTimestamp_width; // ensure timestamp is not hidden
|
2022-04-15 00:13:46 +03:00
|
|
|
|
2022-06-10 11:21:22 +03:00
|
|
|
.mx_EventTile_e2eIcon {
|
|
|
|
inset-inline-start: 8px;
|
|
|
|
}
|
|
|
|
}
|
2022-02-08 16:11:18 +03:00
|
|
|
|
2022-06-10 11:21:22 +03:00
|
|
|
.mx_MessageTimestamp {
|
|
|
|
position: absolute; // for modern layout and IRC layout
|
|
|
|
inset-inline-start: auto;
|
|
|
|
inset-inline-end: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
.mx_EventTile_avatar {
|
|
|
|
left: 18px;
|
|
|
|
}
|
2022-04-15 01:09:10 +03:00
|
|
|
}
|
|
|
|
}
|
2021-12-13 19:46:32 +03:00
|
|
|
}
|
2022-02-08 16:11:18 +03:00
|
|
|
|
2022-05-21 12:34:00 +03:00
|
|
|
.mx_EventTile,
|
|
|
|
.mx_GenericEventListSummary {
|
|
|
|
.mx_ThreadSummary {
|
|
|
|
position: relative;
|
|
|
|
padding-right: 11px;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
bottom: -16px;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
border-bottom: 1px solid $message-action-bar-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-13 19:46:32 +03:00
|
|
|
.mx_CallEvent_wrapper {
|
|
|
|
justify-content: center;
|
|
|
|
margin: auto 5px;
|
|
|
|
.mx_CallEvent {
|
|
|
|
margin: 4px;
|
|
|
|
}
|
|
|
|
}
|
2022-02-08 16:11:18 +03:00
|
|
|
|
2022-05-18 16:08:39 +03:00
|
|
|
.mx_GenericEventListSummary:not([data-layout=bubble]) {
|
|
|
|
.mx_EventTile_line,
|
|
|
|
> .mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
|
2022-06-10 11:21:22 +03:00
|
|
|
padding-inline-start: var(--BaseCard_EventTile-spacing-inline);
|
|
|
|
padding-inline-end: var(--BaseCard_EventTile-spacing-inline);
|
2022-05-18 16:08:39 +03:00
|
|
|
}
|
2022-02-08 16:11:18 +03:00
|
|
|
}
|
|
|
|
|
2022-04-22 18:09:44 +03:00
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
top: -6px;
|
2021-12-13 19:46:32 +03:00
|
|
|
}
|
|
|
|
|
2022-02-08 16:11:18 +03:00
|
|
|
.mx_WhoIsTypingTile {
|
|
|
|
margin-left: -12px; // undo padding on the message list
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WhoIsTypingTile_avatars {
|
|
|
|
flex-basis: 48px; // 12 (padding on message list) + 36 (padding on event lines)
|
|
|
|
}
|
2022-04-13 18:33:54 +03:00
|
|
|
|
2022-06-02 05:43:07 +03:00
|
|
|
.mx_GenericEventListSummary_unstyledList, // RR next to a message on the event list summary
|
|
|
|
.mx_RoomView_MessageList { // RR next to a message on the messsge list
|
|
|
|
.mx_EventTile[data-layout=bubble] {
|
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
// 6px: scroll bar width (magic number)
|
|
|
|
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end) + $container-gap-width + 6px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_EventTile_info {
|
|
|
|
.mx_ReadReceiptGroup {
|
|
|
|
inset-inline-end: -4px; // align with RR outside of info tile
|
|
|
|
}
|
|
|
|
}
|
2022-04-13 18:33:54 +03:00
|
|
|
}
|
|
|
|
}
|
2021-11-29 19:06:15 +03:00
|
|
|
}
|