2020-09-08 15:48:03 +08: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 {
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_container {
|
2020-09-08 15:48:03 +08:00
|
|
|
text-align: center;
|
2022-06-16 15:22:45 +08:00
|
|
|
margin-top: $spacing-20;
|
2023-10-20 21:30:37 +08:00
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_roomName,
|
|
|
|
.mx_RoomSummaryCard_alias {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2023-05-09 15:56:09 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_roomName {
|
|
|
|
margin: $spacing-12 0 $spacing-4;
|
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
|
|
|
font-size: $font-17px;
|
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_alias {
|
|
|
|
font: var(--cpd-font-body-md-regular);
|
|
|
|
color: $secondary-content;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_avatar {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_e2ee {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 54px;
|
|
|
|
height: 54px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background-color: #737d8c;
|
|
|
|
margin-left: -10px; /* overlap */
|
|
|
|
border: 3px solid $dark-panel-bg-color;
|
2020-09-08 15:48:03 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
&::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 15:48:03 +08:00
|
|
|
}
|
2023-10-20 21:30:37 +08:00
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_e2ee_normal {
|
|
|
|
background-color: #424446;
|
|
|
|
&::before {
|
|
|
|
mask-image: url("$(res)/img/e2e/normal.svg");
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
2023-10-20 21:30:37 +08:00
|
|
|
}
|
2020-09-11 03:48:28 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_e2ee_verified {
|
|
|
|
background-color: $e2e-verified-color;
|
|
|
|
&::before {
|
|
|
|
mask-image: url("$(res)/img/e2e/verified.svg");
|
2020-09-11 03:48:28 +08:00
|
|
|
}
|
2023-10-20 21:30:37 +08:00
|
|
|
}
|
2020-09-11 03:48:28 +08:00
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_e2ee_warning {
|
|
|
|
background-color: $e2e-warning-color;
|
|
|
|
&::before {
|
|
|
|
mask-image: url("$(res)/img/e2e/warning.svg");
|
2020-09-11 03:48:28 +08:00
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_aboutGroup {
|
|
|
|
.mx_RoomSummaryCard_Button {
|
2020-09-09 00:57:08 +08:00
|
|
|
padding-left: 44px;
|
2020-09-08 15:48:03 +08:00
|
|
|
|
|
|
|
&::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
content: "";
|
2020-09-08 15:48:03 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
2020-09-09 00:57:08 +08:00
|
|
|
left: 10px;
|
2020-09-08 15:48:03 +08:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_appsGroup {
|
2020-10-15 18:14:48 +08:00
|
|
|
.mx_RoomSummaryCard_Button {
|
2022-07-27 21:39:29 +08:00
|
|
|
/* this button is special so we have to override some of the original styling */
|
|
|
|
/* as we will be applying it in its children */
|
2020-10-15 18:14:48 +08:00
|
|
|
padding: 0;
|
|
|
|
height: auto;
|
2021-08-12 17:53:54 +08:00
|
|
|
color: $tertiary-content;
|
2020-10-15 18:14:48 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_app {
|
2022-07-27 21:39:29 +08:00
|
|
|
padding: 10px 48px 10px 12px; /* based on typical mx_RoomSummaryCard_Button padding */
|
2020-10-15 18:14:48 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2023-09-22 20:57:07 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2020-10-15 18:14:48 +08:00
|
|
|
span {
|
2023-09-22 20:57:07 +08:00
|
|
|
/* Center aligned and Spacing matched with the About section above the Widgets section */
|
|
|
|
margin-right: 10px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-08-12 17:27:12 +08:00
|
|
|
color: $primary-content;
|
2020-10-15 18:14:48 +08:00
|
|
|
}
|
|
|
|
}
|
2020-10-01 00:08:41 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_pinToggle,
|
2022-02-09 18:47:41 +08:00
|
|
|
.mx_RoomSummaryCard_app_maximiseToggle,
|
2020-10-01 00:08:41 +08:00
|
|
|
.mx_RoomSummaryCard_app_options {
|
2020-10-15 18:14:48 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2022-07-27 21:39:29 +08:00
|
|
|
height: 100%; /* to give bigger interactive zone */
|
2020-10-15 18:14:48 +08:00
|
|
|
width: 24px;
|
2020-10-15 22:42:08 +08:00
|
|
|
padding: 12px 4px;
|
2020-10-15 18:14:48 +08:00
|
|
|
box-sizing: border-box;
|
2022-07-27 21:39:29 +08:00
|
|
|
min-width: 24px; /* prevent flexbox crushing */
|
2020-10-15 18:14:48 +08:00
|
|
|
|
2020-10-01 00:08:41 +08:00
|
|
|
&:hover {
|
2020-10-15 18:14:48 +08:00
|
|
|
&::after {
|
2022-12-12 19:24:14 +08:00
|
|
|
content: "";
|
2020-10-15 18:14:48 +08:00
|
|
|
position: absolute;
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
2022-07-27 21:39:29 +08:00
|
|
|
top: 8px; /* equal to padding-top of parent */
|
2020-10-15 18:14:48 +08:00
|
|
|
left: 0;
|
|
|
|
border-radius: 12px;
|
|
|
|
background-color: rgba(141, 151, 165, 0.1);
|
|
|
|
}
|
2020-10-01 00:08:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
content: "";
|
2020-10-01 00:08:41 +08:00
|
|
|
position: absolute;
|
2020-10-07 17:36:45 +08:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2020-10-01 00:08:41 +08:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-size: 16px;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_pinToggle {
|
2021-11-19 18:57:35 +08:00
|
|
|
right: 8px;
|
2020-10-15 18:14:48 +08:00
|
|
|
|
2020-10-01 00:08:41 +08:00
|
|
|
&::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/pin-upright.svg");
|
2020-10-01 00:08:41 +08:00
|
|
|
}
|
|
|
|
}
|
2022-02-09 18:47:41 +08:00
|
|
|
.mx_RoomSummaryCard_app_maximiseToggle {
|
2022-07-27 21:39:29 +08:00
|
|
|
right: 32px; /* 24 + 8 */
|
2021-11-19 18:57:35 +08:00
|
|
|
|
2021-11-16 22:43:18 +08:00
|
|
|
&::before {
|
|
|
|
mask-size: 14px;
|
|
|
|
mask-image: url("$(res)/img/element-icons/maximise-expand.svg");
|
|
|
|
}
|
|
|
|
}
|
2020-10-01 00:08:41 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_options {
|
2022-07-27 21:39:29 +08:00
|
|
|
right: 56px; /* 2*24 + 8 */
|
2020-10-15 18:14:48 +08:00
|
|
|
display: none;
|
2020-10-01 00:08:41 +08:00
|
|
|
&::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/ellipsis.svg");
|
2020-10-01 00:08:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-15 18:14:48 +08:00
|
|
|
&.mx_RoomSummaryCard_Button_pinned {
|
|
|
|
&::after {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
|
2020-10-15 18:14:48 +08:00
|
|
|
.mx_RoomSummaryCard_app_pinToggle::before {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2020-10-15 18:14:48 +08:00
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
|
2022-02-09 18:47:41 +08:00
|
|
|
&.mx_RoomSummaryCard_Button_maximised {
|
|
|
|
&::after {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_maximiseToggle::before {
|
|
|
|
background-color: $accent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-15 18:14:48 +08:00
|
|
|
&:hover {
|
|
|
|
.mx_RoomSummaryCard_icon_app {
|
|
|
|
padding-right: 72px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_app_options {
|
|
|
|
display: unset;
|
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: unset;
|
|
|
|
}
|
2020-10-07 17:36:45 +08:00
|
|
|
|
|
|
|
&::after {
|
2022-07-27 21:39:29 +08:00
|
|
|
top: 8px; /* re-align based on the height change */
|
|
|
|
pointer-events: none; /* pass through to the real button */
|
2020-10-07 17:36:45 +08:00
|
|
|
}
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_link {
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
font-size: $font-13px;
|
2023-06-29 18:30:25 +08:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-20 21:30:37 +08:00
|
|
|
.mx_RoomSummaryCard_header {
|
|
|
|
padding: 15px 12px;
|
|
|
|
|
|
|
|
.mx_BaseCard_close {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_search input {
|
|
|
|
/* Overriding very broad CSS rules */
|
|
|
|
border: 0 !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2020-09-08 15:48:03 +08:00
|
|
|
.mx_RoomSummaryCard_icon_people::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/room/members.svg");
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_files::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/files.svg");
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
|
2022-02-28 22:52:16 +08:00
|
|
|
.mx_RoomSummaryCard_icon_pins::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/pin-upright.svg");
|
2022-02-28 22:52:16 +08:00
|
|
|
}
|
|
|
|
|
2021-08-18 00:42:47 +08:00
|
|
|
.mx_RoomSummaryCard_icon_threads::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/message/thread.svg");
|
2021-08-18 00:42:47 +08:00
|
|
|
}
|
|
|
|
|
2020-09-08 15:48:03 +08:00
|
|
|
.mx_RoomSummaryCard_icon_share::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/room/share.svg");
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_settings::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/settings.svg");
|
2020-09-08 15:48:03 +08:00
|
|
|
}
|
2021-06-26 01:15:14 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_export::before {
|
2022-12-12 19:24:14 +08:00
|
|
|
mask-image: url("$(res)/img/element-icons/export.svg");
|
2021-06-26 01:15:14 +08:00
|
|
|
}
|
2023-02-02 04:57:48 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_poll::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/room/composer/poll.svg");
|
|
|
|
}
|
2023-09-01 17:45:50 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_icon_search::before {
|
|
|
|
mask-image: url("$(res)/img/element-icons/room/search-inset.svg");
|
|
|
|
}
|
2023-10-20 21:30:37 +08:00
|
|
|
|
|
|
|
.mx_RoomSummaryCard_searchBtn {
|
|
|
|
background: var(--cpd-color-bg-canvas-default);
|
|
|
|
color: var(--cpd-color-icon-primary);
|
|
|
|
border: 1px solid var(--cpd-color-gray-400);
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
padding: var(--cpd-space-2x);
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--cpd-color-bg-subtle-primary);
|
|
|
|
}
|
|
|
|
}
|