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;
|
2021-08-12 11:30:35 +02:00
|
|
|
color: $secondary-content;
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h2, .mx_RoomSummaryCard_alias {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-05-19 18:12:25 +02:00
|
|
|
white-space: pre-wrap;
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.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-10 21:48:28 +02:00
|
|
|
.mx_RoomSummaryCard_e2ee_normal {
|
|
|
|
background-color: #424446;
|
2020-09-08 09:48:03 +02:00
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/e2e/normal.svg');
|
|
|
|
}
|
|
|
|
}
|
2020-09-10 21:48:28 +02:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_e2ee_verified {
|
|
|
|
background-color: #0dbd8b;
|
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/e2e/verified.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_e2ee_warning {
|
|
|
|
background-color: #ff4b55;
|
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
2020-10-15 12:14:48 +02:00
|
|
|
.mx_RoomSummaryCard_Button {
|
|
|
|
// this button is special so we have to override some of the original styling
|
|
|
|
// as we will be applying it in its children
|
|
|
|
padding: 0;
|
|
|
|
height: auto;
|
2021-08-12 11:53:54 +02:00
|
|
|
color: $tertiary-content;
|
2020-10-15 12:14:48 +02:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_app {
|
2020-10-15 16:42:08 +02:00
|
|
|
padding: 10px 48px 10px 12px; // based on typical mx_RoomSummaryCard_Button padding
|
2020-10-15 12:14:48 +02:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.mx_BaseAvatar_image {
|
|
|
|
vertical-align: top;
|
|
|
|
margin-right: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
2021-08-12 11:27:12 +02:00
|
|
|
color: $primary-content;
|
2020-10-15 12:14:48 +02:00
|
|
|
}
|
|
|
|
}
|
2020-09-30 18:08:41 +02:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_pinToggle,
|
|
|
|
.mx_RoomSummaryCard_app_options {
|
2020-10-15 12:14:48 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
height: 100%; // to give bigger interactive zone
|
|
|
|
width: 24px;
|
2020-10-15 16:42:08 +02:00
|
|
|
padding: 12px 4px;
|
2020-10-15 12:14:48 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
min-width: 24px; // prevent flexbox crushing
|
|
|
|
|
2020-09-30 18:08:41 +02:00
|
|
|
&:hover {
|
2020-10-15 12:14:48 +02:00
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2020-10-15 16:42:08 +02:00
|
|
|
top: 8px; // equal to padding-top of parent
|
2020-10-15 12:14:48 +02:00
|
|
|
left: 0;
|
|
|
|
border-radius: 12px;
|
|
|
|
background-color: rgba(141, 151, 165, 0.1);
|
|
|
|
}
|
2020-09-30 18:08:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2020-10-07 11:36:45 +02:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2020-09-30 18:08:41 +02:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 16px;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_pinToggle {
|
2020-10-15 12:14:48 +02:00
|
|
|
right: 24px;
|
|
|
|
|
2020-09-30 18:08:41 +02:00
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/pin-upright.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_options {
|
2020-10-15 12:14:48 +02:00
|
|
|
right: 48px;
|
|
|
|
display: none;
|
|
|
|
|
2020-09-30 18:08:41 +02:00
|
|
|
&::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/room/ellipsis.svg');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-15 12:14:48 +02:00
|
|
|
&.mx_RoomSummaryCard_Button_pinned {
|
|
|
|
&::after {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
|
2020-10-15 12:14:48 +02:00
|
|
|
.mx_RoomSummaryCard_app_pinToggle::before {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
2020-10-15 12:14:48 +02:00
|
|
|
&:hover {
|
|
|
|
.mx_RoomSummaryCard_icon_app {
|
|
|
|
padding-right: 72px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_options {
|
|
|
|
display: unset;
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: unset;
|
|
|
|
}
|
2020-10-07 11:36:45 +02:00
|
|
|
|
|
|
|
&::after {
|
2020-10-15 12:14:48 +02:00
|
|
|
top: 8px; // re-align based on the height change
|
|
|
|
pointer-events: none; // pass through to the real button
|
2020-10-07 11:36:45 +02:00
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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');
|
|
|
|
}
|
|
|
|
|
2021-08-17 18:42:47 +02:00
|
|
|
.mx_RoomSummaryCard_icon_threads::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/message/thread.svg');
|
|
|
|
}
|
|
|
|
|
2020-09-08 09:48:03 +02:00
|
|
|
.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');
|
|
|
|
}
|
2021-06-25 19:15:14 +02:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_export::before {
|
|
|
|
mask-image: url('$(res)/img/element-icons/export.svg');
|
|
|
|
}
|