Skip to content

Commit 9f02737

Browse files
author
Mykhailo Miroshnikov
committed
Merge branch 'admin-styles-migration' of github.corp.ebay.com:magento-webdev/magento2ce into MAGETWO-34476
2 parents 8239220 + 2fd05cf commit 9f02737

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

app/code/Magento/Widget/view/adminhtml/layout/adminhtml_widget_instance_edit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<head>
1010
<link src="prototype/window.js"/>
1111
<css src="prototype/windows/themes/default.css"/>
12-
<css src="Magento_Theme::prototype/magento.css"/>
1312
</head>
1413
<body>
1514
<referenceContainer name="content">

app/design/adminhtml/Magento/backend/web/css/override.less

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,8 +1983,6 @@ body {
19831983
.page-wrapper {
19841984
background-color: #ffffff;
19851985
padding-left: 8.8rem;
1986-
position: relative;
1987-
z-index: 1;
19881986
}
19891987
.page-content {
19901988
padding-left: 3rem;
@@ -2564,7 +2562,7 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
25642562
}
25652563
.ui-dialog .main-col .breadcrumbs li:after,
25662564
.ui-dialog .magento_message .breadcrumbs li:after {
2567-
content: "";
2565+
content: '';
25682566
margin: 0 0.5rem 0 0;
25692567
}
25702568
.ui-dialog .main-col #contents-uploader,
@@ -2669,6 +2667,7 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
26692667
}
26702668
.popup-window {
26712669
background: #ffffff;
2670+
z-index: 1010 !important;
26722671
}
26732672
.popup-window .table_window > tbody > tr > td {
26742673
background: #ffffff;
@@ -2691,7 +2690,7 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
26912690
margin: 0 0 0 3rem;
26922691
}
26932692
.overlay_magento {
2694-
z-index: 1000;
2693+
z-index: 800 !important;
26952694
}
26962695
.fade {
26972696
z-index: 1000;

app/design/adminhtml/Magento/backend/web/css/source/_popups.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@
392392

393393
.popup-window {
394394
background: @popup__background-color;
395+
&.dialog {
396+
z-index: 1010 !important;
397+
}
395398

396399
.table_window > tbody > tr > td {
397400
background: @popup__background-color;
@@ -435,7 +438,7 @@
435438

436439
.overlay_magento {
437440
&:extend(.ui-widget-overlay all);
438-
z-index: 1000;
441+
z-index: 800 !important;
439442
}
440443

441444
//

app/design/adminhtml/Magento/backend/web/css/source/_structure.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ body {
2929
.page-wrapper {
3030
background-color: @page-wrapper__background-color;
3131
padding-left: @page-wrapper__indent-left;
32-
position: relative;
33-
z-index: @page-wrapper__z-index__base; // Base z-index for page wrapper to prevent inner page element overlap with pop-ups
3432
}
3533

3634
.page-content {

lib/web/mage/adminhtml/wysiwyg/widget.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,19 @@ define([
380380
title: this.config.buttons.open,
381381
modal: true,
382382
resizable: false,
383-
zIndex: widgetTools.getMaxZIndex(),
384383
width: '75%',
385384
dialogClass: 'popup-window',
385+
position: {
386+
my: 'left top',
387+
at: 'center top',
388+
of: 'body'
389+
},
386390
open: function () {
387391
jQuery(this).closest('.ui-dialog').addClass('ui-dialog-active');
388392
jQuery(this).addClass('magento_message');
393+
394+
var topMargin = jQuery(this).closest('.ui-dialog').children('.ui-dialog-titlebar').outerHeight() - 30;
395+
jQuery(this).closest('.ui-dialog').css('margin-top', topMargin);
389396
},
390397
close: function(event, ui) {
391398
jQuery(this).closest('.ui-dialog').removeClass('ui-dialog-active');

0 commit comments

Comments
 (0)