mediawiki-extensions-Multim.../resources/mmv/ui/mmv.ui.canvas.less
Gilles Dubuc 53a3d9a379 Make Media Viewer pluggable for the 3D extension
Some of the code encountered accessed mw.config directly,
I cleaned that up by migrating to mmv.Config, which is an
abstraction added to avoid peeking at mw.config directly.

Bug: T132064
Change-Id: I2a95ba703e6c7f46296f8e435bceec769dceebf9
2016-04-15 16:43:45 +02:00

84 lines
1.3 KiB
Plaintext

@import "../mmv.mixins";
.mw-mmv-image {
display: table-cell;
width: 100%;
height: 100%;
vertical-align: middle;
.unselectable;
&.empty {
display: none;
}
&.error {
background-color: #333;
a, a:visited {
cursor: pointer;
color: #3472e5;
}
}
.error-box {
/* @embed */
background: url(img/error-media-icon.svg) no-repeat 0 0;
background-size: 110px 110px;
position: absolute;
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;
}
}
}
.mw-mmv-image.empty img {
display: none;
}
.mw-mmv-image img.blurred {
filter: blur(3px);
-webkit-filter: blur(3px);
.opacity(0.8);
}
.mw-mmv-image img {
display: block;
margin-right: auto;
margin-left: auto;
cursor: pointer;
cursor: zoom-in;
/* 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) */
&.gif, &.png, &.svg, &.tiff, &.tif {
background: url( checker.png ) repeat;
}
&.mw-mmv-dialog-is-open {
cursor: default;
}
.metadata-panel-is-open & {
cursor: pointer;
}
}
.metadata-panel-is-open .mw-mmv-image-wrapper {
cursor: pointer;
}