2023-01-04 07:44:38 +03:00
|
|
|
/*
|
2024-09-09 16:57:16 +03:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2023-01-04 07:44:38 +03:00
|
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 16:57:16 +03:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2023-01-04 07:44:38 +03:00
|
|
|
*/
|
|
|
|
|
2024-01-08 15:11:44 +03:00
|
|
|
$width: 320px;
|
|
|
|
$height: 220px;
|
|
|
|
|
2023-01-04 07:44:38 +03:00
|
|
|
.mx_WidgetPip {
|
2024-01-08 15:11:44 +03:00
|
|
|
width: $width;
|
|
|
|
height: $height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WidgetPip_overlay {
|
|
|
|
width: $width;
|
|
|
|
height: $height;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2023-01-04 07:44:38 +03:00
|
|
|
border-radius: 8px;
|
2024-01-08 15:11:44 +03:00
|
|
|
overflow: hidden;
|
2023-01-04 07:44:38 +03:00
|
|
|
color: $call-primary-content;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WidgetPip_header,
|
|
|
|
.mx_WidgetPip_footer {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
height: 60px;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
transition: opacity ease 0.15s;
|
2024-01-08 15:11:44 +03:00
|
|
|
}
|
2023-01-04 07:44:38 +03:00
|
|
|
|
2024-01-08 15:11:44 +03:00
|
|
|
.mx_WidgetPip_overlay:not(:hover) {
|
|
|
|
.mx_WidgetPip_header,
|
|
|
|
.mx_WidgetPip_footer {
|
2023-01-04 07:44:38 +03:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WidgetPip_header {
|
|
|
|
top: 0;
|
|
|
|
padding: $spacing-12;
|
|
|
|
display: flex;
|
|
|
|
font-size: $font-12px;
|
2023-06-29 13:30:25 +03:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2023-01-04 07:44:38 +03:00
|
|
|
background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WidgetPip_backButton {
|
|
|
|
height: $spacing-24;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: $spacing-12;
|
|
|
|
|
|
|
|
> .mx_Icon {
|
|
|
|
color: $call-light-quaternary-content;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_WidgetPip_footer {
|
|
|
|
bottom: 0;
|
|
|
|
padding: $spacing-12 $spacing-8;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: flex-end;
|
|
|
|
background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
|
|
|
|
}
|