Skip to content

Commit f5e6dc0

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-39961' into PR
2 parents 81a36f4 + 5886a27 commit f5e6dc0

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

app/design/frontend/Magento/blank/web/css/source/components/_modals_extend.less

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,19 @@
9191
right: 0;
9292
top: 0;
9393
}
94+
95+
body {
96+
&._has-modal-custom {
97+
.modal-custom-overlay {
98+
height: 100vh;
99+
left: 0;
100+
position: fixed;
101+
top: 0;
102+
width: 100vw;
103+
z-index: @overlay__z-index;
104+
}
105+
}
106+
}
94107
}
95108

96109
//
@@ -113,18 +126,14 @@
113126
min-height: 100%;
114127
}
115128
}
116-
body._has-modal-custom {
117-
height: 100vh;
118-
overflow: hidden;
119-
width: 100vw;
120-
.modal-custom-overlay {
121-
.css(background-color, @modal-overlay__background-color);
129+
body {
130+
&._has-modal-custom {
122131
height: 100vh;
123-
left: 0;
124-
position: fixed;
125-
top: 0;
132+
overflow: hidden;
126133
width: 100vw;
127-
z-index: @overlay__z-index;
134+
.modal-custom-overlay {
135+
.css(background-color, @modal-overlay__background-color);
136+
}
128137
}
129138
}
130139
}

0 commit comments

Comments
 (0)