mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 12:53:24 +00:00
6b7de4b129
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
29 lines
372 B
Plaintext
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;
|
|
}
|