Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
2.4 KiB
Plaintext
Raw Permalink Normal View History

2020-06-04 16:34:04 -06:00
/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
2020-06-04 16:34:04 -06:00
Copyright 2020 The Matrix.org Foundation C.I.C.
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
2020-06-04 16:34:04 -06:00
*/
2023-07-20 09:13:22 +01: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-03-17 09:25:57 +01:00
}
.mx_LeftPanel_wrapper,
.mx_LeftPanel {
--collapsedWidth: 68px;
}
.mx_LeftPanel_panel {
.mx_LeftPanel_outerWrapper {
height: 100%;
max-width: none;
}
.mx_LeftPanel_wrapper--user {
width: 100%;
}
}
2022-03-17 09:25:57 +01:00
.mx_LeftPanel_wrapper {
display: flex;
flex-direction: row;
flex: 1;
height: 100%; /* ensure space panel is still scrollable with an outer wrapper */
2021-08-23 16:20:21 +02:00
.mx_LeftPanel_wrapper--user {
display: flex;
overflow: hidden;
position: relative;
/* For enhanced visibility under contrast control */
outline: 1px solid transparent;
2021-08-24 14:38:39 +02:00
&[data-collapsed] {
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 15:22:18 -06:00
.mx_LeftPanel {
2026-07-02 11:07:37 +02:00
background-color: var(--cpd-color-bg-canvas-default);
/* The room list is not designed to be collapsed to just icons. */
/* 224 + 68(spaces bar) was deemed by design to be a good minimum for the left panel. */
--collapsedWidth: 224px;
2020-06-04 16:34:04 -06:00
/* Create a row-based flexbox for the space panel and the room list */
2020-06-04 16:34:04 -06:00
display: flex;
contain: content;
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-04 16:34:04 -06:00
2020-07-17 15:22:18 -06:00
.mx_LeftPanel_roomListContainer {
2021-02-26 10:23:09 +00:00
flex: 1 0 0;
min-width: 0;
/* Create another flexbox (this time a column) for the room list components */
2020-06-04 16:34:04 -06:00
display: flex;
flex-direction: column;
}
2020-06-11 14:39:28 -06:00
/* These styles override the defaults for the minimized (66px) layout */
2020-07-17 15:22:18 -06:00
&.mx_LeftPanel_minimized {
2021-08-24 13:05:46 +02:00
flex-grow: 0;
2020-06-11 14:39:28 -06:00
min-width: unset;
2021-02-26 10:23:09 +00:00
width: unset !important;
2020-06-11 14:39:28 -06:00
2020-07-17 15:22:18 -06:00
.mx_LeftPanel_roomListContainer {
width: var(--collapsedWidth);
2020-06-11 14:39:28 -06:00
}
}
2020-06-04 16:34:04 -06:00
}
#left-panel .mx_LeftPanel_wrapper--user {
/*
* Disable background when using the new room list.
* This background sometimes shows when the panel is resized and it looks like a thicker border.
*/
background: none;
}