riot-web/res/css/structures/_FilePanel.pcss

97 lines
2.3 KiB
Plaintext
Raw Normal View History

/*
Copyright 2024 New Vector Ltd.
Copyright 2016 OpenMarket Ltd
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
*/
.mx_FilePanel {
order: 2;
flex: 1 1 0;
overflow-y: auto;
display: flex;
.mx_RoomView_messageListWrapper {
flex-direction: row;
align-items: center;
justify-content: center;
}
.mx_RoomView_MessageList {
width: 100%;
h2 {
display: none;
}
}
/* FIXME: rather than having EventTile's default CSS be for MessagePanel,
we should make EventTile a base CSS class and customise it specifically
for usage in {Message,File,Notification}Panel. */
.mx_EventTile_avatar {
display: none;
}
Remove `mx_EventTile:not([data-layout="bubble"])` selector (#9033) * Move declarations out of `mx_EventTile:not([data-layout=bubble])` merging style rules on _EventBubbleTile.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove an obsolete `!important` flag from `&.mx_EventTile_continuation` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `clear: unset` declaration from EventTile on bubble layout While mx_EventTile:not([data-layout="bubble"]) suggests that "clear: both" would not be applied to the bubble layout, the value "both" has been in fact luckily applied thanks to "mx_RoomView_MessageList li" on _RoomView.pcss, imported later than _EventTile.pcss. Since "clear: both" is declared for mx_EventTile, this declaration is no longer needed here. Though the value of that declaration of mx_EventTile on the timeline (including ThreadView) seems to have been overridden by "mx_RoomView_MessageList li" for all layouts, it should not be removed yet until E2E tests which check visual regressions are implemented, in order to minimize the risk of a regression outside of the timeline. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `:not()` pseudo class from `_FilePanel.pcss` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `!important` flag from `_MessageEditHistoryDialog.pcss` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove a comment about overriding Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Run prettier Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-04-27 15:02:34 +02:00
/* Overrides for the attachment body tiles */
.mx_EventTile {
Remove `mx_EventTile:not([data-layout="bubble"])` selector (#9033) * Move declarations out of `mx_EventTile:not([data-layout=bubble])` merging style rules on _EventBubbleTile.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove an obsolete `!important` flag from `&.mx_EventTile_continuation` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `clear: unset` declaration from EventTile on bubble layout While mx_EventTile:not([data-layout="bubble"]) suggests that "clear: both" would not be applied to the bubble layout, the value "both" has been in fact luckily applied thanks to "mx_RoomView_MessageList li" on _RoomView.pcss, imported later than _EventTile.pcss. Since "clear: both" is declared for mx_EventTile, this declaration is no longer needed here. Though the value of that declaration of mx_EventTile on the timeline (including ThreadView) seems to have been overridden by "mx_RoomView_MessageList li" for all layouts, it should not be removed yet until E2E tests which check visual regressions are implemented, in order to minimize the risk of a regression outside of the timeline. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `:not()` pseudo class from `_FilePanel.pcss` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `!important` flag from `_MessageEditHistoryDialog.pcss` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove a comment about overriding Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Run prettier Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-04-27 15:02:34 +02:00
word-break: break-word;
margin-top: 10px;
padding-top: 0;
Remove `mx_EventTile:not([data-layout="bubble"])` selector (#9033) * Move declarations out of `mx_EventTile:not([data-layout=bubble])` merging style rules on _EventBubbleTile.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove an obsolete `!important` flag from `&.mx_EventTile_continuation` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `clear: unset` declaration from EventTile on bubble layout While mx_EventTile:not([data-layout="bubble"]) suggests that "clear: both" would not be applied to the bubble layout, the value "both" has been in fact luckily applied thanks to "mx_RoomView_MessageList li" on _RoomView.pcss, imported later than _EventTile.pcss. Since "clear: both" is declared for mx_EventTile, this declaration is no longer needed here. Though the value of that declaration of mx_EventTile on the timeline (including ThreadView) seems to have been overridden by "mx_RoomView_MessageList li" for all layouts, it should not be removed yet until E2E tests which check visual regressions are implemented, in order to minimize the risk of a regression outside of the timeline. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `:not()` pseudo class from `_FilePanel.pcss` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove `!important` flag from `_MessageEditHistoryDialog.pcss` Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove a comment about overriding Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Run prettier Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> --------- Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-04-27 15:02:34 +02:00
.mx_EventTile_line {
padding-inline-start: 0;
}
.mx_MFileBody {
line-height: 2.4rem;
}
.mx_MFileBody_download {
padding-top: $spacing-8;
display: flex;
justify-content: space-between;
font: var(--cpd-font-body-md-regular);
color: $event-timestamp-color;
.mx_MImageBody_size {
font: var(--cpd-font-body-md-regular);
text-align: right;
white-space: nowrap;
}
}
.mx_MFileBody_downloadLink {
flex: 1 1 auto;
color: $light-fg-color;
}
/* anchor link as wrapper */
.mx_EventTile_senderDetailsLink {
text-decoration: none;
.mx_EventTile_senderDetails {
display: flex;
justify-content: space-between;
margin-top: -2px;
.mx_DisambiguatedProfile {
color: $event-timestamp-color; /* for ellipsis. Color of displayName and mxid is inherited */
}
.mx_MessageTimestamp {
text-align: right;
color: $secondary-content;
font: var(--cpd-font-body-sm-regular);
}
}
}
}
.mx_EventTile_line {
margin-inline-end: 0;
padding-inline-start: 0;
}
}