2020-09-08 07:48:03 +00: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_BaseCard {
|
2022-06-18 14:29:04 +00:00
|
|
|
--BaseCard_padding-inline: $spacing-8;
|
2022-05-13 18:04:27 +00:00
|
|
|
--BaseCard_EventTile_line-padding-block: 2px;
|
2023-06-06 14:03:52 +00:00
|
|
|
--BaseCard_EventTile-spacing-inline: 36px;
|
2022-06-16 07:22:45 +00:00
|
|
|
--BaseCard_header-button-size: 24px;
|
2022-05-13 18:04:27 +00:00
|
|
|
|
2022-06-18 14:29:04 +00:00
|
|
|
padding: 0 var(--BaseCard_padding-inline);
|
2020-09-08 07:48:03 +00:00
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
.mx_BaseCard_header {
|
2022-05-23 07:42:48 +00:00
|
|
|
--BaseCard_header_button-margin: $spacing-12;
|
|
|
|
|
2022-06-16 07:22:45 +00:00
|
|
|
margin: $spacing-4 0 $spacing-12;
|
2020-09-08 07:48:03 +00:00
|
|
|
|
2020-09-08 16:57:08 +00:00
|
|
|
> h2 {
|
2023-06-06 14:03:52 +00:00
|
|
|
margin: 0 44px;
|
2020-09-08 07:48:03 +00:00
|
|
|
font-size: $font-18px;
|
2023-04-21 14:16:00 +00:00
|
|
|
font-weight: var(--font-semi-bold);
|
2020-09-08 07:48:03 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-05-23 07:42:48 +00:00
|
|
|
.mx_BaseCard_back,
|
|
|
|
.mx_BaseCard_close {
|
2020-09-08 07:48:03 +00:00
|
|
|
position: absolute;
|
2020-09-08 14:04:03 +00:00
|
|
|
background-color: rgba(141, 151, 165, 0.2);
|
2022-06-16 07:22:45 +00:00
|
|
|
width: var(--BaseCard_header-button-size);
|
|
|
|
height: var(--BaseCard_header-button-size);
|
2022-05-23 07:42:48 +00:00
|
|
|
margin: var(--BaseCard_header_button-margin);
|
2020-09-08 07:48:03 +00:00
|
|
|
top: 0;
|
2021-11-11 11:00:18 +00:00
|
|
|
border-radius: 50%;
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2021-11-11 11:00:18 +00:00
|
|
|
height: inherit;
|
|
|
|
width: inherit;
|
2020-09-08 14:04:03 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2020-09-08 07:48:03 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2021-11-16 10:10:44 +00:00
|
|
|
background-color: $header-panel-text-primary-color;
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_back {
|
|
|
|
left: 0;
|
2022-06-16 07:22:45 +00:00
|
|
|
margin-inline-start: calc(var(--BaseCard_header_button-margin) - $spacing-4);
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
transform: rotate(90deg);
|
2020-09-08 14:04:03 +00:00
|
|
|
mask-size: 22px;
|
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
2022-06-16 07:22:45 +00:00
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* Header title with the back button */
|
2022-06-16 07:22:45 +00:00
|
|
|
~ .mx_BaseCard_header_title {
|
|
|
|
width: calc(100% - 60px);
|
|
|
|
margin-inline-start: var(--BaseCard_header-button-size);
|
|
|
|
|
|
|
|
.mx_BaseCard_header_title_heading {
|
2023-06-06 14:03:52 +00:00
|
|
|
margin-inline-start: 6px;
|
2022-06-16 07:22:45 +00:00
|
|
|
}
|
|
|
|
}
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_close {
|
|
|
|
right: 0;
|
2022-06-16 07:22:45 +00:00
|
|
|
margin-inline-end: calc(var(--BaseCard_header_button-margin) - $spacing-4);
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
&::before {
|
2020-09-08 14:04:03 +00:00
|
|
|
mask-image: url("$(res)/img/icons-close.svg");
|
|
|
|
mask-size: 8px;
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
}
|
2022-06-16 07:22:45 +00:00
|
|
|
|
|
|
|
.mx_BaseCard_header_title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: calc(100% - 38px);
|
|
|
|
height: 24px;
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
.mx_BaseCard_header_title_heading {
|
|
|
|
color: $secondary-content;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_header_title_button--option {
|
|
|
|
position: relative;
|
|
|
|
width: var(--BaseCard_header-button-size);
|
|
|
|
height: var(--BaseCard_header-button-size);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
inset-block-start: 0;
|
|
|
|
inset-inline-start: 0;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
mask-image: url("$(res)/img/element-icons/message/overflow-large.svg");
|
|
|
|
background-color: $secondary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover::after {
|
|
|
|
background-color: $primary-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AutoHideScrollbar {
|
2022-07-27 13:39:29 +00:00
|
|
|
/* collapse the margin into a padding to move the scrollbar into the right gutter */
|
2020-09-08 07:48:03 +00:00
|
|
|
margin-right: -8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
min-height: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_Group {
|
2022-06-16 07:22:45 +00:00
|
|
|
margin: $spacing-20 0 $spacing-16;
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
& > * {
|
2022-06-16 07:22:45 +00:00
|
|
|
margin-left: $spacing-12;
|
|
|
|
margin-right: $spacing-12;
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
|
2023-04-20 17:13:30 +00:00
|
|
|
> h2 {
|
2021-08-12 09:53:54 +00:00
|
|
|
color: $tertiary-content;
|
2020-09-08 07:48:03 +00:00
|
|
|
font-size: $font-12px;
|
|
|
|
font-weight: 500;
|
2023-04-20 17:13:30 +00:00
|
|
|
margin: $spacing-12;
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_Button {
|
2023-06-06 14:03:52 +00:00
|
|
|
padding: 10px;
|
2022-06-16 07:22:45 +00:00
|
|
|
padding-inline-start: $spacing-12;
|
2020-09-08 07:48:03 +00:00
|
|
|
margin: 0;
|
|
|
|
position: relative;
|
|
|
|
font-size: $font-13px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
border-radius: 8px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-11-15 11:39:25 +00:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.mx_BaseCard_Button_sublabel {
|
|
|
|
color: $tertiary-content;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(141, 151, 165, 0.1);
|
|
|
|
}
|
|
|
|
|
2020-10-07 09:36:45 +00:00
|
|
|
&.mx_AccessibleButton_disabled {
|
2022-06-16 07:22:45 +00:00
|
|
|
padding-right: $spacing-12;
|
2020-10-07 09:36:45 +00:00
|
|
|
&::after {
|
|
|
|
content: unset;
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_footer {
|
2022-06-16 07:22:45 +00:00
|
|
|
padding-top: $spacing-4;
|
2020-09-08 07:48:03 +00:00
|
|
|
text-align: center;
|
2020-09-08 09:19:51 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_secondary {
|
2021-08-12 09:30:35 +00:00
|
|
|
color: $secondary-content;
|
2020-09-08 14:04:03 +00:00
|
|
|
background-color: rgba(141, 151, 165, 0.2);
|
2023-04-21 14:16:00 +00:00
|
|
|
font-weight: var(--font-semi-bold);
|
2020-09-08 07:48:03 +00:00
|
|
|
font-size: $font-14px;
|
2020-09-08 09:19:51 +00:00
|
|
|
}
|
2020-09-08 14:04:03 +00:00
|
|
|
|
2020-09-08 09:19:51 +00:00
|
|
|
.mx_AccessibleButton_disabled {
|
|
|
|
cursor: not-allowed;
|
2020-09-08 07:48:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_FilePanel,
|
|
|
|
.mx_UserInfo,
|
|
|
|
.mx_MemberList {
|
|
|
|
&.mx_BaseCard {
|
2022-06-16 07:22:45 +00:00
|
|
|
padding: $spacing-32 0 0;
|
2020-09-08 07:48:03 +00:00
|
|
|
|
|
|
|
.mx_AutoHideScrollbar {
|
|
|
|
margin-right: unset;
|
|
|
|
padding-right: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-16 07:22:45 +00:00
|
|
|
|
|
|
|
.mx_ContextualMenu_wrapper.mx_BaseCard_header_title {
|
|
|
|
.mx_ContextualMenu {
|
|
|
|
position: initial;
|
|
|
|
|
|
|
|
span:first-of-type {
|
2023-04-21 14:16:00 +00:00
|
|
|
font-weight: var(--font-semi-bold);
|
2022-06-16 07:22:45 +00:00
|
|
|
font-size: inherit;
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
font-size: $font-12px;
|
|
|
|
color: $secondary-content;
|
2023-06-06 14:03:52 +00:00
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
2022-06-16 07:22:45 +00:00
|
|
|
|
|
|
|
border: 1px solid $quinary-content;
|
|
|
|
box-shadow: 0px 1px 3px rgba(23, 25, 28, 0.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_top {
|
|
|
|
left: auto;
|
2023-06-06 14:03:52 +00:00
|
|
|
right: 22px;
|
2022-06-16 07:22:45 +00:00
|
|
|
border-bottom-color: $quinary-content;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
border: inherit;
|
|
|
|
border-bottom-color: $menu-bg-color;
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
left: -8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|