2018-04-12 02:23:35 +03: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This has got to be the most fragile piece of CSS ever written.
|
|
|
|
But empirically it works on Chrome/FF/Safari
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ImageView {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2020-12-19 11:26:09 +03:00
|
|
|
.mx_ImageView_content {
|
|
|
|
width: 100%;
|
|
|
|
|
2021-02-24 13:15:59 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_image_wrapper {
|
2020-12-19 11:26:09 +03:00
|
|
|
display: flex;
|
2020-12-20 21:48:24 +03:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-02-24 13:15:59 +03:00
|
|
|
height: 100%;
|
2020-12-20 19:40:16 +03:00
|
|
|
overflow: hidden;
|
2020-12-20 12:07:03 +03:00
|
|
|
}
|
|
|
|
|
2021-02-24 13:15:59 +03:00
|
|
|
.mx_ImageView_image {
|
2020-12-20 21:48:24 +03:00
|
|
|
object-fit: contain;
|
|
|
|
pointer-events: all;
|
|
|
|
|
|
|
|
max-width: 100vw;
|
2020-12-20 22:18:21 +03:00
|
|
|
max-height: 70vh;
|
2020-12-20 21:48:24 +03:00
|
|
|
min-width: 100px;
|
|
|
|
min-height: 100px;
|
2020-12-20 19:40:16 +03:00
|
|
|
|
2021-02-24 13:15:59 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
|
2020-12-20 19:40:16 +03:00
|
|
|
&:hover {
|
|
|
|
cursor: grab;
|
|
|
|
}
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-12-19 11:26:09 +03:00
|
|
|
.mx_ImageView_panel {
|
2021-02-24 10:11:53 +03:00
|
|
|
width: 100%;
|
|
|
|
height: 68px;
|
2020-12-20 21:48:24 +03:00
|
|
|
z-index: 1000;
|
|
|
|
align-self: flex-start;
|
|
|
|
pointer-events: all;
|
2021-02-24 09:54:36 +03:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2021-02-24 10:11:53 +03:00
|
|
|
align-items: center;
|
2020-12-19 11:26:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_toolbar {
|
2021-02-24 16:43:33 +03:00
|
|
|
padding-right: 16px;
|
2020-12-20 21:48:24 +03:00
|
|
|
right: 0;
|
2021-02-24 10:11:53 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_toolbar_buttons {
|
2020-12-19 11:26:09 +03:00
|
|
|
display: flex;
|
2021-02-24 10:11:53 +03:00
|
|
|
align-items: center;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2021-02-24 16:43:33 +03:00
|
|
|
.mx_ImageView_info_wrapper {
|
|
|
|
padding-left: 32px;
|
2020-12-20 21:48:24 +03:00
|
|
|
left: 0;
|
2018-04-12 02:23:35 +03:00
|
|
|
text-align: left;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2021-02-24 16:43:33 +03:00
|
|
|
flex-direction: row;
|
2018-04-12 02:23:35 +03:00
|
|
|
color: $lightbox-fg-color;
|
2021-02-24 16:43:33 +03:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_info {
|
|
|
|
padding-left: 12px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
2020-12-20 21:48:24 +03:00
|
|
|
.mx_ImageView_button {
|
2021-02-24 16:43:33 +03:00
|
|
|
padding-left: 24px;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
height: 22px;
|
|
|
|
width: 22px;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
display: block;
|
|
|
|
background-color: $icon-button-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_rotateCW::before {
|
|
|
|
mask-image: url('$(res)/img/image-view/rotate-cw.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_rotateCCW::before {
|
|
|
|
mask-image: url('$(res)/img/image-view/rotate-ccw.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_zoomOut::before {
|
|
|
|
mask-image: url('$(res)/img/image-view/zoom-out.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_zoomIn::before {
|
|
|
|
mask-image: url('$(res)/img/image-view/zoom-in.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button_download::before {
|
|
|
|
mask-image: url('$(res)/img/image-view/download.svg');
|
|
|
|
}
|
|
|
|
|
2021-02-24 20:13:12 +03:00
|
|
|
.mx_ImageView_button_more::before {
|
|
|
|
mask-image: url('$(res)/img/image-view/more.svg');
|
|
|
|
}
|
|
|
|
|
2021-02-24 16:43:33 +03:00
|
|
|
.mx_ImageView_button_close {
|
|
|
|
padding-left: 32px;
|
|
|
|
&::before {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
mask-image: url('$(res)/img/image-view/close.svg');
|
|
|
|
background-color: none;
|
|
|
|
}
|
2020-12-20 21:48:24 +03:00
|
|
|
}
|
|
|
|
|
2018-04-12 02:23:35 +03:00
|
|
|
.mx_ImageView_metadata {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-15px;
|
2018-04-12 02:23:35 +03:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|