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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* 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 08:26:09 +00:00
|
|
|
.mx_ImageView_content {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2020-12-19 08:26:09 +00:00
|
|
|
.mx_ImageView_imageBox {
|
|
|
|
overflow: auto;
|
|
|
|
margin: 0 50px 50px 50px;
|
|
|
|
flex: 1;
|
2018-04-11 23:23:35 +00:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_content img {
|
2020-12-19 08:26:09 +00:00
|
|
|
flex: 1;
|
|
|
|
//max-width: 100%;
|
2018-04-11 23:23:35 +00:00
|
|
|
/* XXX: max-height interacts badly with flex on Chrome and doesn't relayout properly until you refresh */
|
2020-12-19 08:26:09 +00:00
|
|
|
//max-height: 100%;
|
2018-04-11 23:23:35 +00:00
|
|
|
/* object-fit hack needed for Chrome due to Chrome not re-laying-out until you refresh */
|
|
|
|
object-fit: contain;
|
2018-12-31 23:22:40 +00:00
|
|
|
/* background-image: url('$(res)/img/trans.png'); */
|
2018-04-11 23:23:35 +00:00
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2020-12-19 08:26:09 +00:00
|
|
|
.mx_ImageView_panel {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_toolbar {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_button {
|
|
|
|
padding: 5px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_label {
|
|
|
|
text-align: left;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 100%;
|
|
|
|
max-width: 240px;
|
|
|
|
color: $lightbox-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_name {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-18px;
|
2018-04-11 23:23:35 +00:00
|
|
|
margin-bottom: 6px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_metadata {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-15px;
|
2018-04-11 23:23:35 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ImageView_size {
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-11px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|