2021-03-02 15:11:38 +01:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-03-02 15:11:38 +01:00
|
|
|
Copyright 2021 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.
|
2021-03-02 15:11:38 +01:00
|
|
|
*/
|
|
|
|
|
2021-04-26 16:48:33 +02:00
|
|
|
.mx_SpaceRoomView_landing {
|
|
|
|
.mx_AccessibleButton_kind_link {
|
2021-07-23 15:34:29 +02:00
|
|
|
font-size: inherit;
|
2021-04-26 16:48:33 +02:00
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2021-04-26 16:48:33 +02:00
|
|
|
.mx_SearchBox {
|
|
|
|
margin: 24px 0 16px;
|
|
|
|
}
|
2021-03-19 12:36:36 +01:00
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_noResults {
|
2021-04-26 16:48:33 +02:00
|
|
|
text-align: center;
|
2021-03-19 12:36:36 +01:00
|
|
|
|
2021-04-26 16:48:33 +02:00
|
|
|
> div {
|
2021-03-19 12:36:36 +01:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 11:30:35 +02:00
|
|
|
color: $secondary-content;
|
2021-04-26 16:48:33 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_listHeader {
|
2022-03-18 22:26:35 +01:00
|
|
|
display: flex;
|
|
|
|
flex-flow: wrap;
|
2022-03-14 10:07:36 +01:00
|
|
|
justify-content: space-between;
|
2021-04-26 16:48:33 +02:00
|
|
|
align-items: center;
|
2022-03-18 22:26:35 +01:00
|
|
|
gap: 12px;
|
2021-04-26 16:48:33 +02:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2021-08-11 17:47:14 +02:00
|
|
|
margin-bottom: 12px;
|
|
|
|
|
2022-03-14 10:07:36 +01:00
|
|
|
.mx_SpaceHierarchy_listHeader_header {
|
|
|
|
grid-column-start: 1;
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-08-11 17:47:14 +02:00
|
|
|
margin: 0;
|
|
|
|
}
|
2021-04-26 16:48:33 +02:00
|
|
|
|
2022-03-14 10:07:36 +01:00
|
|
|
.mx_SpaceHierarchy_listHeader_buttons {
|
|
|
|
grid-column-start: 2;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: wrap;
|
2022-03-18 22:26:35 +01:00
|
|
|
gap: 12px;
|
|
|
|
min-height: 32px;
|
2021-04-26 16:48:33 +02:00
|
|
|
|
2022-03-14 10:07:36 +01:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
padding: 4px 12px;
|
|
|
|
font-weight: normal;
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
2021-04-26 16:48:33 +02:00
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2021-05-06 14:05:58 +02:00
|
|
|
.mx_AccessibleButton_kind_danger_outline,
|
|
|
|
.mx_AccessibleButton_kind_primary_outline {
|
2022-07-27 15:39:29 +02:00
|
|
|
padding: 3px 12px; /* to account for the 1px border */
|
2021-05-06 14:05:58 +02:00
|
|
|
}
|
2021-04-26 16:48:33 +02:00
|
|
|
}
|
2021-03-19 12:36:36 +01:00
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_error {
|
2021-04-26 16:48:33 +02:00
|
|
|
position: relative;
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $alert;
|
2021-04-26 16:48:33 +02:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-18px;
|
|
|
|
margin: 20px auto 12px;
|
|
|
|
padding-left: 24px;
|
|
|
|
width: max-content;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
left: 0;
|
2024-11-07 12:39:18 +01:00
|
|
|
background-image: url("@vector-im/compound-design-tokens/icons/error.svg");
|
2022-02-01 05:51:58 +01:00
|
|
|
background-size: cover;
|
|
|
|
background-repeat: no-repeat;
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_roomCount {
|
2021-03-02 15:11:38 +01:00
|
|
|
> h3 {
|
|
|
|
display: inline;
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2021-03-02 15:11:38 +01:00
|
|
|
font-size: $font-18px;
|
|
|
|
line-height: $font-22px;
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
margin-left: 8px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 11:30:35 +02:00
|
|
|
color: $secondary-content;
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_subspace_toggle {
|
2021-03-19 12:36:36 +01:00
|
|
|
position: absolute;
|
|
|
|
left: -1px;
|
|
|
|
top: 10px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
border-radius: 4px;
|
2021-08-12 11:10:47 +02:00
|
|
|
background-color: $background;
|
2021-03-19 12:36:36 +01:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2021-03-19 12:36:36 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-08-12 11:53:54 +02:00
|
|
|
background-color: $tertiary-content;
|
2021-03-19 12:36:36 +01:00
|
|
|
mask-size: 16px;
|
|
|
|
transform: rotate(270deg);
|
2024-11-11 18:27:22 +01:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/chevron-down.svg");
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
&.mx_SpaceHierarchy_subspace_toggle_shown::before {
|
2021-03-19 12:36:36 +01:00
|
|
|
transform: rotate(0deg);
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_subspace_children {
|
2021-03-19 12:36:36 +01:00
|
|
|
position: relative;
|
|
|
|
padding-left: 12px;
|
|
|
|
}
|
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_SpaceHierarchy_list {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
li.mx_SpaceHierarchy_roomTileWrapper {
|
|
|
|
list-style: none;
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_SpaceHierarchy_roomTile {
|
|
|
|
position: relative;
|
|
|
|
padding: 8px 16px;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 6px 12px;
|
|
|
|
|
|
|
|
.mx_SpaceHierarchy_roomTile_item {
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-03-24 09:50:02 +01:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-18px;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 20px auto;
|
|
|
|
gap: 6px 8px;
|
|
|
|
align-items: center;
|
2022-07-27 15:39:29 +02:00
|
|
|
flex: 1; /* wrap action buttons */
|
2022-03-24 09:50:02 +01:00
|
|
|
|
|
|
|
.mx_SpaceHierarchy_roomTile_avatar {
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column: 1;
|
2021-03-25 15:09:56 +01:00
|
|
|
}
|
2021-10-25 12:40:06 +02:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_SpaceHierarchy_roomTile_name {
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column: 2;
|
|
|
|
|
|
|
|
.mx_InfoTooltip,
|
|
|
|
.mx_SpaceHierarchy_roomTile_joined {
|
|
|
|
margin-left: 12px;
|
|
|
|
color: $tertiary-content;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
|
|
|
|
.mx_InfoTooltip_icon {
|
|
|
|
margin-right: 4px;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: text-top;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_InfoTooltip {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceHierarchy_roomTile_joined {
|
|
|
|
display: inline;
|
|
|
|
position: relative;
|
|
|
|
padding-left: 16px;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-03-24 09:50:02 +01:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
top: -2px;
|
|
|
|
left: -4px;
|
|
|
|
position: absolute;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $accent;
|
2024-10-15 12:19:06 +02:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
|
2022-03-24 09:50:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceHierarchy_roomTile_info {
|
|
|
|
grid-row: 2;
|
|
|
|
grid-column: 2;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2022-03-24 09:50:02 +01:00
|
|
|
font-weight: initial;
|
|
|
|
line-height: $font-18px;
|
|
|
|
color: $secondary-content;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2021-10-25 12:40:06 +02:00
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_SpaceHierarchy_actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
column-gap: 12px;
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
line-height: $font-24px;
|
|
|
|
padding: 4px 16px;
|
|
|
|
display: inline-block;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_AccessibleButton_kind_danger_outline,
|
|
|
|
.mx_AccessibleButton_kind_primary_outline {
|
2022-07-27 15:39:29 +02:00
|
|
|
padding: 3px 16px; /* to account for the 1px border */
|
2022-03-24 09:50:02 +01:00
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_Checkbox {
|
|
|
|
display: inline-flex;
|
2021-03-19 12:36:36 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
label {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-06 14:05:58 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus-within {
|
2022-03-24 09:50:02 +01:00
|
|
|
background-color: $spacePanel-bg-color;
|
2021-03-02 15:11:38 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
2021-03-19 12:36:36 +01:00
|
|
|
|
2022-03-24 09:50:02 +01:00
|
|
|
&.mx_SpaceHierarchy_joining {
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
visibility: visible;
|
|
|
|
padding: 4px 18px;
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
}
|
2021-08-09 15:01:34 +02:00
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_roomTile,
|
|
|
|
.mx_SpaceHierarchy_subspace_children {
|
2021-03-19 12:36:36 +01:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2022-03-23 00:07:37 +01:00
|
|
|
background-color: $spacePanel-bg-color;
|
2021-03-19 12:36:36 +01:00
|
|
|
width: 1px;
|
|
|
|
height: 100%;
|
|
|
|
left: 6px;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_actions {
|
|
|
|
.mx_SpaceHierarchy_actionsText {
|
2021-03-02 15:11:38 +01:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
2021-08-12 11:30:35 +02:00
|
|
|
color: $secondary-content;
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|
|
|
|
}
|
2021-03-19 12:36:36 +01:00
|
|
|
|
|
|
|
> hr {
|
|
|
|
border: none;
|
|
|
|
height: 1px;
|
|
|
|
background-color: rgba(141, 151, 165, 0.2);
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
|
2021-07-30 12:01:49 +02:00
|
|
|
.mx_SpaceHierarchy_createRoom {
|
2021-03-19 12:36:36 +01:00
|
|
|
display: block;
|
|
|
|
margin: 16px auto 0;
|
|
|
|
width: max-content;
|
|
|
|
}
|
2021-03-02 15:11:38 +01:00
|
|
|
}
|