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%;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_lhs {
|
|
|
|
order: 1;
|
|
|
|
flex: 1 1 10%;
|
|
|
|
min-width: 60px;
|
|
|
|
// background-color: #080;
|
|
|
|
// height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_content {
|
|
|
|
order: 2;
|
|
|
|
/* min-width hack needed for FF */
|
|
|
|
min-width: 0px;
|
|
|
|
height: 90%;
|
|
|
|
flex: 15 15 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_content img {
|
|
|
|
max-width: 100%;
|
|
|
|
/* XXX: max-height interacts badly with flex on Chrome and doesn't relayout properly until you refresh */
|
|
|
|
max-height: 100%;
|
|
|
|
/* object-fit hack needed for Chrome due to Chrome not re-laying-out until you refresh */
|
|
|
|
object-fit: contain;
|
2019-01-01 02:22:40 +03:00
|
|
|
/* background-image: url('$(res)/img/trans.png'); */
|
2018-04-12 02:23:35 +03:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_labelWrapper {
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
right: 0px;
|
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_label {
|
|
|
|
text-align: left;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
padding-left: 30px;
|
|
|
|
padding-right: 30px;
|
|
|
|
min-height: 100%;
|
|
|
|
max-width: 240px;
|
|
|
|
color: $lightbox-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_cancel {
|
|
|
|
position: absolute;
|
2019-02-14 18:51:45 +03:00
|
|
|
// hack for mx_Dialog having a top padding of 40px
|
|
|
|
top: 40px;
|
2018-04-12 02:23:35 +03:00
|
|
|
right: 0px;
|
2019-03-30 09:31:15 +03:00
|
|
|
padding-top: 35px;
|
|
|
|
padding-right: 35px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_rotateClockwise {
|
|
|
|
position: absolute;
|
|
|
|
top: 40px;
|
|
|
|
right: 70px;
|
|
|
|
padding-top: 35px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_rotateCounterClockwise {
|
|
|
|
position: absolute;
|
|
|
|
top: 40px;
|
|
|
|
right: 105px;
|
|
|
|
padding-top: 35px;
|
2018-04-12 02:23:35 +03:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_name {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-18px;
|
2018-04-12 02:23:35 +03:00
|
|
|
margin-bottom: 6px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_download {
|
|
|
|
display: table;
|
|
|
|
margin-top: 24px;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: $lightbox-bg-color;
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-14px;
|
2018-04-12 02:23:35 +03:00
|
|
|
padding: 9px;
|
|
|
|
border: 1px solid $lightbox-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_size {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-11px;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_link {
|
2019-07-09 20:15:10 +03:00
|
|
|
color: $lightbox-fg-color !important;
|
|
|
|
text-decoration: none !important;
|
2018-04-12 02:23:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button {
|
2020-03-31 17:26:23 +03:00
|
|
|
font-size: $font-15px;
|
2018-04-12 02:23:35 +03:00
|
|
|
opacity: 0.5;
|
|
|
|
margin-top: 18px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_shim {
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_rhs {
|
|
|
|
order: 3;
|
|
|
|
flex: 1 1 10%;
|
|
|
|
min-width: 300px;
|
|
|
|
// background-color: #800;
|
|
|
|
// height: 20px;
|
|
|
|
}
|