2021-03-01 19:10:17 +01: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
$SpaceRoomViewInnerWidth: 428px;
|
|
|
|
|
2021-03-19 14:16:36 +01:00
|
|
|
@define-mixin SpacePillButton {
|
|
|
|
position: relative;
|
|
|
|
padding: 16px 32px 16px 72px;
|
|
|
|
width: 432px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 8px;
|
2021-03-25 13:17:39 +01:00
|
|
|
border: 1px solid $input-border-color;
|
2021-03-19 14:16:36 +01:00
|
|
|
font-size: $font-15px;
|
|
|
|
margin: 20px 0;
|
|
|
|
|
|
|
|
> h3 {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
margin: 0 0 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
content: '';
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
top: 24px;
|
|
|
|
left: 20px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 24px;
|
|
|
|
background-color: $tertiary-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: $accent-color;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-01 19:10:17 +01:00
|
|
|
.mx_SpaceRoomView {
|
|
|
|
.mx_MainSplit > div:first-child {
|
|
|
|
padding: 80px 60px;
|
|
|
|
flex-grow: 1;
|
2021-03-11 12:49:43 +01:00
|
|
|
max-height: 100%;
|
|
|
|
overflow-y: auto;
|
2021-03-01 19:10:17 +01:00
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
font-size: $font-24px;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
width: max-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_description {
|
|
|
|
font-size: $font-15px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_buttons {
|
|
|
|
display: block;
|
|
|
|
margin-top: 44px;
|
|
|
|
width: $SpaceRoomViewInnerWidth;
|
|
|
|
text-align: right; // button alignment right
|
|
|
|
|
2021-03-24 14:15:31 +01:00
|
|
|
.mx_AccessibleButton_hasKind {
|
2021-03-01 19:10:17 +01:00
|
|
|
padding: 8px 22px;
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_Field {
|
|
|
|
max-width: $SpaceRoomViewInnerWidth;
|
|
|
|
|
|
|
|
& + .mx_Field {
|
|
|
|
margin-top: 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_errorText {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: $font-12px;
|
|
|
|
line-height: $font-15px;
|
|
|
|
color: $notice-primary-color;
|
|
|
|
margin-bottom: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-11 12:49:43 +01:00
|
|
|
.mx_SpaceRoomView_preview {
|
|
|
|
padding: 32px 24px !important; // override default padding from above
|
|
|
|
margin: auto;
|
|
|
|
max-width: 480px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
box-shadow: 2px 15px 30px $dialog-shadow-color;
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_preview_inviter {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
margin-left: 8px;
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_preview_inviter_name {
|
|
|
|
line-height: $font-18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_preview_inviter_mxid {
|
|
|
|
line-height: $font-24px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .mx_BaseAvatar_image,
|
|
|
|
> .mx_BaseAvatar > .mx_BaseAvatar_image {
|
|
|
|
border-radius: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1.mx_SpaceRoomView_preview_name {
|
|
|
|
margin: 20px 0 !important; // override default margin from above
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_preview_topic {
|
|
|
|
font-size: $font-14px;
|
|
|
|
line-height: $font-22px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
margin: 20px 0;
|
|
|
|
max-height: 160px;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_preview_joinButtons {
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
width: 200px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 14px 0;
|
|
|
|
|
|
|
|
& + .mx_AccessibleButton {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing {
|
2021-03-01 19:10:17 +01:00
|
|
|
> .mx_BaseAvatar_image,
|
|
|
|
> .mx_BaseAvatar > .mx_BaseAvatar_image {
|
|
|
|
border-radius: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing_name {
|
|
|
|
margin: 24px 0 16px;
|
|
|
|
font-size: $font-15px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing_nameRow {
|
|
|
|
margin-top: 12px;
|
|
|
|
|
|
|
|
> h1 {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing_inviter {
|
|
|
|
.mx_BaseAvatar {
|
|
|
|
margin-right: 4px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
2021-03-26 14:11:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing_info {
|
|
|
|
display: flex;
|
|
|
|
margin-right: 60px;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_info {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_FacePile {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: 12px;
|
|
|
|
|
|
|
|
.mx_FacePile_faces {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
> span:hover {
|
|
|
|
.mx_BaseAvatar {
|
|
|
|
filter: brightness(0.8);
|
|
|
|
}
|
|
|
|
}
|
2021-03-01 19:10:17 +01:00
|
|
|
|
2021-03-26 14:11:57 +01:00
|
|
|
> span:first-child {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.mx_BaseAvatar {
|
|
|
|
filter: brightness(0.8);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
z-index: 1;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 30px;
|
|
|
|
width: 30px;
|
|
|
|
background: #ffffff; // white icon fill
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 24px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/ellipsis.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing_inviteButton {
|
2021-03-01 19:10:17 +01:00
|
|
|
position: relative;
|
2021-03-26 14:11:57 +01:00
|
|
|
padding-left: 40px;
|
|
|
|
height: min-content;
|
2021-03-01 19:10:17 +01:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
2021-03-26 14:11:57 +01:00
|
|
|
content: "";
|
|
|
|
left: 8px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
background: #ffffff; // white icon fill
|
2021-03-01 19:10:17 +01:00
|
|
|
mask-position: center;
|
2021-03-26 14:11:57 +01:00
|
|
|
mask-size: 16px;
|
2021-03-01 19:10:17 +01:00
|
|
|
mask-repeat: no-repeat;
|
2021-03-26 14:11:57 +01:00
|
|
|
mask-image: url('$(res)/img/element-icons/room/invite.svg');
|
2021-03-01 19:10:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_landing_topic {
|
|
|
|
font-size: $font-15px;
|
2021-03-26 14:11:57 +01:00
|
|
|
margin-top: 12px;
|
2021-03-01 19:10:17 +01:00
|
|
|
}
|
|
|
|
|
2021-03-02 11:07:43 +01:00
|
|
|
.mx_SpaceRoomView_landing_adminButtons {
|
|
|
|
margin-top: 32px;
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
position: relative;
|
|
|
|
width: 160px;
|
|
|
|
height: 124px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 72px 16px 0;
|
|
|
|
border-radius: 12px;
|
2021-03-25 13:17:39 +01:00
|
|
|
border: 1px solid $input-border-color;
|
2021-03-02 11:07:43 +01:00
|
|
|
margin-right: 28px;
|
|
|
|
margin-bottom: 28px;
|
|
|
|
font-size: $font-14px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(141, 151, 165, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before, &::after {
|
|
|
|
position: absolute;
|
|
|
|
content: "";
|
|
|
|
left: 16px;
|
|
|
|
top: 16px;
|
|
|
|
height: 40px;
|
|
|
|
width: 40px;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 30px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background: #ffffff; // white icon fill
|
|
|
|
}
|
|
|
|
|
2021-03-02 14:32:24 +01:00
|
|
|
&.mx_SpaceRoomView_landing_addButton {
|
|
|
|
&::before {
|
|
|
|
background-color: #ac3ba8;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/element-icons/roomlist/explore.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-02 14:28:05 +01:00
|
|
|
&.mx_SpaceRoomView_landing_createButton {
|
|
|
|
&::before {
|
|
|
|
background-color: #368bd6;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/element-icons/roomlist/explore.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-02 11:34:28 +01:00
|
|
|
&.mx_SpaceRoomView_landing_settingsButton {
|
|
|
|
&::before {
|
|
|
|
background-color: #5c56f5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
mask-image: url('$(res)/img/element-icons/settings.svg');
|
|
|
|
}
|
|
|
|
}
|
2021-03-02 11:07:43 +01:00
|
|
|
}
|
|
|
|
}
|
2021-03-02 15:37:28 +01:00
|
|
|
|
2021-03-26 10:44:52 +01:00
|
|
|
.mx_SearchBox {
|
|
|
|
margin-left: 4px;
|
|
|
|
max-width: 670px;
|
|
|
|
}
|
2021-03-02 15:37:28 +01:00
|
|
|
|
2021-03-26 10:44:52 +01:00
|
|
|
.mx_SpaceRoomDirectory_list {
|
|
|
|
max-width: 700px;
|
2021-03-02 15:37:28 +01:00
|
|
|
}
|
2021-03-01 19:10:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_privateScope {
|
2021-03-19 14:16:36 +01:00
|
|
|
.mx_AccessibleButton {
|
|
|
|
@mixin SpacePillButton;
|
2021-03-01 19:10:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_privateScope_justMeButton::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/members.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_privateScope_meAndMyTeammatesButton::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/community-members.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_inviteTeammates {
|
|
|
|
.mx_SpaceRoomView_inviteTeammates_buttons {
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
margin-top: 28px;
|
|
|
|
|
|
|
|
.mx_AccessibleButton {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
padding-left: 32px;
|
|
|
|
line-height: 24px; // to center icons
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: $secondary-fg-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
& + .mx_AccessibleButton {
|
|
|
|
margin-left: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_inviteTeammates_inviteDialogButton::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/invite.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-26 14:11:57 +01:00
|
|
|
|
|
|
|
.mx_SpaceRoomView_info {
|
|
|
|
color: $tertiary-fg-color;
|
|
|
|
font-size: $font-15px;
|
|
|
|
line-height: $font-24px;
|
|
|
|
margin: 20px 0;
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_info_public,
|
|
|
|
.mx_SpaceRoomView_info_private {
|
|
|
|
padding-left: 20px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
content: "";
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
top: 0;
|
|
|
|
left: -2px;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $tertiary-fg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_info_public::before {
|
|
|
|
mask-size: 12px;
|
|
|
|
mask-image: url("$(res)/img/globe.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_SpaceRoomView_info_private::before {
|
|
|
|
mask-size: 14px;
|
|
|
|
mask-image: url("$(res)/img/element-icons/lock.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
color: inherit;
|
|
|
|
position: relative;
|
|
|
|
padding-left: 16px;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "·"; // visual separator
|
|
|
|
position: absolute;
|
|
|
|
left: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|