mediawiki-extensions-Multim.../resources/mmv/ui/mmv.ui.canvas.less
Aaron Arcos 6b7de4b129 Fix resize issues (Part III, Fin)
Last round of fixes and refactorings regarding resize issues
and the Canvas component:
  * Consolidate all the width calculation logic inside the Canvas component
  * Consolidate image resizing logic in the Canvas component
  * Fix size problem with SVG images
  * Clean up comments and tests

Change-Id: I0198cc1e3a45f7287b9a7494f73a8f158303f886
Bug: 56454
Mingle: 239
2014-03-05 00:14:54 +00:00

29 lines
372 B
Plaintext

@import "mmv.mixins";
.mlb-image {
display: table-cell;
width: 100%;
height: 100%;
vertical-align: middle;
.unselectable;
&.empty {
display: none;
}
}
.mlb-image.empty img {
display: none;
}
.mlb-image img.blurred {
filter: blur(3px);
-webkit-filter: blur(3px);
opacity: 0.8;
}
.mlb-image img {
display: block;
margin-right: auto;
margin-left: auto;
}