2018-04-12 01:23:35 +02: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 09:26:09 +01:00
|
|
|
.mx_ImageView_content {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
2020-12-20 19:48:24 +01:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2018-04-12 01:23:35 +02:00
|
|
|
|
2020-12-20 17:40:16 +01:00
|
|
|
overflow: hidden;
|
2020-12-20 10:07:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mainImage {
|
2020-12-20 19:48:24 +01:00
|
|
|
object-fit: contain;
|
|
|
|
pointer-events: all;
|
|
|
|
|
|
|
|
max-width: 100vw;
|
2020-12-20 20:15:25 +01:00
|
|
|
max-height: 80vh;
|
2020-12-20 19:48:24 +01:00
|
|
|
min-width: 100px;
|
|
|
|
min-height: 100px;
|
2020-12-20 17:40:16 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: grab;
|
|
|
|
}
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
2020-12-19 09:26:09 +01:00
|
|
|
.mx_ImageView_panel {
|
2020-12-20 18:19:11 +01:00
|
|
|
position: absolute;
|
2020-12-20 19:48:24 +01:00
|
|
|
z-index: 1000;
|
|
|
|
align-self: flex-start;
|
|
|
|
pointer-events: all;
|
2020-12-19 09:26:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_toolbar {
|
2020-12-20 19:48:24 +01:00
|
|
|
right: 0;
|
|
|
|
padding: 50px 50px 0 0;
|
2020-12-19 09:26:09 +01:00
|
|
|
display: flex;
|
2020-12-20 19:48:24 +01:00
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_label {
|
2020-12-20 19:48:24 +01:00
|
|
|
left: 0;
|
|
|
|
padding: 50px 0 0 50px;
|
2018-04-12 01:23:35 +02:00
|
|
|
text-align: left;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 240px;
|
|
|
|
color: $lightbox-fg-color;
|
|
|
|
}
|
|
|
|
|
2020-12-20 19:48:24 +01:00
|
|
|
.mx_ImageView_button {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
2018-04-12 01:23:35 +02:00
|
|
|
.mx_ImageView_name {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-18px;
|
2018-04-12 01:23:35 +02:00
|
|
|
margin-bottom: 6px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_metadata {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-15px;
|
2018-04-12 01:23:35 +02:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_size {
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-11px;
|
2018-04-12 01:23:35 +02:00
|
|
|
}
|