mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-15 03:35:10 +00:00
7157729ae8
Aligning to WikimediaUI style guide by replacing colors with standard color palette equivalents, merging close colors (ex: `#E6E6E6` & `#eee` become `#eaecf0` ) and slightly increase contrast on a few to meet WCAG 2.0 level AA criteria. Also: - following other code bases like MobileFrontend or OOjs UI in using `border-radius` property instead of obsolete mixin - removing non-existing browser vendor prefixes in mixins - removing non-used Less variables - bringing CSS/Less code closer to coding standards and - simplifying Less code where applicable Change-Id: Icb936e14ff613471ea1da6df6341ec1b0543cfaf
90 lines
1.3 KiB
Plaintext
90 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: #222;
|
|
|
|
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 img {
|
|
display: block;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
cursor: pointer;
|
|
cursor: zoom-in;
|
|
|
|
&.blurred {
|
|
filter: blur( 3px );
|
|
-webkit-filter: blur( 3px );
|
|
.opacity( 0.8 );
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-image.empty img {
|
|
display: none;
|
|
}
|
|
|
|
.metadata-panel-is-open .mw-mmv-image-wrapper {
|
|
cursor: pointer;
|
|
}
|