diff --git a/src/definitions/modules/modal.less b/src/definitions/modules/modal.less index 479786a1de..ebc4a2be8c 100755 --- a/src/definitions/modules/modal.less +++ b/src/definitions/modules/modal.less @@ -311,17 +311,17 @@ } /* Resort to margin positioning if legacy */ -.ui.legacy.modal, -.ui.legacy.page.dimmer > .ui.modal { - top: 50%; - left: 50%; +.ui.legacy.legacy.modal, +.ui.legacy.legacy.page.dimmer > .ui.modal { + top: 50% !important; + left: 50% !important; } -.ui.legacy.page.dimmer > .ui.scrolling.modal, -.ui.page.dimmer > .ui.scrolling.legacy.modal, -.ui.top.aligned.legacy.page.dimmer > .ui.modal, -.ui.top.aligned.dimmer > .ui.legacy.modal { - top: auto; +.ui.legacy.legacy.page.dimmer > .ui.scrolling.modal, +.ui.page.dimmer > .ui.scrolling.legacy.legacy.modal, +.ui.top.aligned.legacy.legacy.page.dimmer > .ui.modal, +.ui.top.aligned.dimmer > .ui.legacy.legacy.modal { + top: auto !important; } /* Tablet and Mobile */