2018-04-12 02:23:35 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
Copyright 2015-2022 The Matrix.org Foundation C.I.C.
|
2018-04-12 02:23:35 +03:00
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2018-04-12 02:23:35 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_RoomPreviewBar {
|
2019-04-11 14:07:54 +03:00
|
|
|
flex: 0 0 auto;
|
2018-04-12 02:23:35 +03:00
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
display: flex;
|
|
|
|
-webkit-align-items: center;
|
|
|
|
|
2019-04-15 18:11:26 +03:00
|
|
|
h3 {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-18px;
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2019-04-15 18:11:26 +03:00
|
|
|
|
|
|
|
&.mx_RoomPreviewBar_spinnerTitle {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2023-08-07 09:27:09 +03:00
|
|
|
margin: 0;
|
2019-04-15 18:11:26 +03:00
|
|
|
}
|
|
|
|
}
|
2020-03-19 18:24:28 +03:00
|
|
|
|
|
|
|
h3,
|
|
|
|
.mx_RoomPreviewBar_message p {
|
2022-07-27 16:39:29 +03:00
|
|
|
/* break-word, with fallback to break-all, which is wider supported */
|
2020-03-19 18:24:28 +03:00
|
|
|
word-break: break-all;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
2019-04-12 13:54:13 +03:00
|
|
|
|
2019-04-15 18:11:26 +03:00
|
|
|
.mx_Spinner {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
margin: 10px 10px 10px 0;
|
2019-04-16 17:19:50 +03:00
|
|
|
flex: 0 0 auto;
|
2019-04-15 18:11:26 +03:00
|
|
|
}
|
2019-06-26 05:56:33 +03:00
|
|
|
|
|
|
|
.mx_RoomPreviewBar_footer {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-20px;
|
2019-06-26 05:56:33 +03:00
|
|
|
|
|
|
|
.mx_Spinner {
|
|
|
|
vertical-align: middle;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-04-15 18:11:26 +03:00
|
|
|
.mx_RoomPreviewBar_actions {
|
|
|
|
display: flex;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-04-15 18:11:26 +03:00
|
|
|
.mx_RoomPreviewBar_message {
|
2018-04-12 02:23:35 +03:00
|
|
|
display: flex;
|
2019-04-16 17:19:50 +03:00
|
|
|
align-items: stretch;
|
|
|
|
|
|
|
|
p {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2019-04-15 18:11:26 +03:00
|
|
|
.mx_RoomPreviewBar_panel {
|
|
|
|
padding: 8px 8px 8px 20px;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
.mx_RoomPreviewBar_actions {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
flex-direction: row;
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
2019-07-09 20:15:10 +03:00
|
|
|
& > * {
|
2019-04-15 18:11:26 +03:00
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomPreviewBar_message {
|
|
|
|
flex: 1 0 0;
|
|
|
|
min-width: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2019-07-09 20:15:10 +03:00
|
|
|
& > * {
|
2019-04-15 18:11:26 +03:00
|
|
|
margin: 4px;
|
|
|
|
}
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
2018-10-17 22:53:12 +03:00
|
|
|
|
2022-07-27 16:39:29 +03:00
|
|
|
/* With maximised widgets, the panel fits in better when rounded */
|
2022-03-30 14:43:54 +03:00
|
|
|
.mx_MainSplit_maximisedWidget .mx_RoomPreviewBar_panel {
|
2023-05-03 12:24:41 +03:00
|
|
|
margin: var(--container-gap-width);
|
|
|
|
margin-right: calc(var(--container-gap-width) / 2); /* Shared with right panel */
|
2022-07-27 16:39:29 +03:00
|
|
|
margin-top: 0; /* Already covered by apps drawer */
|
2022-03-30 14:43:54 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2019-04-15 18:11:26 +03:00
|
|
|
.mx_RoomPreviewBar_dialog {
|
|
|
|
margin: auto;
|
|
|
|
box-sizing: content;
|
|
|
|
width: 400px;
|
|
|
|
border-radius: 4px;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 20px;
|
2019-04-16 17:19:50 +03:00
|
|
|
text-align: center;
|
2019-04-15 18:11:26 +03:00
|
|
|
|
|
|
|
.mx_RoomPreviewBar_message {
|
|
|
|
flex-direction: column;
|
|
|
|
|
2019-07-09 20:15:10 +03:00
|
|
|
& > * {
|
2019-04-17 11:22:35 +03:00
|
|
|
margin: 5px 0 20px 0;
|
2019-04-15 18:11:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomPreviewBar_actions {
|
2021-12-09 13:48:58 +03:00
|
|
|
flex-direction: column;
|
2019-04-17 11:22:35 +03:00
|
|
|
.mx_AccessibleButton {
|
2022-07-27 16:39:29 +03:00
|
|
|
padding: 7px 50px; /* extra wide */
|
2019-04-17 11:22:35 +03:00
|
|
|
}
|
2019-04-15 18:11:26 +03:00
|
|
|
|
2019-07-09 20:15:10 +03:00
|
|
|
& > * {
|
2019-04-15 18:11:26 +03:00
|
|
|
margin-top: 12px;
|
|
|
|
}
|
2020-01-23 15:27:25 +03:00
|
|
|
.mx_AccessibleButton.mx_AccessibleButton_kind_primary {
|
2022-07-27 16:39:29 +03:00
|
|
|
/* to account for the padding of the primary button which causes inconsistent look between */
|
|
|
|
/* subsequent secondary (text) buttons */
|
2020-01-23 15:27:25 +03:00
|
|
|
margin-bottom: 7px;
|
|
|
|
}
|
2019-04-15 18:11:26 +03:00
|
|
|
}
|
2019-04-11 14:07:54 +03:00
|
|
|
}
|
2023-10-24 19:06:44 +03:00
|
|
|
.mx_RoomPreviewBar_Invite {
|
|
|
|
max-height: 100vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomPreviewBar_Invite h3 {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2019-04-17 11:22:35 +03:00
|
|
|
|
|
|
|
.mx_RoomPreviewBar_inviter {
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2019-04-17 12:02:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
a.mx_RoomPreviewBar_inviter {
|
2019-04-17 11:57:45 +03:00
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
2019-04-17 11:22:35 +03:00
|
|
|
}
|
2023-08-07 09:27:09 +03:00
|
|
|
|
2024-08-01 17:17:49 +03:00
|
|
|
.mx_RoomPreviewBar_inviter_mxid {
|
|
|
|
color: var(--cpd-color-text-secondary);
|
|
|
|
}
|
|
|
|
|
2023-08-07 09:27:09 +03:00
|
|
|
.mx_RoomPreviewBar_icon {
|
|
|
|
margin-right: 8px;
|
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomPreviewBar_fullWidth {
|
|
|
|
width: 100%;
|
|
|
|
}
|