File: mmv.ui.canvas.less

package info (click to toggle)
mediawiki 1%3A1.35.13-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 274,932 kB
  • sloc: php: 677,563; javascript: 572,709; sql: 11,565; python: 4,447; xml: 3,145; sh: 892; perl: 788; ruby: 496; pascal: 365; makefile: 128
file content (86 lines) | stat: -rw-r--r-- 1,344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@import '../mmv.mixins.less';

.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 {
		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;
}