83e1a7a707
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
149 lines
3 KiB
SCSS
149 lines
3 KiB
SCSS
/*
|
|
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%;
|
|
}
|
|
|
|
.mx_ImageView_content {
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mx_ImageView_image_wrapper {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mx_ImageView_image {
|
|
object-fit: contain;
|
|
pointer-events: all;
|
|
|
|
max-width: 100vw;
|
|
max-height: 70vh;
|
|
min-width: 100px;
|
|
min-height: 100px;
|
|
|
|
border-radius: 8px;
|
|
|
|
&:hover {
|
|
cursor: grab;
|
|
}
|
|
}
|
|
|
|
.mx_ImageView_panel {
|
|
width: 100%;
|
|
height: 68px;
|
|
z-index: 1000;
|
|
align-self: flex-start;
|
|
pointer-events: all;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.mx_ImageView_toolbar {
|
|
padding-right: 16px;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.mx_ImageView_toolbar_buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.mx_ImageView_info_wrapper {
|
|
padding-left: 32px;
|
|
left: 0;
|
|
text-align: left;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: row;
|
|
color: $lightbox-fg-color;
|
|
align-items: center;
|
|
}
|
|
|
|
.mx_ImageView_info {
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.mx_ImageView_button {
|
|
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');
|
|
}
|
|
|
|
.mx_ImageView_button_more::before {
|
|
mask-image: url('$(res)/img/image-view/more.svg');
|
|
}
|
|
|
|
.mx_ImageView_button_close {
|
|
padding-left: 32px;
|
|
&::before {
|
|
width: 32px;
|
|
height: 32px;
|
|
mask-image: url('$(res)/img/image-view/close.svg');
|
|
background-color: none;
|
|
}
|
|
}
|
|
|
|
.mx_ImageView_metadata {
|
|
font-size: $font-15px;
|
|
opacity: 0.5;
|
|
}
|