Skip to content

Commit 233be88

Browse files
committed
#514: User sees content snapshot on Category Page in Admin Panel - Fixed stage background in full-screen
1 parent 8b8b4f7 commit 233be88

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_page-builder.less

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,18 +294,47 @@
294294

295295
.pagebuilder-wysiwyg-snapshot {
296296
.pagebuilder-stage {
297-
background-color: @color-white;
298-
-webkit-transition: .3s ease-in-out;
299-
-moz-transition: .3s ease-in-out;
300-
transition: .3s ease-in-out;
297+
-webkit-transition: .35s ease-in-out;
298+
-moz-transition: .35s ease-in-out;
299+
transition: .35s ease-in-out;
301300
margin-left: auto;
302301
}
303302

303+
.element-children.content-type-container.root-container-container {
304+
background-color: @color-white;
305+
}
306+
304307
.pagebuilder-stage-wrapper {
305308
transition: none;
306309
background-color: transparent;
307310

308311
&.stage-full-screen {
312+
.keyframes(fade-in;{
313+
0% {
314+
background-color: transparent;
315+
}
316+
100% {
317+
background-color: @color-white;
318+
}
319+
});
320+
.animation(fade-in .175s ease-in-out both);
321+
background-color: @color-white;
322+
323+
&.transition-out {
324+
.keyframes(fade-out;{
325+
0% {
326+
background-color: @color-white;
327+
}
328+
50% {
329+
background-color: @color-white;
330+
}
331+
100% {
332+
background-color: transparent;
333+
}
334+
});
335+
.animation(fade-out .35s ease-in-out both);
336+
}
337+
309338
.pagebuilder-stage {
310339
width: calc(~"100% - 150px");
311340
top: 0;
@@ -326,7 +355,7 @@
326355
transform: translateY(0);
327356
}
328357
});
329-
.animation(slide-in-top .3s ease-in-out both);
358+
.animation(slide-in-top .35s ease-in-out both);
330359
opacity: 1;
331360
transition: none;
332361
visibility: visible;
@@ -343,7 +372,7 @@
343372
transform: translateY(-41px);
344373
}
345374
});
346-
.animation(slide-out-top .3s ease-in-out both);
375+
.animation(slide-out-top .35s ease-in-out both);
347376
transition: none;
348377
z-index: 801;
349378
}
@@ -360,7 +389,7 @@
360389
transform: translateX(0);
361390
}
362391
});
363-
.animation(slide-in-left .3s ease-in-out both);
392+
.animation(slide-in-left .35s ease-in-out both);
364393
opacity: 1;
365394
transition: none;
366395
visibility: visible;
@@ -377,7 +406,7 @@
377406
transform: translateX(-150px);
378407
}
379408
});
380-
.animation(slide-out-left .3s ease-in-out both);
409+
.animation(slide-out-left .35s ease-in-out both);
381410
transition: none;
382411
z-index: 801;
383412
}

app/code/Magento/PageBuilder/view/adminhtml/web/template/page-builder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77
<div class="pagebuilder-stage-wrapper"
8-
css="'stage-full-screen': isFullScreen, 'stage-content-snapshot': isSnapshot"
8+
css="'stage-full-screen': isFullScreen, 'stage-content-snapshot': isSnapshot, 'transition-out': isSnapshotTransition"
99
ko-style="wrapperStyles">
1010
<div class="admin__field pagebuilder-header"
1111
css="visible: panel.isVisible(), 'transition-out': isSnapshotTransition()"

0 commit comments

Comments
 (0)