Skip to content

Commit d47c7da

Browse files
committed
#514: User sees content snapshot on Category Page in Admin Panel - Added styles fixes
1 parent a784669 commit d47c7da

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_config.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@
5555
.admin__fieldset {
5656
> .admin__field.admin__field-wide.admin__field-page-builder[class]:not(.admin__field-option) {
5757
> .admin__field-label {
58-
text-align: right;
59-
min-height: 32px;
58+
margin-bottom: @indent__xs;
6059
margin-top: @indent__xs;
60+
min-height: 32px;
61+
text-align: right;
6162
}
6263
}
6364
}
6465

6566
.admin__field-wide.admin__field-page-builder {
66-
margin-top: @indent__l;
67+
margin-bottom: 32px;
6768

6869
button.action-default {
6970
position: absolute;
70-
top: @indent__xs;
7171
right: 0;
72+
top: @indent__xs;
7273
}
73-
7474
}

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

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// */
55

66
@border-size: 2px;
7-
@stage-overlay-background: rgba(0, 120, 249, 0.08);
8-
@stage-overlay-border: #4181E4;
7+
@wysiwyg-overlay-background: rgba(0, 120, 249, 0.08);
8+
@wysiwyg-overlay-border: #4181E4;
99

1010
.pagebuilder-header {
1111
display: none;
@@ -150,30 +150,34 @@
150150
.pagebuilder-wysiwyg-overlay {
151151
display: none;
152152
height: 0;
153-
left: 0;
153+
left: -1px;
154154
position: absolute;
155-
top: 0;
155+
top: -1px;
156156
visibility: hidden;
157157
width: 0;
158158

159159
&.visible {
160160
-moz-transition: .175s ease-in-out;
161161
-webkit-transition: .175s ease-in-out;
162+
border: 2px solid transparent;
163+
border-radius: 2px;
162164
cursor: pointer;
163165
display: block;
164-
height: 100%;
165-
opacity: 0;
166-
transform: translateY(-@indent__xs);
166+
height: calc(~"100% + 2px");
167+
transform: translateY(-2px);
167168
transition: .175s ease-in-out;
168169
visibility: visible;
169-
width: 100%;
170+
width: calc(~"100% + 2px");
170171
z-index: @z-index-2;
171172
}
172173

173174
&._hover {
174-
background-color: @stage-overlay-background;
175-
border-radius: 2px;
176-
border: 2px solid @stage-overlay-border;
175+
background-color: @wysiwyg-overlay-background;
176+
border-color: @wysiwyg-overlay-border;
177+
transform: translateY(0);
178+
}
179+
180+
._keyfocus & {
177181
opacity: 1;
178182
transform: translateY(0);
179183
}
@@ -255,6 +259,7 @@
255259
-moz-transition: opacity .75s ease-in-out, visibility .75s ease-in-out;
256260
-webkit-transition: opacity .75s ease-in-out, visibility .75s ease-in-out;
257261
opacity: 0;
262+
padding-top: 8px;
258263
transition: opacity .75s ease-in-out, visibility .75s ease-in-out;
259264
visibility: hidden;
260265

0 commit comments

Comments
 (0)