2020-09-08 09:48:03 +02:00
|
|
|
/*
|
|
|
|
Copyright 2020 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_RoomSummaryCard {
|
|
|
|
.mx_BaseCard_header {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
font-size: $font-18px;
|
|
|
|
margin: 12px 0 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_alias {
|
|
|
|
font-size: $font-13px;
|
|
|
|
color: $secondary-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2, .mx_RoomSummaryCard_alias {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_avatar {
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_e2ee {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 54px;
|
|
|
|
height: 54px;
|
|
|
|
border-radius: 50%;
|
2020-09-08 17:33:26 +02:00
|
|
|
background-color: #737d8c;
|
2020-09-08 09:48:03 +02:00
|
|
|
margin-top: -3px; // alignment
|
|
|
|
margin-left: -10px; // overlap
|
|
|
|
border: 3px solid $dark-panel-bg-color;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 13px;
|
|
|
|
left: 13px;
|
|
|
|
height: 28px;
|
|
|
|
width: 28px;
|
|
|
|
mask-size: cover;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-image: url('$(res)/img/e2e/disabled.svg');
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-08 17:27:09 +02:00
|
|
|
.mx_RoomSummaryCard_e2ee_secure {
|
2020-09-08 17:33:26 +02:00
|
|
|
background-color: #5abff2;
|
2020-09-08 09:48:03 +02:00
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_aboutGroup {
|
|
|
|
.mx_RoomSummaryCard_Button {
|
2020-09-08 18:57:08 +02:00
|
|
|
padding-left: 44px;
|
2020-09-08 09:48:03 +02:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
2020-09-08 18:57:08 +02:00
|
|
|
left: 10px;
|
2020-09-08 09:48:03 +02:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_appsGroup {
|
|
|
|
.mx_RoomSummaryCard_Button {
|
2020-09-08 18:57:08 +02:00
|
|
|
padding-left: 12px;
|
2020-09-08 09:48:03 +02:00
|
|
|
color: $tertiary-fg-color;
|
|
|
|
|
|
|
|
span {
|
|
|
|
color: $primary-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: top;
|
2020-09-08 18:57:08 +02:00
|
|
|
margin-right: 12px;
|
2020-09-08 09:48:03 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_app_pinned::after {
|
2020-09-08 12:18:41 +02:00
|
|
|
mask-image: url('$(res)/img/element-icons/room/pin-upright.svg');
|
2020-09-08 09:48:03 +02:00
|
|
|
background-color: $accent-color;
|
|
|
|
transform: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
padding: 0;
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
font-size: $font-13px;
|
|
|
|
font-weight: $font-semi-bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_people::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/room/members.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_files::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/files.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_share::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/share.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_settings::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/settings.svg');
|
|
|
|
}
|