2018-04-12 00:23:35 +01:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2018-04-12 00:23:35 +01:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
|
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.
|
2018-04-12 00:23:35 +01:00
|
|
|
*/
|
|
|
|
|
|
2021-07-14 09:06:41 +02:00
|
|
|
$button-size: 32px;
|
2026-01-16 09:52:31 +00:00
|
|
|
$button-gap: var(--cpd-space-3x);
|
2021-07-14 09:06:41 +02:00
|
|
|
|
2021-09-21 17:34:50 +02:00
|
|
|
:root {
|
|
|
|
|
--image-view-panel-height: 68px;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-12 00:23:35 +01:00
|
|
|
.mx_ImageView {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2021-02-24 11:15:59 +01:00
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ImageView_image_wrapper {
|
2021-06-05 21:08:44 -04:00
|
|
|
pointer-events: initial;
|
2020-12-19 09:26:09 +01:00
|
|
|
display: flex;
|
2020-12-20 19:48:24 +01:00
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2021-02-24 11:15:59 +01:00
|
|
|
height: 100%;
|
2020-12-20 17:40:16 +01:00
|
|
|
overflow: hidden;
|
2020-12-20 10:07:03 +01:00
|
|
|
}
|
|
|
|
|
|
2021-02-24 11:15:59 +01:00
|
|
|
.mx_ImageView_image {
|
2021-04-24 08:03:39 +02:00
|
|
|
flex-shrink: 0;
|
2021-09-21 17:59:13 +02:00
|
|
|
|
|
|
|
|
&.mx_ImageView_image_animating {
|
|
|
|
|
transition: transform 200ms ease 0s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.mx_ImageView_image_animatingLoading {
|
|
|
|
|
transition: transform 300ms ease 0s;
|
|
|
|
|
}
|
2018-04-12 00:23:35 +01:00
|
|
|
}
|
|
|
|
|
|
2020-12-19 09:26:09 +01:00
|
|
|
.mx_ImageView_panel {
|
2021-02-24 08:11:53 +01:00
|
|
|
width: 100%;
|
2021-09-21 17:34:50 +02:00
|
|
|
height: var(--image-view-panel-height);
|
2021-02-24 07:54:36 +01:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2021-02-24 08:11:53 +01:00
|
|
|
align-items: center;
|
2021-07-22 21:25:11 +02:00
|
|
|
animation-name: mx_ImageView_panel_keyframes;
|
2021-07-23 08:00:51 +02:00
|
|
|
animation-duration: 300ms;
|
2020-12-19 09:26:09 +01:00
|
|
|
}
|
|
|
|
|
|
2021-02-24 14:43:33 +01:00
|
|
|
.mx_ImageView_info_wrapper {
|
2021-06-05 21:08:44 -04:00
|
|
|
pointer-events: initial;
|
2021-02-24 14:43:33 +01:00
|
|
|
padding-left: 32px;
|
2018-04-12 00:23:35 +01:00
|
|
|
display: flex;
|
2021-02-24 14:43:33 +01:00
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
2021-02-25 11:50:50 +01:00
|
|
|
color: $lightbox-fg-color;
|
2023-01-24 00:31:11 +05:30
|
|
|
flex-grow: 1;
|
|
|
|
|
flex-basis: 0;
|
2021-02-24 14:43:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ImageView_info {
|
|
|
|
|
padding-left: 12px;
|
2021-02-24 20:04:25 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2018-04-12 00:23:35 +01:00
|
|
|
}
|
|
|
|
|
|
2021-04-02 08:31:42 +02:00
|
|
|
.mx_ImageView_info_sender {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-14 02:31:53 -06:00
|
|
|
.mx_ImageView_title {
|
|
|
|
|
color: $lightbox-fg-color;
|
|
|
|
|
font-size: $font-12px;
|
2023-01-24 00:31:11 +05:30
|
|
|
flex-grow: 1;
|
|
|
|
|
flex-basis: 0;
|
|
|
|
|
text-align: center;
|
2022-05-14 02:31:53 -06:00
|
|
|
}
|
|
|
|
|
|
2021-02-25 11:50:50 +01:00
|
|
|
.mx_ImageView_toolbar {
|
2026-01-16 09:52:31 +00:00
|
|
|
--icon-size: 24px;
|
|
|
|
|
|
2021-02-25 11:50:50 +01:00
|
|
|
padding-right: 16px;
|
2021-06-05 21:08:44 -04:00
|
|
|
pointer-events: initial;
|
2021-02-25 11:50:50 +01:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2023-01-24 00:31:11 +05:30
|
|
|
flex-grow: 1;
|
|
|
|
|
flex-basis: 0;
|
|
|
|
|
justify-content: flex-end;
|
2026-01-16 09:52:31 +00:00
|
|
|
gap: $button-gap;
|
2021-02-25 11:50:50 +01:00
|
|
|
}
|
|
|
|
|
|
2020-12-20 19:48:24 +01:00
|
|
|
.mx_ImageView_button {
|
2026-01-16 09:52:31 +00:00
|
|
|
padding: calc(($button-size - var(--icon-size)) / 2);
|
|
|
|
|
width: var(--icon-size);
|
|
|
|
|
height: var(--icon-size);
|
2021-02-24 14:43:33 +01:00
|
|
|
display: block;
|
|
|
|
|
|
2026-01-16 09:52:31 +00:00
|
|
|
svg {
|
|
|
|
|
height: inherit;
|
|
|
|
|
width: inherit;
|
2021-02-24 14:43:33 +01:00
|
|
|
display: block;
|
2026-01-16 09:52:31 +00:00
|
|
|
color: $icon-button-color;
|
2021-02-24 14:43:33 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-16 09:52:31 +00:00
|
|
|
.mx_ImageView_button_more {
|
|
|
|
|
--icon-size: 28px;
|
2021-02-24 18:13:12 +01:00
|
|
|
}
|
|
|
|
|
|
2021-02-24 14:43:33 +01:00
|
|
|
.mx_ImageView_button_close {
|
2021-02-25 08:10:54 +01:00
|
|
|
border-radius: 100%;
|
2022-07-27 14:39:29 +01:00
|
|
|
background: #21262c; /* same on all themes */
|
2020-12-20 19:48:24 +01:00
|
|
|
}
|
2021-09-21 17:59:13 +02:00
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
|
.mx_ImageView_image_animating {
|
|
|
|
|
transition: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_ImageView_image_animatingLoading {
|
|
|
|
|
transition: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|