2023-04-03 20:44:15 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2023-05-10 01:33:44 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2020-04-18 04:13:01 +00:00
|
|
|
@import '../mmv.mixins.less';
|
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;
|
2023-05-10 01:33:44 +00:00
|
|
|
.user-select( none );
|
2014-03-01 01:10:51 +00:00
|
|
|
|
2014-02-26 20:09:37 +00:00
|
|
|
&.empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-11-29 05:13:08 +00:00
|
|
|
|
2014-03-01 01:10:51 +00:00
|
|
|
&.error {
|
2023-04-03 20:44:15 +00:00
|
|
|
background-color: #202122;
|
2015-01-13 21:07:37 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
a,
|
|
|
|
a:visited {
|
2015-01-13 21:07:37 +00:00
|
|
|
cursor: pointer;
|
2024-05-03 18:24:00 +00:00
|
|
|
color: @color-progressive;
|
2015-01-13 21:07:37 +00:00
|
|
|
}
|
2014-03-01 01:10:51 +00:00
|
|
|
}
|
2015-01-13 21:07:37 +00:00
|
|
|
|
|
|
|
.error-box {
|
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: zoom-in;
|
2014-09-12 18:05:13 +00:00
|
|
|
|
2016-07-18 14:24:02 +00:00
|
|
|
&.blurred {
|
|
|
|
-webkit-filter: blur( 3px );
|
2022-05-19 22:58:01 +00:00
|
|
|
filter: blur( 3px );
|
2019-07-29 16:56:43 +00:00
|
|
|
opacity: 0.8;
|
2016-07-18 14:24:02 +00:00
|
|
|
}
|
|
|
|
|
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,
|
2023-01-16 05:57:04 +00:00
|
|
|
&.webp,
|
2016-07-18 14:24:02 +00:00
|
|
|
&.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
|
|
|
}
|