2021-03-02 13:32:24 +00: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_AddExistingToSpaceDialog_wrapper {
|
|
|
|
.mx_Dialog {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-26 11:41:04 +00:00
|
|
|
.mx_AddExistingToSpace {
|
|
|
|
.mx_SearchBox {
|
|
|
|
// To match the space around the title
|
|
|
|
margin: 0 0 15px 0;
|
|
|
|
flex-grow: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_content {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_noResults {
|
|
|
|
display: block;
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_section {
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> h3 {
|
|
|
|
margin: 0;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
font-size: $font-12px;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
line-height: $font-15px;
|
|
|
|
}
|
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
margin-top: 8px;
|
|
|
|
padding: 0;
|
2021-05-05 16:53:31 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-13 08:46:45 +00:00
|
|
|
|
|
|
|
.mx_AddExistingToSpace_footer {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
flex-grow: 1;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
|
|
|
|
.mx_ProgressBar {
|
|
|
|
height: 8px;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
@mixin ProgressBarBorderRadius 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_progressText {
|
|
|
|
margin-top: 8px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-05-13 08:46:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_error {
|
|
|
|
padding-left: 12px;
|
|
|
|
|
|
|
|
> img {
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_errorHeading {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-18px;
|
|
|
|
color: $notice-primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_errorCaption {
|
|
|
|
margin-top: 4px;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-05-13 08:46:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
display: inline-block;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_primary {
|
|
|
|
padding: 8px 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AddExistingToSpace_retryButton {
|
|
|
|
margin-left: 12px;
|
|
|
|
padding-left: 24px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2021-08-12 09:27:12 +00:00
|
|
|
background-color: $primary-content;
|
2021-05-13 08:46:45 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-image: url('$(res)/img/element-icons/retry.svg');
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
2021-04-26 11:41:04 +00:00
|
|
|
}
|
|
|
|
|
2021-03-02 13:32:24 +00:00
|
|
|
.mx_AddExistingToSpaceDialog {
|
|
|
|
width: 480px;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-03-02 13:32:24 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
min-height: 0;
|
2021-03-24 14:10:26 +00:00
|
|
|
height: 80vh;
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_AddExistingToSpace {
|
|
|
|
display: contents;
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_SubspaceSelector {
|
|
|
|
display: flex;
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_BaseAvatar_image {
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 0;
|
|
|
|
vertical-align: unset;
|
|
|
|
}
|
2021-03-24 14:10:26 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_BaseAvatar {
|
|
|
|
display: inline-flex;
|
|
|
|
margin: auto 16px auto 5px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
> div {
|
|
|
|
> h1 {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: $font-18px;
|
|
|
|
line-height: $font-22px;
|
|
|
|
margin: 0;
|
2021-03-02 13:32:24 +00:00
|
|
|
}
|
2021-07-23 07:46:20 +00:00
|
|
|
}
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_Dropdown_input {
|
|
|
|
border: none;
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
> .mx_Dropdown_option {
|
|
|
|
padding-left: 0;
|
|
|
|
flex: unset;
|
|
|
|
height: unset;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_BaseAvatar {
|
|
|
|
display: none;
|
2021-03-02 13:32:24 +00:00
|
|
|
}
|
2021-07-23 07:46:20 +00:00
|
|
|
}
|
2021-03-02 13:32:24 +00:00
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_Dropdown_menu {
|
|
|
|
.mx_SubspaceSelector_dropdownOptionActive {
|
|
|
|
color: $accent-color;
|
|
|
|
padding-right: 32px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
top: 8px;
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $accent-color;
|
|
|
|
mask-image: url('$(res)/img/element-icons/roomlist/checkmark.svg');
|
2021-03-02 13:32:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-23 07:46:20 +00:00
|
|
|
.mx_SubspaceSelector_onlySpace {
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
2021-03-02 13:32:24 +00:00
|
|
|
}
|
|
|
|
}
|
2021-07-21 08:57:10 +00:00
|
|
|
|
|
|
|
.mx_AddExistingToSpace_entry {
|
|
|
|
display: flex;
|
|
|
|
margin-top: 12px;
|
|
|
|
|
2021-07-29 14:50:18 +00:00
|
|
|
.mx_DecoratedRoomAvatar, // we can't target .mx_BaseAvatar here as it'll break the decorated avatar styling
|
|
|
|
.mx_BaseAvatar.mx_RoomAvatar_isSpaceRoom {
|
2021-07-21 08:57:10 +00:00
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
2021-07-29 14:50:18 +00:00
|
|
|
img.mx_RoomAvatar_isSpaceRoom,
|
|
|
|
.mx_RoomAvatar_isSpaceRoom img {
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2021-07-21 08:57:10 +00:00
|
|
|
.mx_AddExistingToSpace_entry_name {
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: 30px;
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Checkbox {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|