Files
ThreadNet-Web/res/css/views/right_panel/_BaseCard.pcss
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

154 lines
4.5 KiB
Plaintext
Raw Normal View History

2020-09-08 08:48:03 +01: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 18:04:27 +00:00
--BaseCard_EventTile_line-padding-block: 2px;
--BaseCard_EventTile-spacing-inline: 36px;
2023-10-20 14:30:37 +01:00
--BaseCard_header-button-size: 28px;
2022-05-13 18:04:27 +00:00
2020-09-08 08:48:03 +01:00
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
font-size: var(--cpd-font-size-body-md);
2020-09-08 08:48:03 +01:00
.mx_BaseCard_header {
2023-10-20 14:30:37 +01:00
height: 64px;
padding: var(--cpd-space-4x);
2023-10-20 14:30:37 +01:00
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-3x);
2023-10-20 14:30:37 +01:00
flex-shrink: 0;
border-block-end: var(--cpd-border-width-1) solid $separator;
.mx_BaseCard_header_spacer {
flex: 1;
}
2020-09-08 08:48:03 +01:00
2020-09-08 17:57:08 +01:00
> h2 {
margin: 0 44px;
2023-06-29 11:30:25 +01:00
font: var(--cpd-font-body-sm-semibold);
2020-09-08 08:48:03 +01:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mx_BaseCard_header_title {
display: flex;
align-items: center;
justify-content: space-between;
height: 24px;
flex: 1;
.mx_BaseCard_header_title_heading {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font: var(--cpd-font-body-md-medium);
color: var(--cpd-color-text-secondary);
}
.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 08:48:03 +01:00
}
.mx_AutoHideScrollbar {
min-height: 0;
width: 100%;
height: 100%;
scrollbar-gutter: stable;
2020-09-08 08:48:03 +01:00
}
.mx_BaseCard_footer {
padding-top: $spacing-4;
2020-09-08 08:48:03 +01:00
text-align: center;
2020-09-08 10:19:51 +01:00
display: flex;
justify-content: space-around;
2020-09-08 08:48:03 +01:00
.mx_AccessibleButton_kind_secondary {
2021-08-12 11:30:35 +02:00
color: $secondary-content;
2020-09-08 15:04:03 +01:00
background-color: rgba(141, 151, 165, 0.2);
2023-06-29 11:30:25 +01:00
font: var(--cpd-font-body-md-semibold);
2020-09-08 10:19:51 +01:00
}
2020-09-08 15:04:03 +01:00
2020-09-08 10:19:51 +01:00
.mx_AccessibleButton_disabled {
cursor: not-allowed;
2020-09-08 08:48:03 +01:00
}
}
}
.mx_ContextualMenu_wrapper.mx_BaseCard_header_title {
.mx_ContextualMenu {
position: initial;
span:first-of-type {
2023-06-29 11:30:25 +01:00
font-weight: var(--cpd-font-weight-semibold);
font-size: inherit;
color: $primary-content;
}
font: var(--cpd-font-body-sm-regular);
2023-10-20 14:30:37 +01:00
color: $primary-content;
padding-top: 10px;
padding-bottom: 10px;
border: var(--cpd-border-width-1) solid var(--cpd-color-border-interactive-secondary);
box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.1);
}
.mx_ContextualMenu_chevron_top {
left: auto;
right: 22px;
border-bottom-color: var(--cpd-color-border-interactive-secondary);
&::after {
content: "";
border: inherit;
border-bottom-color: var(--cpd-color-bg-canvas-default);
position: absolute;
top: 1px;
left: -8px;
}
}
}