2020-04-29 22:07:41 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-04-29 22:07:41 +08:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 21:57:16 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-04-29 22:07:41 +08:00
|
|
|
*/
|
|
|
|
|
2023-05-03 19:06:51 +08:00
|
|
|
:root {
|
|
|
|
--irc-line-height: $font-18px;
|
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
|
|
|
|
.mx_IRCLayout {
|
2023-04-23 15:37:20 +08:00
|
|
|
--name-width: 80px; /* cf. ircDisplayNameWidth on Settings.tsx */
|
2022-07-06 18:44:23 +08:00
|
|
|
--icon-width: 14px;
|
2023-05-03 19:06:51 +08:00
|
|
|
--line-height: var(--irc-line-height);
|
2023-06-06 22:03:52 +08:00
|
|
|
--right-padding: 5px;
|
2020-04-29 22:07:41 +08:00
|
|
|
|
2023-03-24 20:57:32 +08:00
|
|
|
line-height: var(--line-height) !important;
|
2020-04-29 22:07:41 +08:00
|
|
|
|
2023-04-23 15:37:20 +08:00
|
|
|
blockquote {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2023-03-14 22:32:12 +08:00
|
|
|
.mx_NewRoomIntro {
|
|
|
|
> h2 {
|
2023-05-03 19:06:51 +08:00
|
|
|
line-height: initial; /* Cancel var(--irc-line-height) */
|
2020-05-09 05:21:26 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-16 00:42:44 +08:00
|
|
|
.mx_ReplyChain {
|
2022-03-23 06:14:55 +08:00
|
|
|
.mx_DisambiguatedProfile {
|
2020-05-09 05:21:26 +08:00
|
|
|
width: unset;
|
2020-12-21 23:58:51 +08:00
|
|
|
background: transparent;
|
2023-03-10 18:47:14 +08:00
|
|
|
order: unset;
|
|
|
|
flex-shrink: unset; /* Unset flex-shrink to prevent long display name blowout */
|
2020-12-21 23:58:51 +08:00
|
|
|
}
|
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 {
|
2023-03-21 17:10:13 +08:00
|
|
|
--resizer-width: 15px;
|
|
|
|
--resizer-a11y: 3px; /* Magic number, to be replaced with something more proper from the perspective of a11y */
|
|
|
|
|
2020-05-13 09:16:43 +08:00
|
|
|
position: absolute;
|
|
|
|
height: 100%;
|
2023-03-21 17:10:13 +08:00
|
|
|
width: var(--resizer-width);
|
2020-05-13 09:16:43 +08:00
|
|
|
cursor: col-resize;
|
|
|
|
z-index: 100;
|
2023-03-21 17:10:13 +08:00
|
|
|
|
|
|
|
/* Add width of every element rendered before the resizer (including padding for the avatar and the display
|
|
|
|
name), subtracting the resizer width itself to prevent the resizer from overlapping the text and moving
|
|
|
|
the resizer a bit to the left to make it easier to avoid selecting the resizer when highlighting text.
|
|
|
|
Please note that MessageTimestamp does not have inline padding. */
|
|
|
|
inset-inline-start: calc(
|
|
|
|
var(--RoomView_MessageList-padding) + var(--MessageTimestamp-width) + var(--icon-width) +
|
|
|
|
var(--right-padding) + var(--name-width) + var(--right-padding) - var(--resizer-width) -
|
|
|
|
var(--resizer-a11y)
|
|
|
|
);
|
2020-05-13 09:16:43 +08:00
|
|
|
}
|
2020-04-29 22:07:41 +08:00
|
|
|
}
|