@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();
}
