2018-04-11 23:23:35 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2021-07-14 07:06:41 +00:00
|
|
|
$button-size: 32px;
|
|
|
|
$icon-size: 22px;
|
|
|
|
$button-gap: 24px;
|
|
|
|
|
2021-09-21 15:34:50 +00:00
|
|
|
:root {
|
|
|
|
--image-view-panel-height: 68px;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_ImageView {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-02-24 10:15:59 +00:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_image_wrapper {
|
2021-06-06 01:08:44 +00:00
|
|
|
pointer-events: initial;
|
2020-12-19 08:26:09 +00:00
|
|
|
display: flex;
|
2020-12-20 18:48:24 +00:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-02-24 10:15:59 +00:00
|
|
|
height: 100%;
|
2020-12-20 16:40:16 +00:00
|
|
|
overflow: hidden;
|
2020-12-20 09:07:03 +00:00
|
|
|
}
|
|
|
|
|
2021-02-24 10:15:59 +00:00
|
|
|
.mx_ImageView_image {
|
2021-04-24 06:03:39 +00:00
|
|
|
flex-shrink: 0;
|
2021-09-21 15:59:13 +00:00
|
|
|
|
|
|
|
&.mx_ImageView_image_animating {
|
|
|
|
transition: transform 200ms ease 0s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mx_ImageView_image_animatingLoading {
|
|
|
|
transition: transform 300ms ease 0s;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2020-12-19 08:26:09 +00:00
|
|
|
.mx_ImageView_panel {
|
2021-02-24 07:11:53 +00:00
|
|
|
width: 100%;
|
2021-09-21 15:34:50 +00:00
|
|
|
height: var(--image-view-panel-height);
|
2021-02-24 06:54:36 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2021-02-24 07:11:53 +00:00
|
|
|
align-items: center;
|
2021-07-22 19:25:11 +00:00
|
|
|
animation-name: mx_ImageView_panel_keyframes;
|
2021-07-23 06:00:51 +00:00
|
|
|
animation-duration: 300ms;
|
2020-12-19 08:26:09 +00:00
|
|
|
}
|
|
|
|
|
2021-02-24 13:43:33 +00:00
|
|
|
.mx_ImageView_info_wrapper {
|
2021-06-06 01:08:44 +00:00
|
|
|
pointer-events: initial;
|
2021-02-24 13:43:33 +00:00
|
|
|
padding-left: 32px;
|
2018-04-11 23:23:35 +00:00
|
|
|
display: flex;
|
2021-02-24 13:43:33 +00:00
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2021-02-25 10:50:50 +00:00
|
|
|
color: $lightbox-fg-color;
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_info {
|
|
|
|
padding-left: 12px;
|
2021-02-24 19:04:25 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-02 06:31:42 +00:00
|
|
|
.mx_ImageView_info_sender {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2022-05-14 08:31:53 +00:00
|
|
|
.mx_ImageView_title {
|
|
|
|
color: $lightbox-fg-color;
|
|
|
|
font-size: $font-12px;
|
|
|
|
}
|
|
|
|
|
2021-02-25 10:50:50 +00:00
|
|
|
.mx_ImageView_toolbar {
|
|
|
|
padding-right: 16px;
|
2021-06-06 01:08:44 +00:00
|
|
|
pointer-events: initial;
|
2021-02-25 10:50:50 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-07-14 07:06:41 +00:00
|
|
|
gap: calc($button-gap - ($button-size - $icon-size));
|
2021-02-25 10:50:50 +00:00
|
|
|
}
|
|
|
|
|
2020-12-20 18:48:24 +00:00
|
|
|
.mx_ImageView_button {
|
2021-07-14 07:06:41 +00:00
|
|
|
padding: calc(($button-size - $icon-size) / 2);
|
2021-02-24 13:43:33 +00:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
&::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
content: "";
|
2021-07-14 07:06:41 +00:00
|
|
|
height: $icon-size;
|
|
|
|
width: $icon-size;
|
2021-02-24 13:43:33 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
display: block;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_rotateCW::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/rotate-cw.svg");
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_rotateCCW::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/rotate-ccw.svg");
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_zoomOut::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/zoom-out.svg");
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_zoomIn::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/zoom-in.svg");
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_download::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/download.svg");
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
|
|
|
|
2021-02-24 17:13:12 +00:00
|
|
|
.mx_ImageView_button_more::before {
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/more.svg");
|
2021-02-24 17:13:12 +00:00
|
|
|
}
|
|
|
|
|
2021-02-24 13:43:33 +00:00
|
|
|
.mx_ImageView_button_close {
|
2021-07-14 07:06:41 +00:00
|
|
|
padding: calc($button-size - $button-size);
|
2021-02-25 07:10:54 +00:00
|
|
|
border-radius: 100%;
|
2022-07-27 13:39:29 +00:00
|
|
|
background: #21262c; /* same on all themes */
|
2021-02-24 13:43:33 +00:00
|
|
|
&::before {
|
2021-07-14 07:06:41 +00:00
|
|
|
width: $button-size;
|
|
|
|
height: $button-size;
|
2022-12-12 11:24:14 +00:00
|
|
|
mask-image: url("$(res)/img/image-view/close.svg");
|
2021-02-25 07:10:54 +00:00
|
|
|
mask-size: 40%;
|
2021-02-24 13:43:33 +00:00
|
|
|
}
|
2020-12-20 18:48:24 +00:00
|
|
|
}
|
2021-09-21 15:59:13 +00:00
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
.mx_ImageView_image_animating {
|
|
|
|
transition: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_image_animatingLoading {
|
|
|
|
transition: none !important;
|
|
|
|
}
|
|
|
|
}
|