2021-03-02 22:11:38 +08:00
|
|
|
/*
|
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2021-04-26 22:48:33 +08:00
|
|
|
.mx_SpaceRoomView_landing {
|
2021-03-02 22:11:38 +08:00
|
|
|
.mx_Dialog_title {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.mx_BaseAvatar {
|
2021-03-19 19:36:36 +08:00
|
|
|
margin-right: 12px;
|
|
|
|
align-self: center;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseAvatar_image {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div {
|
|
|
|
> h1 {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: $font-18px;
|
|
|
|
line-height: $font-22px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div {
|
2021-03-19 19:36:36 +08:00
|
|
|
font-weight: 400;
|
2021-08-12 17:30:35 +08:00
|
|
|
color: $secondary-content;
|
2021-03-02 22:11:38 +08:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-26 22:48:33 +08:00
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
padding: 0;
|
2021-07-23 21:34:29 +08:00
|
|
|
font-size: inherit;
|
2021-04-26 22:48:33 +08:00
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
|
2021-04-26 22:48:33 +08:00
|
|
|
.mx_SearchBox {
|
|
|
|
margin: 24px 0 16px;
|
|
|
|
}
|
2021-03-19 19:36:36 +08:00
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_noResults {
|
2021-04-26 22:48:33 +08:00
|
|
|
text-align: center;
|
2021-03-19 19:36:36 +08:00
|
|
|
|
2021-04-26 22:48:33 +08:00
|
|
|
> div {
|
2021-03-19 19:36:36 +08:00
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 17:30:35 +08:00
|
|
|
color: $secondary-content;
|
2021-04-26 22:48:33 +08:00
|
|
|
}
|
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_listHeader {
|
2021-04-26 22:48:33 +08:00
|
|
|
display: flex;
|
|
|
|
min-height: 32px;
|
|
|
|
align-items: center;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-08-11 23:47:14 +08:00
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
|
|
> h4 {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2021-04-26 22:48:33 +08:00
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
2021-05-06 20:05:58 +08:00
|
|
|
padding: 4px 12px;
|
2021-04-26 22:48:33 +08:00
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
& + .mx_AccessibleButton {
|
|
|
|
margin-left: 16px;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
2021-04-26 22:48:33 +08:00
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
|
2021-05-06 20:05:58 +08:00
|
|
|
.mx_AccessibleButton_kind_danger_outline,
|
|
|
|
.mx_AccessibleButton_kind_primary_outline {
|
|
|
|
padding: 3px 12px; // to account for the 1px border
|
|
|
|
}
|
|
|
|
|
2021-04-26 22:48:33 +08:00
|
|
|
> span {
|
|
|
|
margin-left: auto;
|
2021-03-19 19:36:36 +08:00
|
|
|
}
|
2021-04-26 22:48:33 +08:00
|
|
|
}
|
2021-03-19 19:36:36 +08:00
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_error {
|
2021-04-26 22:48:33 +08:00
|
|
|
position: relative;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
color: $notice-primary-color;
|
|
|
|
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;
|
|
|
|
background-image: url("$(res)/img/element-icons/warning-badge.svg");
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-12 19:03:14 +08:00
|
|
|
.mx_SpaceHierarchy_list {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_roomCount {
|
2021-03-02 22:11:38 +08:00
|
|
|
> h3 {
|
|
|
|
display: inline;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: $font-18px;
|
|
|
|
line-height: $font-22px;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
margin-left: 8px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 17:30:35 +08:00
|
|
|
color: $secondary-content;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_subspace {
|
2021-03-19 19:36:36 +08:00
|
|
|
.mx_BaseAvatar_image {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_subspace_toggle {
|
2021-03-19 19:36:36 +08:00
|
|
|
position: absolute;
|
|
|
|
left: -1px;
|
|
|
|
top: 10px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
border-radius: 4px;
|
2021-08-12 17:10:47 +08:00
|
|
|
background-color: $background;
|
2021-03-19 19:36:36 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-08-12 17:53:54 +08:00
|
|
|
background-color: $tertiary-content;
|
2021-03-19 19:36:36 +08:00
|
|
|
mask-size: 16px;
|
|
|
|
transform: rotate(270deg);
|
|
|
|
mask-image: url('$(res)/img/feather-customised/chevron-down.svg');
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
&.mx_SpaceHierarchy_subspace_toggle_shown::before {
|
2021-03-19 19:36:36 +08:00
|
|
|
transform: rotate(0deg);
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_subspace_children {
|
2021-03-19 19:36:36 +08:00
|
|
|
position: relative;
|
|
|
|
padding-left: 12px;
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_roomTile {
|
2021-03-19 19:36:36 +08:00
|
|
|
position: relative;
|
2021-03-25 22:09:56 +08:00
|
|
|
padding: 8px 16px;
|
2021-03-02 22:11:38 +08:00
|
|
|
border-radius: 8px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
2021-03-19 19:36:36 +08:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 20px auto max-content;
|
|
|
|
grid-column-gap: 8px;
|
2021-03-25 22:09:56 +08:00
|
|
|
grid-row-gap: 6px;
|
2021-03-19 19:36:36 +08:00
|
|
|
align-items: center;
|
2021-03-02 22:11:38 +08:00
|
|
|
|
|
|
|
.mx_BaseAvatar {
|
2021-03-19 19:36:36 +08:00
|
|
|
grid-row: 1;
|
|
|
|
grid-column: 1;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_roomTile_name {
|
2021-03-19 19:36:36 +08:00
|
|
|
font-weight: $font-semi-bold;
|
2021-03-02 22:11:38 +08:00
|
|
|
font-size: $font-15px;
|
2021-03-19 19:36:36 +08:00
|
|
|
line-height: $font-18px;
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column: 2;
|
|
|
|
|
|
|
|
.mx_InfoTooltip {
|
|
|
|
display: inline;
|
|
|
|
margin-left: 12px;
|
2021-08-12 17:53:54 +08:00
|
|
|
color: $tertiary-content;
|
2021-03-19 19:36:36 +08:00
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
|
|
|
|
.mx_InfoTooltip_icon {
|
|
|
|
margin-right: 4px;
|
2021-03-25 22:09:56 +08:00
|
|
|
position: relative;
|
|
|
|
vertical-align: text-top;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
2021-03-19 19:36:36 +08:00
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_roomTile_info {
|
2021-03-26 21:46:01 +08:00
|
|
|
font-size: $font-14px;
|
2021-03-25 22:09:56 +08:00
|
|
|
line-height: $font-18px;
|
2021-08-12 17:30:35 +08:00
|
|
|
color: $secondary-content;
|
2021-03-19 19:36:36 +08:00
|
|
|
grid-row: 2;
|
|
|
|
grid-column: 1/3;
|
2021-03-25 22:09:56 +08:00
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
overflow: hidden;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_actions {
|
2021-03-02 22:11:38 +08:00
|
|
|
text-align: right;
|
2021-03-19 19:36:36 +08:00
|
|
|
margin-left: 20px;
|
|
|
|
grid-column: 3;
|
|
|
|
grid-row: 1/3;
|
2021-03-02 22:11:38 +08:00
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
2021-05-06 20:05:58 +08:00
|
|
|
line-height: $font-24px;
|
|
|
|
padding: 4px 16px;
|
2021-03-25 22:09:56 +08:00
|
|
|
display: inline-block;
|
|
|
|
visibility: hidden;
|
2021-03-19 19:36:36 +08:00
|
|
|
}
|
|
|
|
|
2021-05-06 20:05:58 +08:00
|
|
|
.mx_AccessibleButton_kind_danger_outline,
|
|
|
|
.mx_AccessibleButton_kind_primary_outline {
|
|
|
|
padding: 3px 16px; // to account for the 1px border
|
|
|
|
}
|
|
|
|
|
2021-03-19 19:36:36 +08:00
|
|
|
.mx_Checkbox {
|
|
|
|
display: inline-flex;
|
2021-03-02 22:11:38 +08:00
|
|
|
vertical-align: middle;
|
2021-03-19 19:36:36 +08:00
|
|
|
margin-left: 12px;
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
|
2021-08-06 21:12:55 +08:00
|
|
|
&:hover, &:focus-within {
|
2021-03-19 19:36:36 +08:00
|
|
|
background-color: $groupFilterPanel-bg-color;
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
2021-03-25 22:09:56 +08:00
|
|
|
visibility: visible;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-12 19:03:14 +08:00
|
|
|
li.mx_SpaceHierarchy_roomTileWrapper {
|
2021-08-09 21:01:34 +08:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_roomTile,
|
|
|
|
.mx_SpaceHierarchy_subspace_children {
|
2021-03-19 19:36:36 +08:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
background-color: $groupFilterPanel-bg-color;
|
|
|
|
width: 1px;
|
|
|
|
height: 100%;
|
|
|
|
left: 6px;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_actions {
|
|
|
|
.mx_SpaceHierarchy_actionsText {
|
2021-03-02 22:11:38 +08:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
2021-08-12 17:30:35 +08:00
|
|
|
color: $secondary-content;
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
2021-03-19 19:36:36 +08:00
|
|
|
|
|
|
|
> hr {
|
|
|
|
border: none;
|
|
|
|
height: 1px;
|
|
|
|
background-color: rgba(141, 151, 165, 0.2);
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
|
2021-07-30 18:01:49 +08:00
|
|
|
.mx_SpaceHierarchy_createRoom {
|
2021-03-19 19:36:36 +08:00
|
|
|
display: block;
|
|
|
|
margin: 16px auto 0;
|
|
|
|
width: max-content;
|
|
|
|
}
|
2021-03-02 22:11:38 +08:00
|
|
|
}
|