2021-02-26 10:23:09 +00:00
|
|
|
/*
|
2024-09-09 13:57:16 +00:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-02-26 10:23:09 +00:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 13:57:16 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-02-26 10:23:09 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_SpacePanel {
|
2023-06-06 11:09:04 +00:00
|
|
|
--activeBackground-color: $panel-actions;
|
|
|
|
--activeBorder-color: $primary-content;
|
|
|
|
--activeBorder-transparent-gap: 1px;
|
2024-02-21 15:18:58 +00:00
|
|
|
--gutterSize: 14px;
|
2023-06-06 11:09:04 +00:00
|
|
|
--height-nested: 24px;
|
|
|
|
--height-topLevel: 32px;
|
|
|
|
|
2022-03-22 23:07:37 +00:00
|
|
|
background-color: $spacePanel-bg-color;
|
2021-02-26 10:23:09 +00:00
|
|
|
flex: 0 0 auto;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2021-06-24 16:51:11 +00:00
|
|
|
position: relative;
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Fix for the blurred avatar-background */
|
2021-08-23 17:26:57 +00:00
|
|
|
z-index: 1;
|
2021-02-26 10:23:09 +00:00
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Create another flexbox so the Panel fills the container */
|
2021-02-26 10:23:09 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2024-02-21 15:18:58 +00:00
|
|
|
&.collapsed {
|
|
|
|
width: 68px;
|
|
|
|
}
|
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
.mx_SpacePanel_toggleCollapse {
|
2021-12-13 14:59:50 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: $tertiary-content;
|
2022-07-27 13:39:29 +00:00
|
|
|
top: 19px; /* v-align with avatar */
|
2021-12-13 14:59:50 +00:00
|
|
|
right: -8px;
|
2021-11-29 20:10:34 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2021-12-13 14:59:50 +00:00
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
2021-11-29 20:10:34 +00:00
|
|
|
mask-position: center;
|
2021-12-13 14:59:50 +00:00
|
|
|
mask-size: contain;
|
2021-11-29 20:10:34 +00:00
|
|
|
mask-repeat: no-repeat;
|
2021-12-13 14:59:50 +00:00
|
|
|
background-color: $background;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
2021-12-07 09:32:00 +00:00
|
|
|
transform: rotate(270deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.expanded) {
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&::before {
|
2021-12-13 14:59:50 +00:00
|
|
|
mask-position: center 1px;
|
2021-12-07 09:32:00 +00:00
|
|
|
}
|
2021-11-29 20:10:34 +00:00
|
|
|
}
|
2021-02-26 10:23:09 +00:00
|
|
|
|
2021-12-13 14:59:50 +00:00
|
|
|
&.expanded::before {
|
|
|
|
transform: rotate(90deg);
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-07 09:32:00 +00:00
|
|
|
&:hover .mx_SpacePanel_toggleCollapse {
|
2021-12-21 14:24:06 +00:00
|
|
|
opacity: 1;
|
2021-12-07 09:32:00 +00:00
|
|
|
}
|
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceButton_toggleCollapse {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-06-03 07:32:36 +00:00
|
|
|
.mx_SpaceItem_dragging {
|
|
|
|
.mx_SpaceButton_toggleCollapse {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-15 11:59:46 +00:00
|
|
|
.mx_SpaceItem {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-flow: wrap;
|
2021-05-04 13:14:06 +00:00
|
|
|
|
|
|
|
&.mx_SpaceItem_narrow {
|
|
|
|
align-self: baseline;
|
|
|
|
}
|
2021-03-15 11:59:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceItem.collapsed {
|
2021-02-26 10:23:09 +00:00
|
|
|
& > .mx_SpaceButton > .mx_SpaceButton_toggleCollapse {
|
2023-03-17 13:11:42 +00:00
|
|
|
padding: 0 10px;
|
|
|
|
margin: 0 -10px;
|
2021-02-26 10:23:09 +00:00
|
|
|
transform: rotate(-90deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
& > .mx_SpaceTreeLevel {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-10 15:45:56 +00:00
|
|
|
.mx_SpaceItem_new {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
.mx_SpaceItem:not(.hasSubSpaces) > .mx_SpaceButton {
|
2023-06-06 11:09:04 +00:00
|
|
|
margin-left: var(--gutterSize);
|
2021-03-15 11:59:46 +00:00
|
|
|
min-width: 40px;
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceButton {
|
|
|
|
border-radius: 8px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-03-15 11:59:46 +00:00
|
|
|
padding: 4px 4px 4px 0;
|
|
|
|
width: 100%;
|
2021-09-09 10:40:43 +00:00
|
|
|
cursor: pointer;
|
2021-03-01 17:02:02 +00:00
|
|
|
|
|
|
|
&.mx_SpaceButton_active {
|
|
|
|
&:not(.mx_SpaceButton_narrow) .mx_SpaceButton_selectionWrapper {
|
2023-06-06 11:09:04 +00:00
|
|
|
background-color: var(--activeBackground-color);
|
2021-03-01 17:02:02 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 17:37:15 +00:00
|
|
|
&.mx_SpaceButton_narrow .mx_SpaceButton_selectionWrapper {
|
2023-06-06 11:09:04 +00:00
|
|
|
padding: var(--activeBorder-transparent-gap);
|
|
|
|
border: 3px var(--activeBorder-color) solid;
|
2021-03-01 17:02:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceButton_selectionWrapper {
|
2021-03-15 11:59:46 +00:00
|
|
|
position: relative;
|
2021-03-01 17:02:02 +00:00
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
align-items: center;
|
2021-03-12 17:37:15 +00:00
|
|
|
border-radius: 12px;
|
|
|
|
padding: 4px;
|
2021-11-09 10:25:57 +00:00
|
|
|
width: calc(100% - 32px);
|
2022-04-30 15:36:03 +00:00
|
|
|
min-width: 0;
|
2021-03-01 17:02:02 +00:00
|
|
|
}
|
2021-02-26 10:23:09 +00:00
|
|
|
|
2024-02-21 15:18:58 +00:00
|
|
|
&.mx_SpaceButton_narrow .mx_SpaceButton_selectionWrapper {
|
|
|
|
flex: initial;
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
.mx_SpaceButton_name {
|
|
|
|
flex: 1;
|
|
|
|
margin-left: 8px;
|
|
|
|
white-space: nowrap;
|
|
|
|
display: block;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2023-06-29 10:30:25 +00:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceButton_toggleCollapse {
|
2023-06-06 11:09:04 +00:00
|
|
|
width: var(--gutterSize);
|
2023-03-17 13:11:42 +00:00
|
|
|
padding: 10px 0;
|
2023-06-06 11:09:04 +00:00
|
|
|
min-width: var(--gutterSize);
|
2021-02-26 10:23:09 +00:00
|
|
|
height: 20px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 20px;
|
|
|
|
mask-repeat: no-repeat;
|
2021-10-16 16:31:18 +00:00
|
|
|
background-color: $tertiary-content;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
|
2021-03-01 17:02:02 +00:00
|
|
|
.mx_SpaceButton_icon {
|
2023-06-06 11:09:04 +00:00
|
|
|
width: var(--height-topLevel);
|
|
|
|
min-width: var(--height-topLevel);
|
|
|
|
height: var(--height-topLevel);
|
2021-02-26 10:23:09 +00:00
|
|
|
border-radius: 8px;
|
2021-03-01 17:02:02 +00:00
|
|
|
position: relative;
|
2021-02-26 10:23:09 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
2022-12-12 11:24:14 +00:00
|
|
|
content: "";
|
2023-06-06 11:09:04 +00:00
|
|
|
width: var(--height-topLevel);
|
|
|
|
height: var(--height-topLevel);
|
2021-02-26 10:23:09 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-11 13:07:41 +00:00
|
|
|
&.mx_SpaceButton_home,
|
|
|
|
&.mx_SpaceButton_favourites,
|
|
|
|
&.mx_SpaceButton_people,
|
2024-03-25 18:35:31 +00:00
|
|
|
&.mx_SpaceButton_orphans,
|
|
|
|
&.mx_SpaceButton_videoRooms {
|
2021-11-11 13:07:41 +00:00
|
|
|
.mx_SpaceButton_icon {
|
2021-11-30 18:08:46 +00:00
|
|
|
background-color: $panel-actions;
|
2021-11-11 13:07:41 +00:00
|
|
|
|
|
|
|
&::before {
|
2021-11-30 18:08:46 +00:00
|
|
|
background-color: $secondary-content;
|
2021-11-11 13:07:41 +00:00
|
|
|
}
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-11 13:07:41 +00:00
|
|
|
&.mx_SpaceButton_home .mx_SpaceButton_icon::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/home.svg");
|
2021-11-11 13:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_SpaceButton_favourites .mx_SpaceButton_icon::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/favorite.svg");
|
2021-11-11 13:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_SpaceButton_people .mx_SpaceButton_icon::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/members.svg");
|
2021-11-11 13:07:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_SpaceButton_orphans .mx_SpaceButton_icon::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/hash-circle.svg");
|
2021-11-11 13:07:41 +00:00
|
|
|
}
|
|
|
|
|
2024-03-25 18:35:31 +00:00
|
|
|
&.mx_SpaceButton_videoRooms .mx_SpaceButton_icon::before {
|
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-solid.svg");
|
|
|
|
}
|
|
|
|
|
2021-03-01 17:27:09 +00:00
|
|
|
&.mx_SpaceButton_new .mx_SpaceButton_icon {
|
|
|
|
&::before {
|
2021-09-08 14:30:19 +00:00
|
|
|
background-color: $primary-content;
|
2024-10-21 10:36:31 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/plus.svg");
|
2022-12-12 11:24:14 +00:00
|
|
|
transition: all 0.2s ease-in-out; /* TODO transition */
|
2021-03-01 17:27:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-10 15:45:21 +00:00
|
|
|
&.mx_SpaceButton_newCancel .mx_SpaceButton_icon::before {
|
|
|
|
transform: rotate(45deg);
|
2021-03-01 17:27:09 +00:00
|
|
|
}
|
2021-03-01 17:02:02 +00:00
|
|
|
|
2021-03-02 14:34:47 +00:00
|
|
|
.mx_SpaceButton_menuButton {
|
|
|
|
width: 20px;
|
2022-07-27 13:39:29 +00:00
|
|
|
min-width: 20px; /* yay flex */
|
2021-03-02 14:34:47 +00:00
|
|
|
height: 20px;
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
2021-11-09 10:25:57 +00:00
|
|
|
display: none;
|
2022-04-12 15:52:46 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
2021-03-02 14:34:47 +00:00
|
|
|
|
|
|
|
&::before {
|
2021-11-30 18:08:46 +00:00
|
|
|
top: 3px;
|
2021-03-02 14:34:47 +00:00
|
|
|
left: 2px;
|
2022-12-12 11:24:14 +00:00
|
|
|
content: "";
|
2021-03-02 14:34:47 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
2024-10-15 10:19:06 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/overflow-horizontal.svg");
|
2021-08-12 09:27:12 +00:00
|
|
|
background: $primary-content;
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-01 17:06:56 +00:00
|
|
|
}
|
2021-02-26 10:23:09 +00:00
|
|
|
|
2021-11-30 18:08:46 +00:00
|
|
|
.mx_SpaceTreeLevel {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 250px;
|
2022-04-30 15:36:03 +00:00
|
|
|
min-width: 0;
|
2021-11-30 18:08:46 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
|
2022-08-10 15:29:53 +00:00
|
|
|
.mx_SpaceTreeLevel {
|
2024-01-02 18:56:39 +00:00
|
|
|
/* Indent subspaces */
|
2022-08-10 15:29:53 +00:00
|
|
|
padding-left: 16px;
|
|
|
|
}
|
2021-11-30 18:08:46 +00:00
|
|
|
}
|
|
|
|
|
2021-10-19 15:11:53 +00:00
|
|
|
.mx_SpaceButton_avatarWrapper {
|
|
|
|
position: relative;
|
2023-08-24 03:48:35 +00:00
|
|
|
line-height: 0;
|
2021-10-19 15:11:53 +00:00
|
|
|
}
|
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
.mx_SpacePanel_badgeContainer {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Create a flexbox to make aligning dot badges easier */
|
2021-02-26 10:23:09 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-10-19 15:11:53 +00:00
|
|
|
position: absolute;
|
|
|
|
right: -3px;
|
|
|
|
top: -3px;
|
2021-02-26 10:23:09 +00:00
|
|
|
|
|
|
|
.mx_NotificationBadge {
|
2022-07-27 13:39:29 +00:00
|
|
|
margin: 0 2px; /* centering */
|
2021-10-19 15:11:53 +00:00
|
|
|
background-clip: padding-box;
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_NotificationBadge_dot {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* make the smaller dot occupy the same width for centering */
|
2021-10-19 15:11:53 +00:00
|
|
|
margin: 0 -1px 0 0;
|
2022-03-22 23:07:37 +00:00
|
|
|
border: 3px solid $spacePanel-bg-color;
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
2021-05-06 14:58:22 +00:00
|
|
|
|
2021-10-19 15:11:53 +00:00
|
|
|
.mx_NotificationBadge_2char,
|
|
|
|
.mx_NotificationBadge_3char {
|
|
|
|
margin: -5px -5px 0 0;
|
2022-03-22 23:07:37 +00:00
|
|
|
border: 2px solid $spacePanel-bg-color;
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-19 15:11:53 +00:00
|
|
|
.mx_SpaceButton:hover,
|
|
|
|
.mx_SpaceButton:focus-within,
|
|
|
|
.mx_SpaceButton_hasMenuOpen {
|
2021-11-09 10:25:57 +00:00
|
|
|
&:not(.mx_SpaceButton_narrow):not(.mx_SpaceButton_invite) .mx_SpaceButton_menuButton {
|
|
|
|
display: block;
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-12 15:52:46 +00:00
|
|
|
.mx_SpaceItem:not(.mx_SpaceItem_new) {
|
|
|
|
.mx_SpaceButton:hover,
|
|
|
|
.mx_SpaceButton:focus-within,
|
|
|
|
.mx_SpaceButton_hasMenuOpen {
|
|
|
|
&:not(.mx_SpaceButton_narrow):not(.mx_SpaceButton_invite) .mx_SpaceButton_name {
|
|
|
|
max-width: calc(100% - 56px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
/* root space buttons are bigger and not indented */
|
|
|
|
& > .mx_AutoHideScrollbar {
|
2021-12-01 10:51:54 +00:00
|
|
|
flex: 1;
|
2024-02-21 15:18:58 +00:00
|
|
|
padding: 0 0 16px 0;
|
|
|
|
scrollbar-gutter: stable;
|
2021-12-01 10:51:54 +00:00
|
|
|
|
2021-02-26 10:23:09 +00:00
|
|
|
& > .mx_SpaceButton {
|
2023-06-06 11:09:04 +00:00
|
|
|
height: var(--height-topLevel);
|
2021-02-26 10:23:09 +00:00
|
|
|
|
|
|
|
&.mx_SpaceButton_active::before {
|
2023-06-06 11:09:04 +00:00
|
|
|
height: var(--height-topLevel);
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& > ul {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2021-12-01 10:51:54 +00:00
|
|
|
|
|
|
|
&.mx_IndicatorScrollbar_topOverflow {
|
2024-02-20 15:28:46 +00:00
|
|
|
mask-image: linear-gradient(to bottom, transparent, black 16px);
|
2021-12-01 10:51:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_IndicatorScrollbar_bottomOverflow {
|
2024-02-20 15:28:46 +00:00
|
|
|
mask-image: linear-gradient(
|
|
|
|
to top,
|
|
|
|
transparent,
|
|
|
|
rgba(255, 255, 255, 30%) 4px,
|
|
|
|
rgba(255, 255, 255, 55%) 8px,
|
|
|
|
rgba(255, 255, 255, 75%) 12px,
|
|
|
|
black 16px
|
|
|
|
);
|
2021-12-01 10:51:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_IndicatorScrollbar_topOverflow.mx_IndicatorScrollbar_bottomOverflow {
|
2024-02-20 15:28:46 +00:00
|
|
|
/* This stacks two gradients on top of one another, which lets us
|
|
|
|
have a fixed pixel offset from both top and bottom for the colour stops.
|
|
|
|
Note the top fade is much smaller because the spaces start close to the top,
|
|
|
|
so otherwise a large gradient suddenly appears when you scroll down.
|
|
|
|
*/
|
|
|
|
mask-image: linear-gradient(to bottom, transparent, black 16px),
|
|
|
|
linear-gradient(
|
|
|
|
to top,
|
|
|
|
transparent,
|
|
|
|
rgba(255, 255, 255, 30%) 4px,
|
|
|
|
rgba(255, 255, 255, 55%) 8px,
|
|
|
|
rgba(255, 255, 255, 75%) 12px,
|
|
|
|
black 16px
|
|
|
|
);
|
|
|
|
mask-position:
|
|
|
|
0% 0%,
|
|
|
|
0% 100%;
|
|
|
|
mask-size:
|
|
|
|
calc(100% - 10px) 50%,
|
|
|
|
calc(100% - 10px) 50%;
|
|
|
|
mask-repeat: no-repeat;
|
2021-12-01 10:51:54 +00:00
|
|
|
}
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
2021-12-02 15:44:01 +00:00
|
|
|
|
|
|
|
.mx_UserMenu {
|
2024-02-20 15:28:46 +00:00
|
|
|
padding-bottom: 12px;
|
2023-07-12 17:46:49 +00:00
|
|
|
border-bottom: 1px solid $separator;
|
2024-02-27 19:50:44 +00:00
|
|
|
margin: 12px 14px 4px 18px;
|
|
|
|
width: min-content;
|
2023-07-05 22:00:03 +00:00
|
|
|
max-width: 226px;
|
2024-02-27 19:50:44 +00:00
|
|
|
|
|
|
|
/* Display the container and img here as block elements so they don't take
|
|
|
|
* up extra vertical space.
|
|
|
|
*/
|
|
|
|
.mx_UserMenu_userAvatar_BaseAvatar {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-12-02 15:44:01 +00:00
|
|
|
}
|
2021-02-26 10:23:09 +00:00
|
|
|
}
|
2021-03-02 14:34:47 +00:00
|
|
|
|
|
|
|
.mx_SpacePanel_contextMenu {
|
2022-08-17 15:13:04 +00:00
|
|
|
max-width: 360px;
|
|
|
|
|
2021-03-02 14:34:47 +00:00
|
|
|
.mx_SpacePanel_contextMenu_header {
|
|
|
|
margin: 12px 16px 12px;
|
2023-06-29 10:30:25 +00:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-03-02 14:34:47 +00:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-18px;
|
2022-08-17 15:13:04 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
2022-01-18 15:29:01 +00:00
|
|
|
.mx_SpacePanel_iconHome::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/home.svg");
|
2022-01-18 15:29:01 +00:00
|
|
|
}
|
|
|
|
|
2021-11-30 18:08:46 +00:00
|
|
|
.mx_SpacePanel_iconInvite::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/invite.svg");
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpacePanel_iconSettings::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/settings.svg");
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpacePanel_iconLeave::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/leave.svg");
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpacePanel_iconMembers::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/members.svg");
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpacePanel_iconPlus::before {
|
2024-10-21 10:36:31 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/plus.svg");
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpacePanel_iconExplore::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/roomlist/hash-search.svg");
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
2021-07-28 18:33:07 +00:00
|
|
|
|
2021-12-17 09:26:32 +00:00
|
|
|
.mx_SpacePanel_iconPreferences::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/element-icons/settings/preference.svg");
|
2021-12-17 09:26:32 +00:00
|
|
|
}
|
|
|
|
|
2021-07-28 18:33:07 +00:00
|
|
|
.mx_SpacePanel_noIcon {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
& + .mx_IconizedContextMenu_label {
|
2022-07-27 13:39:29 +00:00
|
|
|
padding-left: 5px !important; /* override default iconized label style to align with header */
|
2021-07-28 18:33:07 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-30 18:08:46 +00:00
|
|
|
|
|
|
|
.mx_SpacePanel_contextMenu_separatorLabel {
|
|
|
|
color: $tertiary-content;
|
|
|
|
font-size: $font-10px;
|
|
|
|
line-height: $font-12px;
|
2023-06-29 10:30:25 +00:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-11-30 18:08:46 +00:00
|
|
|
}
|
2021-03-02 14:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpacePanel_sharePublicSpace {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-05-15 09:44:17 +00:00
|
|
|
|
|
|
|
.mx_SpacePanel_Tooltip_KeyboardShortcut {
|
|
|
|
kbd {
|
|
|
|
font-family: inherit;
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
|
|
|
}
|