2020-04-10 15:45:59 +03:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-04-10 15:45:59 +03:00
|
|
|
Copyright 2020 Tulir Asokan <tulir@maunium.net>
|
|
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-04-10 15:45:59 +03:00
|
|
|
*/
|
|
|
|
|
|
2026-05-13 08:03:43 +02:00
|
|
|
.mx_MImageReplyBody,
|
|
|
|
|
.mx_MStickerBody_wrapper {
|
|
|
|
|
.mx_MImageBody_banner {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: $spacing-4;
|
|
|
|
|
left: $spacing-4;
|
|
|
|
|
padding: $spacing-4;
|
|
|
|
|
border-radius: var(--MBody-border-radius);
|
|
|
|
|
font-size: $font-15px;
|
|
|
|
|
user-select: none;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
max-width: min(100%, 350px);
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-color: rgb(0, 0, 0, 0.6);
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MImageBody_placeholder {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: $background;
|
|
|
|
|
|
|
|
|
|
.mx_Blurhash > canvas {
|
|
|
|
|
animation: mx--anim-pulse 1.75s infinite cubic-bezier(0.4, 0, 0.6, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MImageBody_thumbnail_container {
|
|
|
|
|
border-radius: var(--MBody-border-radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
contain: paint;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MImageBody_thumbnail {
|
|
|
|
|
display: block;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_MImageBody_gifLabel {
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: block;
|
|
|
|
|
top: 0px;
|
|
|
|
|
left: 14px;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
background: $imagebody-giflabel;
|
|
|
|
|
border: 2px solid $imagebody-giflabel-border;
|
|
|
|
|
color: $imagebody-giflabel-color;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-10 15:45:59 +03:00
|
|
|
.mx_MImageReplyBody {
|
2021-07-13 11:49:49 +02:00
|
|
|
display: flex;
|
2022-06-10 11:36:17 +00:00
|
|
|
column-gap: $spacing-4;
|
2020-04-10 17:05:29 +03:00
|
|
|
|
2023-05-03 13:26:10 +00:00
|
|
|
.mx_MImageBody_thumbnail_container {
|
2021-07-13 11:49:49 +02:00
|
|
|
flex: 1;
|
2022-07-27 14:39:29 +01:00
|
|
|
min-width: 0; /* Prevent a blowout */
|
2020-04-10 17:05:29 +03:00
|
|
|
}
|
2020-04-10 15:45:59 +03:00
|
|
|
}
|