2020-06-05 00:34:04 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-06-05 00:34:04 +02:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02: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-06-05 00:34:04 +02:00
|
|
|
*/
|
|
|
|
|
2023-07-20 10:13:22 +02:00
|
|
|
.mx_MatrixChat--with-avatar {
|
|
|
|
.mx_LeftPanel,
|
|
|
|
.mx_LeftPanel .mx_LeftPanel_roomListContainer {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 09:25:57 +01:00
|
|
|
.mx_LeftPanel_outerWrapper {
|
2021-08-19 16:10:09 +02:00
|
|
|
display: flex;
|
2022-03-17 09:25:57 +01:00
|
|
|
flex-direction: column;
|
2021-08-19 16:10:09 +02:00
|
|
|
max-width: 50%;
|
2021-08-24 19:23:12 +02:00
|
|
|
position: relative;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Contain the amount of layers rendered by constraining what actually needs re-layering via css */
|
2021-08-19 19:00:31 +02:00
|
|
|
contain: layout paint;
|
2022-03-17 09:25:57 +01:00
|
|
|
}
|
|
|
|
|
2023-06-06 13:09:04 +02:00
|
|
|
.mx_LeftPanel_wrapper,
|
|
|
|
.mx_LeftPanel {
|
|
|
|
--collapsedWidth: 68px;
|
|
|
|
}
|
|
|
|
|
2022-03-17 09:25:57 +01:00
|
|
|
.mx_LeftPanel_wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex: 1;
|
2022-07-27 15:39:29 +02:00
|
|
|
height: 100%; /* ensure space panel is still scrollable with an outer wrapper */
|
2021-08-23 16:20:21 +02:00
|
|
|
|
|
|
|
.mx_LeftPanel_wrapper--user {
|
2021-08-23 19:26:57 +02:00
|
|
|
background-color: $roomlist-bg-color;
|
2021-08-23 16:20:21 +02:00
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
2021-08-24 14:38:39 +02:00
|
|
|
|
|
|
|
&[data-collapsed] {
|
2023-06-06 13:09:04 +02:00
|
|
|
max-width: var(--collapsedWidth);
|
2021-08-24 14:38:39 +02:00
|
|
|
}
|
2021-08-23 16:20:21 +02:00
|
|
|
}
|
2021-08-19 16:10:09 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel {
|
2021-08-17 18:56:19 +02:00
|
|
|
background-color: $roomlist-bg-color;
|
2020-06-05 00:34:04 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create a row-based flexbox for the space panel and the room list */
|
2020-06-05 00:34:04 +02:00
|
|
|
display: flex;
|
2021-06-01 12:21:59 +02:00
|
|
|
contain: content;
|
2021-06-25 10:20:03 +02:00
|
|
|
position: relative;
|
2021-08-24 13:05:46 +02:00
|
|
|
flex-grow: 1;
|
2021-08-24 16:06:20 +02:00
|
|
|
overflow: hidden;
|
2020-06-05 00:34:04 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Note: The 'room list' in this context is actually everything that isn't the tag */
|
|
|
|
/* panel, such as the menu options, breadcrumbs, filtering, etc */
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_roomListContainer {
|
2021-08-17 18:56:19 +02:00
|
|
|
background-color: $roomlist-bg-color;
|
2021-02-26 11:23:09 +01:00
|
|
|
flex: 1 0 0;
|
|
|
|
min-width: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create another flexbox (this time a column) for the room list components */
|
2020-06-05 00:34:04 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_userHeader {
|
2020-07-10 03:54:11 +02:00
|
|
|
/* 12px top, 12px sides, 20px bottom (using 13px bottom to account
|
|
|
|
* for internal whitespace in the breadcrumbs)
|
|
|
|
*/
|
2020-07-10 19:06:48 +02:00
|
|
|
padding: 12px;
|
2022-07-27 15:39:29 +02:00
|
|
|
flex-shrink: 0; /* to convince safari's layout engine the flexbox is fine */
|
2020-06-05 00:34:04 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create another flexbox column for the rows to stack within */
|
2020-06-05 00:34:04 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-07-13 14:52:50 +02:00
|
|
|
}
|
2020-06-05 00:34:04 +02:00
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_breadcrumbsContainer {
|
2020-07-13 14:52:50 +02:00
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: scroll;
|
2020-07-13 18:19:43 +02:00
|
|
|
margin: 12px 12px 0 12px;
|
2020-07-13 14:52:50 +02:00
|
|
|
flex: 0 0 auto;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create yet another flexbox, this time within the row, to ensure items stay */
|
|
|
|
/* aligned correctly. This is also a row-based flexbox. */
|
2020-07-13 14:52:50 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-06-01 12:21:59 +02:00
|
|
|
contain: content;
|
2020-07-09 20:24:02 +02:00
|
|
|
|
2020-07-13 14:52:50 +02:00
|
|
|
&.mx_IndicatorScrollbar_leftOverflow {
|
2020-07-13 18:20:40 +02:00
|
|
|
mask-image: linear-gradient(90deg, transparent, black 5%);
|
2020-07-13 14:52:50 +02:00
|
|
|
}
|
2020-07-09 20:24:02 +02:00
|
|
|
|
2020-07-13 14:52:50 +02:00
|
|
|
&.mx_IndicatorScrollbar_rightOverflow {
|
2020-07-13 18:20:40 +02:00
|
|
|
mask-image: linear-gradient(90deg, black, black 95%, transparent);
|
2020-07-13 14:52:50 +02:00
|
|
|
}
|
2020-07-09 20:24:02 +02:00
|
|
|
|
2020-07-13 14:52:50 +02:00
|
|
|
&.mx_IndicatorScrollbar_rightOverflow.mx_IndicatorScrollbar_leftOverflow {
|
2020-07-13 18:20:40 +02:00
|
|
|
mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
|
2020-06-05 00:34:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_filterContainer {
|
2021-11-30 19:08:46 +01:00
|
|
|
margin: 0 12px;
|
|
|
|
padding: 12px 0 8px;
|
|
|
|
border-bottom: 1px solid $quinary-content;
|
2020-06-09 04:33:21 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
flex-shrink: 0; /* to convince safari's layout engine the flexbox is fine */
|
2020-07-10 03:15:46 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create a flexbox to organize the inputs */
|
2020-06-09 04:33:21 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2021-11-30 19:08:46 +01:00
|
|
|
& + .mx_RoomListHeader {
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
|
|
|
|
2021-06-25 12:45:15 +02:00
|
|
|
.mx_LeftPanel_dialPadButton {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 8px;
|
2021-11-29 13:52:09 +01:00
|
|
|
background-color: $panel-actions;
|
2021-06-25 12:45:15 +02:00
|
|
|
position: relative;
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2021-06-25 12:45:15 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
left: 8px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/call/dialpad.svg");
|
2021-06-25 12:45:15 +02:00
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2021-12-01 11:50:06 +01:00
|
|
|
background-color: $secondary-content;
|
2021-06-25 12:45:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-01 11:50:06 +01:00
|
|
|
.mx_LeftPanel_exploreButton,
|
|
|
|
.mx_LeftPanel_recentsButton {
|
2020-08-14 19:53:56 +02:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 8px;
|
2021-11-29 13:52:09 +01:00
|
|
|
background-color: $panel-actions;
|
2020-06-09 04:33:21 +02:00
|
|
|
position: relative;
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2020-06-09 04:33:21 +02:00
|
|
|
position: absolute;
|
2020-08-14 19:53:56 +02:00
|
|
|
top: 8px;
|
|
|
|
left: 8px;
|
2020-06-09 04:33:21 +02:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2021-12-01 11:50:06 +01:00
|
|
|
background-color: $secondary-content;
|
2020-06-09 04:33:21 +02:00
|
|
|
}
|
2021-03-24 20:43:33 +01:00
|
|
|
|
2021-11-30 19:08:46 +01:00
|
|
|
&:hover {
|
|
|
|
background-color: $tertiary-content;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $background;
|
|
|
|
}
|
2021-03-24 20:43:33 +01:00
|
|
|
}
|
2020-06-09 04:33:21 +02:00
|
|
|
}
|
2021-12-01 11:50:06 +01:00
|
|
|
|
|
|
|
.mx_LeftPanel_exploreButton::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/explore.svg");
|
2021-12-01 11:50:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_LeftPanel_recentsButton::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/clock.svg");
|
2021-12-01 11:50:06 +01:00
|
|
|
}
|
2020-06-05 00:34:04 +02:00
|
|
|
}
|
|
|
|
|
2023-03-21 10:06:43 +01:00
|
|
|
.mx_RoomListHeader:first-child {
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_roomListWrapper {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Make the y-scrollbar more responsive */
|
2021-08-24 13:05:46 +02:00
|
|
|
padding-right: 2px;
|
2020-07-08 14:49:04 +02:00
|
|
|
overflow: hidden;
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-top: 10px; /* so we're not up against the search/filter */
|
|
|
|
flex: 1 0 0; /* needed in Safari to properly set flex-basis */
|
2020-07-08 14:49:04 +02:00
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
&.mx_LeftPanel_roomListWrapper_stickyBottom {
|
2020-07-08 14:49:38 +02:00
|
|
|
padding-bottom: 32px;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
&.mx_LeftPanel_roomListWrapper_stickyTop {
|
2020-07-08 14:49:38 +02:00
|
|
|
padding-top: 32px;
|
|
|
|
}
|
2020-07-08 14:49:04 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_actualRoomListContainer {
|
2022-07-27 15:39:29 +02:00
|
|
|
position: relative; /* for sticky headers */
|
|
|
|
height: 100%; /* ensure scrolling still works */
|
2020-06-05 00:34:04 +02:00
|
|
|
}
|
|
|
|
}
|
2020-06-11 22:39:28 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* These styles override the defaults for the minimized (66px) layout */
|
2020-07-17 23:22:18 +02:00
|
|
|
&.mx_LeftPanel_minimized {
|
2021-08-24 13:05:46 +02:00
|
|
|
flex-grow: 0;
|
2020-06-11 22:39:28 +02:00
|
|
|
min-width: unset;
|
2021-02-26 11:23:09 +01:00
|
|
|
width: unset !important;
|
2020-06-11 22:39:28 +02:00
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_roomListContainer {
|
2023-06-06 13:09:04 +02:00
|
|
|
width: var(--collapsedWidth);
|
2020-06-11 22:39:28 +02:00
|
|
|
|
2020-12-15 14:45:10 +01:00
|
|
|
.mx_LeftPanel_userHeader {
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:22:18 +02:00
|
|
|
.mx_LeftPanel_filterContainer {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Organize the flexbox into a centered column layout */
|
2020-06-11 22:39:28 +02:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
|
2021-06-25 12:45:15 +02:00
|
|
|
.mx_LeftPanel_dialPadButton {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 8px;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2021-12-01 11:50:06 +01:00
|
|
|
.mx_LeftPanel_exploreButton,
|
|
|
|
.mx_LeftPanel_recentsButton {
|
2020-06-11 22:39:28 +02:00
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-05 00:34:04 +02:00
|
|
|
}
|