2016-07-18 14:24:02 +00:00
|
|
|
@import '../mmv.mixins';
|
2014-02-26 20:09:37 +00:00
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image {
|
2014-02-26 20:09:37 +00:00
|
|
|
display: table-cell;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
.unselectable;
|
2014-03-01 01:10:51 +00:00
|
|
|
|
2014-02-26 20:09:37 +00:00
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-03-01 01:10:51 +00:00
|
|
|
&.error {
|
2015-01-13 21:07:37 +00:00
|
|
|
background-color: #333;
|
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
a,
|
|
|
|
a:visited {
|
2015-01-13 21:07:37 +00:00
|
|
|
cursor: pointer;
|
|
|
|
color: #3472e5;
|
|
|
|
}
|
2014-03-01 01:10:51 +00:00
|
|
|
}
|
2015-01-13 21:07:37 +00:00
|
|
|
|
|
|
|
.error-box {
|
|
|
|
/* @embed */
|
2016-07-18 14:24:02 +00:00
|
|
|
background: url( img/error-media-icon.svg ) no-repeat 0 0;
|
2015-01-13 21:07:37 +00:00
|
|
|
background-size: 110px 110px;
|
|
|
|
|
2014-03-01 01:10:51 +00:00
|
|
|
position: absolute;
|
2015-01-13 21:07:37 +00:00
|
|
|
left: 50%;
|
|
|
|
margin-left: -350px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -100px;
|
|
|
|
|
|
|
|
padding: 0 20px 0 160px;
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
max-width: 520px;
|
|
|
|
|
|
|
|
.mw-mmv-error-text {
|
|
|
|
font-size: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-mmv-error-description {
|
|
|
|
margin-top: 30px;
|
|
|
|
font-size: 22px;
|
|
|
|
}
|
2014-03-01 01:10:51 +00:00
|
|
|
}
|
2014-02-26 20:09:37 +00:00
|
|
|
}
|
|
|
|
|
2014-03-31 21:33:12 +00:00
|
|
|
.mw-mmv-image img {
|
2014-02-26 20:09:37 +00:00
|
|
|
display: block;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
2014-09-04 21:50:14 +00:00
|
|
|
cursor: pointer;
|
|
|
|
cursor: zoom-in;
|
2014-09-12 18:05:13 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
&.blurred {
|
|
|
|
filter: blur( 3px );
|
|
|
|
-webkit-filter: blur( 3px );
|
|
|
|
.opacity( 0.8 );
|
|
|
|
}
|
|
|
|
|
2016-04-03 09:18:26 +00:00
|
|
|
/* Whitelist file types that are potentially transparent.
|
|
|
|
We don't set it for other file types because Media Viewer plugins
|
|
|
|
can find that undesirable (eg. 3d) */
|
2016-07-18 14:24:02 +00:00
|
|
|
&.gif,
|
|
|
|
&.png,
|
|
|
|
&.svg,
|
|
|
|
&.tiff,
|
|
|
|
&.tif {
|
2016-04-03 09:18:26 +00:00
|
|
|
background: url( checker.png ) repeat;
|
|
|
|
}
|
|
|
|
|
2014-09-12 18:05:13 +00:00
|
|
|
&.mw-mmv-dialog-is-open {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2016-04-03 09:18:26 +00:00
|
|
|
|
2014-11-22 02:46:51 +00:00
|
|
|
.metadata-panel-is-open & {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-02-26 20:09:37 +00:00
|
|
|
}
|
2014-11-22 02:46:51 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
.mw-mmv-image.empty img {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2014-11-22 02:46:51 +00:00
|
|
|
.metadata-panel-is-open .mw-mmv-image-wrapper {
|
|
|
|
cursor: pointer;
|
2016-07-18 14:24:02 +00:00
|
|
|
}
|