Skip to content

Commit f3cb720

Browse files
committed
MC-3571: Implement overlay for MC-1405
Implement content type overlay styles
1 parent 9ee8c0c commit f3cb720

File tree

1 file changed

+42
-0
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type

1 file changed

+42
-0
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/_preview.less

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,30 @@
152152
}
153153
}
154154

155+
&:before {
156+
&:extend(.pagebuilder-icon all);
157+
-moz-transition: opacity 200ms, top 200ms, visibility 200ms;
158+
-o-transition: opacity 200ms, top 200ms, visibility 200ms;
159+
-webkit-transition: opacity 200ms, top 200ms, visibility 200ms;
160+
align-items: center;
161+
background: rgba(238, 238, 238, .7);
162+
color: @color-gray65;
163+
content: @icon-pagebuilder-hide__content;
164+
display: flex;
165+
font-size: 3.5em;
166+
height: 100%;
167+
justify-content: center;
168+
left: 0;
169+
line-height: 0;
170+
opacity: 0;
171+
position: absolute;
172+
text-shadow: 0 0 25px rgba(238, 238, 238, .7);
173+
top: 0;
174+
transition: opacity 200ms, top 200ms, visibility 200ms;
175+
visibility: hidden;
176+
width: 100%;
177+
z-index: 15;
178+
}
155179
}
156180

157181
.no-user-select {
@@ -560,3 +584,21 @@
560584
}
561585
}
562586
}
587+
588+
.pagebuilder-content-type-hidden {
589+
.pagebuilder-system-border-hover {
590+
z-index: 10;
591+
}
592+
.pagebuilder-display-label {
593+
z-index: 12;
594+
}
595+
> .pagebuilder-content-type:before {
596+
opacity: 1;
597+
visibility: visible;
598+
}
599+
.pagebuilder-drop-indicator,
600+
.pagebuilder-content-type.type-container.empty-container > .content-type-container:before {
601+
opacity: 0 !important;
602+
visibility: hidden !important;
603+
}
604+
}

0 commit comments

Comments
 (0)