summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/MultimediaViewer/resources/mmv/mmv.bootstrap.less
blob: 825472431abd57e14d4489c694a41c23750e8fe3 (plain)
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
.mw-mmv-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	background-color: #000;
}

body.mw-mmv-lightbox-open {
	overflow-y: auto;

	/* stylelint-disable selector-max-id */
	#mw-page-base,
	#mw-head-base,
	#mw-navigation,
	#content,
	#footer,
	#globalWrapper { // monobook
		/** Stop the article from scrolling in the background - skin-specific but works in any browser */
		display: none;
	}
	/* stylelint-enable selector-max-id */

	> * {
		/** Stop the article from scrolling in the background - works with any skin but needs modern browser */
		display: none;
	}
	> .mw-mmv-overlay,
	> .mw-mmv-wrapper {
		display: block;
	}
}

.mw-mmv-filepage-buttons {
	margin-top: 5px;

	.mw-mmv-view-expanded,
	.mw-mmv-view-config {
		display: block;
		// Work around some weirdness of MW-UI buttons. T127052
		line-height: inherit;
	}

	.mw-mmv-view-expanded.mw-ui-icon:before {
		/* @embed */
		background-image: url( img/expand.svg );
	}

	.mw-mmv-view-config.mw-ui-icon:before {
		/* @embed */
		background-image: url( img/gear.svg );
		opacity: 0.75;

		&:hover {
			opacity: 1;
		}
	}
}

.mw-mmv-button {
	background-color: transparent;
	min-width: 0;
	border: 0;
	padding: 0;
	overflow-x: hidden;
	text-indent: -9999em;
}