Debian Codegraph @

extensions/MultimediaViewer/resources/mmv/ui/mmv.ui.canvas.less

raw
1 @import 'mediawiki.skin.variables.less';
2 @import 'mediawiki.mixins.less';
3 @import '../mmv.mixins.less';
4
5 .mw-mmv-image {
6 display: table-cell;
7 width: 100%;
8 height: 100%;
9 vertical-align: middle;
10 .user-select( none );
11
12 &.empty {
13 display: none;
14 }
15
16 &.error {
17 background-color: #202122;
18
19 a,
20 a:visited {
21 cursor: pointer;
22 color: @color-progressive;
23 }
24 }
25
26 .error-box {
27 background: url( img/error-media-icon.svg ) no-repeat 0 0;
28 background-size: 110px 110px;
29 position: absolute;
30 left: 50%;
31 margin-left: -350px;
32 top: 50%;
33 margin-top: -100px;
34 padding: 0 20px 0 160px;
35 color: #fff;
36 max-width: 520px;
37
38 .mw-mmv-error-text {
39 font-size: 48px;
40 }
41
42 .mw-mmv-error-description {
43 margin-top: 30px;
44 font-size: 22px;
45 }
46 }
47 }
48
49 .mw-mmv-image img {
50 display: block;
51 margin-right: auto;
52 margin-left: auto;
53 /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
54 cursor: zoom-in;
55
56 /* Allowlist file types that are potentially transparent.
57 We don't set it for other file types because Media Viewer plugins
58 can find that undesirable (eg. 3d) */
59 &.gif,
60 &.png,
61 &.webp,
62 &.svg,
63 &.tiff,
64 &.tif {
65 background: url( checker.png ) repeat;
66 }
67
68 &.mw-mmv-dialog-is-open {
69 cursor: default;
70 }
71
72 .metadata-panel-is-open & {
73 cursor: pointer;
74 }
75 }
76
77 .mw-mmv-image.empty img {
78 display: none;
79 }
80
81 .metadata-panel-is-open .mw-mmv-image-wrapper {
82 cursor: pointer;
83 }