@import 'common';

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

		&.oo-ui-window-load {
			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%;

			> iframe {
				width: 100%;
				height: 100%;
			}
		}

		> .oo-ui-window-frame {
			visibility: hidden;
		}

		&.oo-ui-window-ready > .oo-ui-window-frame {
			visibility: visible;
		}
	}

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

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

@import 'common';

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

		&.oo-ui-window-load {
			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%;

			> iframe {
				width: 100%;
				height: 100%;
			}
		}

		.oo-ui-window-frame {
			visibility: hidden;
		}

		&.oo-ui-window-ready > .oo-ui-window-frame {
			visibility: visible;
		}
	}

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

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

Revert "Followup ca6a16f: use parent selector both for hiding and showing windows"
Revert "Followup ca6a16f: use parent selector both for hiding and showing windows"

So that I can revert I8046a454657a

This reverts commit f1abca8e8242cd9ffed5381226ce065d89d38df4.

Change-Id: Ia3687016887ff7398978862709246dfe09e03e80
