2020-06-04 05:16:53 +02:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-06-04 05:16:53 +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-04 05:16:53 +02:00
|
|
|
*/
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist {
|
2020-06-10 23:05:17 +02:00
|
|
|
margin-left: 8px;
|
2020-07-13 21:40:42 +02:00
|
|
|
margin-bottom: 4px;
|
2020-07-10 03:15:46 +02:00
|
|
|
|
2021-04-15 17:11:45 +02:00
|
|
|
&.mx_RoomSublist_hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-10-07 11:57:23 +02:00
|
|
|
&:not(.mx_RoomSublist_minimized) {
|
|
|
|
.mx_RoomSublist_headerContainer {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_headerContainer {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create a flexbox to make alignment easy */
|
2020-06-08 21:42:18 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-06-13 19:54:40 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* *************************** */
|
|
|
|
/* Sticky Headers Start */
|
2020-06-13 19:54:40 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Ideally we'd be able to use `position: sticky; top: 0; bottom: 0;` on the */
|
|
|
|
/* headerContainer, however due to our layout concerns we actually have to */
|
|
|
|
/* calculate it manually so we can sticky things in the right places. We also */
|
|
|
|
/* target the headerText instead of the container to reduce jumps when scrolling, */
|
|
|
|
/* and to help hide the badges/other buttons that could appear on hover. This */
|
|
|
|
/* all works by ensuring the header text has a fixed height when sticky so the */
|
|
|
|
/* fixed height of the container can maintain the scroll position. */
|
2020-06-13 19:54:40 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* The combined height must be set in the LeftPanel component for sticky headers */
|
|
|
|
/* to work correctly. */
|
2020-06-10 23:05:17 +02:00
|
|
|
padding-bottom: 8px;
|
2021-10-07 11:57:23 +02:00
|
|
|
height: 24px;
|
2023-07-12 19:46:49 +02:00
|
|
|
color: $secondary-content;
|
2020-06-08 21:42:18 +02:00
|
|
|
|
2022-03-09 19:18:17 +01:00
|
|
|
.mx_RoomSublist_stickableContainer {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_stickable {
|
2020-06-14 03:07:19 +02:00
|
|
|
flex: 1;
|
|
|
|
max-width: 100%;
|
2020-06-13 19:54:40 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create a flexbox to make ordering easy */
|
2020-06-14 03:07:19 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* We use a generic sticky class for 2 reasons: to reduce style duplication and */
|
|
|
|
/* to identify when a header is sticky. If we didn't have a consistent sticky class, */
|
|
|
|
/* we'd have to do the "is sticky" checks again on click, as clicking the header */
|
|
|
|
/* when sticky scrolls instead of collapses the list. */
|
2020-07-17 23:46:46 +02:00
|
|
|
&.mx_RoomSublist_headerContainer_sticky {
|
2020-06-13 19:54:40 +02:00
|
|
|
position: fixed;
|
2022-07-27 15:39:29 +02:00
|
|
|
height: 32px; /* to match the header container */
|
|
|
|
/* width set by JS because of a compat issue between Firefox and Chrome */
|
2021-05-25 14:53:20 +02:00
|
|
|
width: calc(100% - 15px);
|
2020-06-13 19:54:40 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* We don't have a top style because the top is dependent on the room list header's */
|
|
|
|
/* height, and is therefore calculated in JS. */
|
|
|
|
/* The class, mx_RoomSublist_headerContainer_stickyTop, is applied though. */
|
2020-06-13 19:54:40 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Sticky Headers End */
|
|
|
|
/* *************************** */
|
2020-06-13 19:54:40 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_badgeContainer {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create another flexbox row because it's super easy to position the badge this way. */
|
2020-06-08 21:42:18 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-06-10 23:05:17 +02:00
|
|
|
justify-content: center;
|
2020-06-25 18:54:51 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Apply the width and margin to the badge so the container doesn't occupy dead space */
|
2020-06-25 18:54:51 +02:00
|
|
|
.mx_NotificationBadge {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Do not set a width so the badges get properly sized */
|
|
|
|
margin-left: 8px; /* same as menu+aux buttons */
|
2020-06-25 18:54:51 +02:00
|
|
|
}
|
2020-06-08 21:42:18 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
&:not(.mx_RoomSublist_headerContainer_withAux) {
|
2020-06-25 23:42:44 +02:00
|
|
|
.mx_NotificationBadge {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-right: 4px; /* just to push it over a bit, aligning it with the other elements */
|
2020-06-25 23:42:44 +02:00
|
|
|
}
|
2020-06-08 21:42:18 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_auxButton,
|
|
|
|
.mx_RoomSublist_menuButton {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-left: 8px; /* should be the same as the notification badge */
|
2020-06-10 05:12:49 +02:00
|
|
|
position: relative;
|
2020-06-25 18:54:51 +02:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2021-05-14 10:22:40 +02:00
|
|
|
border-radius: 8px;
|
2020-06-10 05:12:49 +02:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2020-06-10 05:12:49 +02:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
left: 4px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2024-03-18 16:47:55 +01:00
|
|
|
background: var(--cpd-color-icon-secondary);
|
2020-06-10 05:12:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-14 11:38:37 +02:00
|
|
|
.mx_RoomSublist_auxButton:hover,
|
|
|
|
.mx_RoomSublist_menuButton:hover {
|
2021-11-29 13:52:09 +01:00
|
|
|
background: $panel-actions;
|
2021-05-14 10:22:40 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Hide the menu button by default */
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_menuButton {
|
2020-06-25 18:54:51 +02:00
|
|
|
visibility: hidden;
|
|
|
|
width: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_auxButton::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/plus.svg");
|
2020-06-10 05:12:49 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_menuButton::before {
|
2024-10-15 12:19:06 +02:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/overflow-horizontal.svg");
|
2020-06-10 05:12:49 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_headerText {
|
2020-06-08 21:42:18 +02:00
|
|
|
flex: 1;
|
2022-07-27 15:39:29 +02:00
|
|
|
max-width: calc(100% - 16px); /* 16px is the badge width */
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-sm-semibold);
|
2020-06-08 21:42:18 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Ellipsize any text overflow */
|
2020-06-08 21:42:18 +02:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2020-06-16 03:47:25 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_collapseBtn {
|
2020-06-16 03:47:25 +02:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2020-07-30 17:41:00 +02:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
margin-right: 6px;
|
2020-06-16 03:47:25 +02:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2020-07-30 17:41:00 +02:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2020-06-16 03:47:25 +02:00
|
|
|
position: absolute;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2024-03-18 16:47:55 +01:00
|
|
|
background-color: var(--cpd-color-icon-secondary);
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
2020-06-16 03:47:25 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
&.mx_RoomSublist_collapseBtn_collapsed::before {
|
2020-07-30 17:41:00 +02:00
|
|
|
transform: rotate(-90deg);
|
2020-06-16 03:47:25 +02:00
|
|
|
}
|
|
|
|
}
|
2020-06-08 21:42:18 +02:00
|
|
|
}
|
2020-06-05 05:21:04 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* In the general case, we reserve space for each sublist header to prevent */
|
|
|
|
/* scroll jumps when they become sticky. However, that leaves a gap when */
|
|
|
|
/* scrolled to the top above the first sublist (whose header can only ever */
|
|
|
|
/* stick to top), so we make sure to exclude the first visible sublist. */
|
2022-03-09 19:18:17 +01:00
|
|
|
&:not(.mx_RoomSublist_hidden) ~ .mx_RoomSublist .mx_RoomSublist_stickableContainer {
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_resizeBox {
|
2020-06-10 03:48:31 +02:00
|
|
|
position: relative;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Create another flexbox column for the tiles */
|
2020-06-05 05:21:04 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
2020-06-05 16:48:23 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_tiles {
|
2020-07-10 18:29:39 +02:00
|
|
|
flex: 1 0 0;
|
|
|
|
overflow: hidden;
|
2021-11-23 19:39:36 +01:00
|
|
|
overflow: clip;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* need this to be flex otherwise the overflow hidden from above */
|
|
|
|
/* sometimes vertically centers the clipped list ... no idea why it would do this */
|
|
|
|
/* as the box model should be top aligned. Happens in both FF and Chromium */
|
2020-06-05 16:48:23 +02:00
|
|
|
display: flex;
|
2020-07-10 18:29:39 +02:00
|
|
|
flex-direction: column;
|
2021-06-01 12:21:59 +02:00
|
|
|
align-self: stretch;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* without this Firefox will prefer pushing the resizer & show more/less button into the overflow */
|
2021-12-08 10:19:12 +01:00
|
|
|
min-height: 0;
|
2020-07-13 21:15:09 +02:00
|
|
|
|
2020-07-15 11:49:59 +02:00
|
|
|
mask-image: linear-gradient(0deg, transparent, black 4px);
|
2020-07-10 18:29:39 +02:00
|
|
|
}
|
2020-06-16 04:00:09 +02:00
|
|
|
|
2021-12-07 16:54:30 +01:00
|
|
|
&.mx_RoomSublist_resizeBox_forceExpanded .mx_RoomSublist_tiles {
|
2022-07-27 15:39:29 +02:00
|
|
|
/* in this state the div can collapse its height entirely in Chromium, */
|
|
|
|
/* so prevent that by allowing overflow */
|
2021-12-07 16:54:30 +01:00
|
|
|
overflow: visible;
|
2022-07-27 15:39:29 +02:00
|
|
|
/* clear the min-height to make it not collapse entirely in a state with no active resizer */
|
2021-12-09 10:43:45 +01:00
|
|
|
min-height: unset;
|
2021-12-07 16:54:30 +01:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_resizerHandles_showNButton {
|
2020-07-10 18:29:39 +02:00
|
|
|
flex: 0 0 32px;
|
|
|
|
}
|
2020-06-16 04:00:09 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_resizerHandles {
|
2020-07-10 18:29:39 +02:00
|
|
|
flex: 0 0 4px;
|
2021-02-13 08:53:25 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
2020-06-10 03:48:31 +02:00
|
|
|
}
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Class name comes from the ResizableBox component */
|
|
|
|
/* The hover state needs to use the whole sublist, not just the resizable box, */
|
|
|
|
/* so that selector is below and one level higher. */
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_resizerHandle {
|
2020-06-10 03:48:31 +02:00
|
|
|
cursor: ns-resize;
|
2020-06-25 18:07:23 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Override styles from library */
|
2021-02-13 08:53:25 +01:00
|
|
|
max-width: 64px;
|
2022-07-27 15:39:29 +02:00
|
|
|
height: 4px !important; /* Update RESIZE_HANDLE_HEIGHT if this changes */
|
2020-06-10 03:48:31 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* This is positioned directly below the 'show more' button. */
|
2021-02-13 08:53:25 +01:00
|
|
|
position: relative !important;
|
2022-07-27 15:39:29 +02:00
|
|
|
bottom: 0 !important; /* override from library */
|
2020-06-25 18:07:23 +02:00
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
&:hover,
|
|
|
|
&.mx_RoomSublist_hasMenuOpen {
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_resizerHandle {
|
2020-06-26 00:03:56 +02:00
|
|
|
opacity: 0.8;
|
2021-08-12 11:27:12 +02:00
|
|
|
background-color: $primary-content;
|
2020-06-26 00:03:56 +02:00
|
|
|
}
|
2020-06-05 16:48:23 +02:00
|
|
|
}
|
2020-06-05 05:21:04 +02:00
|
|
|
}
|
2020-06-10 05:12:49 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_showNButton {
|
2020-07-09 21:07:13 +02:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: $font-13px;
|
|
|
|
line-height: $font-18px;
|
2021-10-16 18:27:43 +02:00
|
|
|
color: $secondary-content;
|
2020-07-09 21:07:13 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* Update the render() function for RoomSublist if these change */
|
|
|
|
/* Update the ListLayout class for minVisibleTiles if these change. */
|
2020-07-09 21:07:13 +02:00
|
|
|
height: 24px;
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* We create a flexbox to cheat at alignment */
|
2020-07-09 21:07:13 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_showNButtonChevron {
|
2020-07-09 21:07:13 +02:00
|
|
|
position: relative;
|
2020-07-30 17:41:00 +02:00
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2020-07-09 21:07:13 +02:00
|
|
|
margin-left: 12px;
|
2020-07-30 17:41:00 +02:00
|
|
|
margin-right: 16px;
|
2020-07-09 21:07:13 +02:00
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2021-10-16 18:31:18 +02:00
|
|
|
background: $tertiary-content;
|
2022-07-27 15:39:29 +02:00
|
|
|
left: -1px; /* adjust for image position */
|
2020-07-09 21:07:13 +02:00
|
|
|
}
|
|
|
|
|
2020-07-31 18:48:30 +02:00
|
|
|
.mx_RoomSublist_showMoreButtonChevron,
|
|
|
|
.mx_RoomSublist_showLessButtonChevron {
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
2020-07-09 21:07:13 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_showLessButtonChevron {
|
2020-07-30 17:41:00 +02:00
|
|
|
transform: rotate(180deg);
|
2020-07-09 21:07:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
&.mx_RoomSublist_hasMenuOpen,
|
|
|
|
&:not(.mx_RoomSublist_minimized) > .mx_RoomSublist_headerContainer:focus-within,
|
|
|
|
&:not(.mx_RoomSublist_minimized) > .mx_RoomSublist_headerContainer:hover {
|
|
|
|
.mx_RoomSublist_menuButton {
|
2020-06-25 18:54:51 +02:00
|
|
|
visibility: visible;
|
|
|
|
width: 24px;
|
|
|
|
margin-left: 8px;
|
2020-06-16 03:47:25 +02:00
|
|
|
}
|
2020-06-11 22:39:28 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
&.mx_RoomSublist_minimized {
|
|
|
|
.mx_RoomSublist_headerContainer {
|
2020-06-11 22:39:28 +02:00
|
|
|
height: auto;
|
|
|
|
flex-direction: column;
|
|
|
|
position: relative;
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_badgeContainer {
|
2020-06-22 20:51:53 +02:00
|
|
|
order: 0;
|
2020-06-11 22:39:28 +02:00
|
|
|
align-self: flex-end;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_stickable {
|
2020-06-22 20:51:53 +02:00
|
|
|
order: 1;
|
2020-06-11 22:39:28 +02:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_auxButton {
|
2020-06-22 20:51:53 +02:00
|
|
|
order: 2;
|
2020-06-11 22:39:28 +02:00
|
|
|
visibility: visible;
|
2022-07-27 15:39:29 +02:00
|
|
|
width: 32px !important; /* !important to override hover styles */
|
|
|
|
height: 32px !important; /* !important to override hover styles */
|
|
|
|
margin-left: 0 !important; /* !important to override hover styles */
|
2021-11-29 13:52:09 +01:00
|
|
|
background-color: $panel-actions;
|
2020-06-11 22:39:28 +02:00
|
|
|
margin-top: 8px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 8px;
|
|
|
|
left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_resizeBox {
|
2020-06-11 22:39:28 +02:00
|
|
|
align-items: center;
|
2020-07-09 21:07:13 +02:00
|
|
|
}
|
2020-06-11 22:39:28 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_showNButton {
|
2020-07-09 21:07:13 +02:00
|
|
|
flex-direction: column;
|
2020-06-11 22:41:35 +02:00
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_showNButtonChevron {
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-right: 12px; /* to center */
|
2020-06-11 22:39:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_menuButton {
|
2020-06-25 18:54:51 +02:00
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
&.mx_RoomSublist_hasMenuOpen,
|
|
|
|
& > .mx_RoomSublist_headerContainer:hover {
|
|
|
|
.mx_RoomSublist_menuButton {
|
2020-06-10 05:12:49 +02:00
|
|
|
visibility: visible;
|
2020-06-11 22:39:28 +02:00
|
|
|
position: absolute;
|
2022-07-27 15:39:29 +02:00
|
|
|
bottom: 48px; /* align to middle of name, 40px for aux button (with padding) and 8px for alignment */
|
2020-06-11 22:39:28 +02:00
|
|
|
right: 0;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
border-radius: 0;
|
2022-07-27 15:39:29 +02:00
|
|
|
z-index: 1; /* occlude the list name */
|
2020-06-11 22:39:28 +02:00
|
|
|
|
2022-07-27 15:39:29 +02:00
|
|
|
/* This is the same color as the left panel background because it needs */
|
|
|
|
/* to occlude the sublist title */
|
2020-07-17 23:59:35 +02:00
|
|
|
background-color: $roomlist-bg-color;
|
2020-06-11 22:39:28 +02:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
&.mx_RoomSublist_headerContainer:not(.mx_RoomSublist_headerContainer_withAux) {
|
|
|
|
.mx_RoomSublist_menuButton {
|
2022-07-27 15:39:29 +02:00
|
|
|
bottom: 8px; /* align to the middle of name, 40px less than the `bottom` above. */
|
2020-06-11 22:39:28 +02:00
|
|
|
}
|
2020-06-10 05:12:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_contextMenu {
|
2020-06-10 05:12:49 +02:00
|
|
|
padding: 20px 16px;
|
|
|
|
width: 250px;
|
|
|
|
|
|
|
|
hr {
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-bottom: 16px;
|
2022-07-27 15:39:29 +02:00
|
|
|
margin-right: 16px; /* additional 16px */
|
2021-10-16 18:30:04 +02:00
|
|
|
border: 1px solid $primary-content;
|
2020-06-25 23:17:19 +02:00
|
|
|
opacity: 0.1;
|
2020-06-10 05:12:49 +02:00
|
|
|
}
|
|
|
|
|
2020-07-17 23:46:46 +02:00
|
|
|
.mx_RoomSublist_contextMenu_title {
|
2020-06-10 05:12:49 +02:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-20px;
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2020-06-12 06:04:10 +02:00
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
.mx_StyledRadioButton,
|
|
|
|
.mx_Checkbox {
|
2020-06-12 06:04:10 +02:00
|
|
|
margin-top: 8px;
|
|
|
|
}
|
2020-06-04 18:07:41 +02:00
|
|
|
}
|
2020-07-01 02:50:31 +02:00
|
|
|
|
2020-11-02 18:22:45 +01:00
|
|
|
.mx_RoomSublist_skeletonUI {
|
|
|
|
position: relative;
|
|
|
|
margin-left: 4px;
|
2021-10-11 11:50:33 +02:00
|
|
|
height: 240px;
|
2020-11-02 18:22:45 +01:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
background: $roomsublist-skeleton-ui-bg;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2020-11-02 18:22:45 +01:00
|
|
|
position: absolute;
|
|
|
|
mask-repeat: repeat-y;
|
|
|
|
mask-size: auto 48px;
|
2022-12-12 12:24:14 +01:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/skeleton-ui.svg");
|
2020-11-02 18:22:45 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-12 11:30:36 +02:00
|
|
|
|
|
|
|
.mx_RoomSublist_minimized .mx_RoomSublist_skeletonUI {
|
2022-07-27 15:39:29 +02:00
|
|
|
width: 32px; /* cut off the horizontal lines in the svg */
|
|
|
|
margin-left: 10px; /* align with sublist + buttons */
|
2021-10-12 11:30:36 +02:00
|
|
|
}
|