summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/styles/WindowManager.less
blob: bd1e2ab11403f42a621b8eff39a80692d26c2d9c (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
@import 'common';

.oo-ui-windowManager {
	&-modal > .oo-ui-dialog {
		position: fixed;
		width: 0;
		height: 0;
		overflow: hidden;

		&.oo-ui-window-active {
			width: auto;
			height: auto;
			top: 0;
			right: 0;
			bottom: 0;
			left: 0;
			padding: 1em;
		}

		&.oo-ui-window-setup > .oo-ui-window-frame {
			position: absolute;
			right: 0;
			left: 0;
			margin: auto;
			overflow: hidden;
			max-width: 100%;
			max-height: 100%;
		}
	}

	&-fullscreen > .oo-ui-dialog > .oo-ui-window-frame {
		width: 100%;
		height: 100%;
		top: 0;
		bottom: 0;
	}

	.theme-oo-ui-windowManager();
}