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_BaseCard {
|
2022-05-13 20:04:27 +02:00
|
|
|
--BaseCard_EventTile_line-padding-block: 2px;
|
2023-06-06 16:03:52 +02:00
|
|
|
--BaseCard_EventTile-spacing-inline: 36px;
|
2023-10-20 15:30:37 +02:00
|
|
|
--BaseCard_header-button-size: 28px;
|
2022-05-13 20:04:27 +02:00
|
|
|
|
2020-09-08 09:48:03 +02:00
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex: 1;
|
2023-07-04 20:02:39 +02:00
|
|
|
font-size: var(--cpd-font-size-body-md);
|
2020-09-08 09:48:03 +02:00
|
|
|
|
|
|
|
.mx_BaseCard_header {
|
2023-10-20 15:30:37 +02:00
|
|
|
height: 64px;
|
|
|
|
padding: var(--cpd-space-3x);
|
|
|
|
box-sizing: border-box;
|
|
|
|
/* changing the color from $separator to transparent as it is
|
|
|
|
the best visual output during the transition period. This will be
|
|
|
|
reintroduced at a later stage. */
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
gap: var(--cpd-space-2x);
|
|
|
|
flex-shrink: 0;
|
2020-09-08 09:48:03 +02:00
|
|
|
|
2020-09-08 18:57:08 +02:00
|
|
|
> h2 {
|
2023-06-06 16:03:52 +02:00
|
|
|
margin: 0 44px;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-sm-semibold);
|
2020-09-08 09:48:03 +02:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2022-06-16 09:22:45 +02:00
|
|
|
.mx_BaseCard_header_title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
height: 24px;
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
.mx_BaseCard_header_title_heading {
|
2023-10-20 15:30:37 +02:00
|
|
|
color: $primary-content;
|
2022-06-16 09:22:45 +02:00
|
|
|
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 {
|
2022-12-12 12:24:14 +01:00
|
|
|
content: "";
|
2022-06-16 09:22:45 +02:00
|
|
|
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 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_AutoHideScrollbar {
|
|
|
|
min-height: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_Group {
|
2022-06-16 09:22:45 +02:00
|
|
|
margin: $spacing-20 0 $spacing-16;
|
2020-09-08 09:48:03 +02:00
|
|
|
|
|
|
|
& > * {
|
2022-06-16 09:22:45 +02:00
|
|
|
margin-left: $spacing-12;
|
|
|
|
margin-right: $spacing-12;
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
2023-04-20 19:13:30 +02:00
|
|
|
> h2 {
|
2021-08-12 11:53:54 +02:00
|
|
|
color: $tertiary-content;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-sm-medium);
|
2023-04-20 19:13:30 +02:00
|
|
|
margin: $spacing-12;
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_Button {
|
2023-06-06 16:03:52 +02:00
|
|
|
padding: 10px;
|
2022-06-16 09:22:45 +02:00
|
|
|
padding-inline-start: $spacing-12;
|
2020-09-08 09:48:03 +02:00
|
|
|
margin: 0;
|
|
|
|
position: relative;
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-heading-sm-medium);
|
2020-09-08 09:48:03 +02:00
|
|
|
height: 20px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2021-11-15 12:39:25 +01:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.mx_BaseCard_Button_sublabel {
|
|
|
|
color: $tertiary-content;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(141, 151, 165, 0.1);
|
|
|
|
}
|
|
|
|
|
2020-10-07 11:36:45 +02:00
|
|
|
&.mx_AccessibleButton_disabled {
|
2022-06-16 09:22:45 +02:00
|
|
|
padding-right: $spacing-12;
|
2020-10-07 11:36:45 +02:00
|
|
|
&::after {
|
|
|
|
content: unset;
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_footer {
|
2022-06-16 09:22:45 +02:00
|
|
|
padding-top: $spacing-4;
|
2020-09-08 09:48:03 +02:00
|
|
|
text-align: center;
|
2020-09-08 11:19:51 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
2020-09-08 09:48:03 +02:00
|
|
|
|
|
|
|
.mx_AccessibleButton_kind_secondary {
|
2021-08-12 11:30:35 +02:00
|
|
|
color: $secondary-content;
|
2020-09-08 16:04:03 +02:00
|
|
|
background-color: rgba(141, 151, 165, 0.2);
|
2023-06-29 12:30:25 +02:00
|
|
|
font: var(--cpd-font-body-md-semibold);
|
2020-09-08 11:19:51 +02:00
|
|
|
}
|
2020-09-08 16:04:03 +02:00
|
|
|
|
2020-09-08 11:19:51 +02:00
|
|
|
.mx_AccessibleButton_disabled {
|
|
|
|
cursor: not-allowed;
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-20 15:30:37 +02:00
|
|
|
.mx_BaseCard_back,
|
|
|
|
.mx_BaseCard_close {
|
2023-11-13 22:57:20 +01:00
|
|
|
flex-shrink: 0;
|
2023-10-20 15:30:37 +02:00
|
|
|
position: relative;
|
2024-01-02 19:56:39 +01:00
|
|
|
/* @TODO(kerrya) background colours here are not semantic
|
|
|
|
these buttons to be replaced with IconButton after secondary variant is added
|
|
|
|
https://github.com/vector-im/compound/issues/279 */
|
2023-10-20 15:30:37 +02:00
|
|
|
background-color: var(--cpd-color-bg-subtle-secondary);
|
|
|
|
width: var(--BaseCard_header-button-size);
|
|
|
|
height: var(--BaseCard_header-button-size);
|
|
|
|
border-radius: 50%;
|
|
|
|
|
2023-11-16 04:25:34 +01:00
|
|
|
&:hover {
|
|
|
|
background-color: var(--cpd-color-bg-subtle-primary);
|
|
|
|
}
|
|
|
|
|
2023-10-20 15:30:37 +02:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
height: inherit;
|
|
|
|
width: inherit;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2024-03-05 05:25:47 +01:00
|
|
|
mask-size: 20px;
|
2023-10-20 15:30:37 +02:00
|
|
|
background-color: var(--cpd-color-icon-secondary);
|
|
|
|
}
|
|
|
|
}
|
2020-09-08 09:48:03 +02:00
|
|
|
|
2023-10-20 15:30:37 +02:00
|
|
|
.mx_BaseCard_back {
|
|
|
|
order: 0; /* always first! */
|
|
|
|
&::before {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
mask-size: 22px;
|
|
|
|
mask-image: url("$(res)/img/feather-customised/chevron-down.svg");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_BaseCard_close {
|
|
|
|
order: 999; /* always last */
|
|
|
|
&::before {
|
2024-03-05 05:25:47 +01:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
|
2020-09-08 09:48:03 +02:00
|
|
|
}
|
|
|
|
}
|
2022-06-16 09:22:45 +02:00
|
|
|
|
|
|
|
.mx_ContextualMenu_wrapper.mx_BaseCard_header_title {
|
|
|
|
.mx_ContextualMenu {
|
|
|
|
position: initial;
|
|
|
|
|
|
|
|
span:first-of-type {
|
2023-06-29 12:30:25 +02:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2022-06-16 09:22:45 +02:00
|
|
|
font-size: inherit;
|
|
|
|
color: $primary-content;
|
|
|
|
}
|
|
|
|
|
2023-08-01 12:31:21 +02:00
|
|
|
font: var(--cpd-font-body-sm-regular);
|
2023-10-20 15:30:37 +02:00
|
|
|
color: $primary-content;
|
2023-06-06 16:03:52 +02:00
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
2022-06-16 09:22:45 +02:00
|
|
|
|
2024-02-20 14:54:33 +01:00
|
|
|
border: 1px solid $quinary-content;
|
|
|
|
box-shadow: 0px 1px 3px rgba(23, 25, 28, 0.05);
|
2022-06-16 09:22:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ContextualMenu_chevron_top {
|
|
|
|
left: auto;
|
2023-06-06 16:03:52 +02:00
|
|
|
right: 22px;
|
2024-02-20 14:54:33 +01:00
|
|
|
border-bottom-color: $quinary-content;
|
2022-06-16 09:22:45 +02:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
border: inherit;
|
2024-02-20 14:54:33 +01:00
|
|
|
border-bottom-color: $menu-bg-color;
|
2022-06-16 09:22:45 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
left: -8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-11-13 22:57:20 +01:00
|
|
|
|
|
|
|
.mx_BaseCard_headerProp {
|
|
|
|
flex: 1 1 100%;
|
|
|
|
}
|