Skip to content

Commit 6e72e35

Browse files
author
Igor Melnikov
committed
Merge remote-tracking branch 'upstream/develop' into MAGETWO-91200-update-documentation-eap
2 parents d3aa2bf + 3a35732 commit 6e72e35

File tree

86 files changed

+4737
-1323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4737
-1323
lines changed

app/code/Magento/PageBuilder/docs/content-type-configuration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,3 +510,9 @@ define([], function () {
510510
return EmptyMobileImage;
511511
});
512512
```
513+
514+
## Preview component settings
515+
516+
| Property | Description | Example |
517+
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------- |
518+
|`fieldsToIgnoreOnRemove`| array containing field names to ignore when evaluating whether an element has been configured. The default value is an empty array. | `["tab_name"]` |

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/tab-item/_default.less

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,27 @@
77
// Default appearance styles
88
// _____________________________________________
99

10+
.pagebuilder-content-type {
11+
&.tab-align-left {
12+
.pagebuilder-tab-item {
13+
border-top-left-radius: 0 !important;
14+
}
15+
}
16+
&.tab-align-right {
17+
.pagebuilder-tab-item {
18+
border-top-right-radius: 0 !important;
19+
}
20+
}
21+
&.pagebuilder-tab-item {
22+
min-height: inherit;
23+
24+
&.empty-container {
25+
min-height: 220px;
26+
}
27+
28+
> .element-children {
29+
min-height: inherit;
30+
padding: 0;
31+
}
32+
}
33+
}

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

Lines changed: 66 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,64 @@
4949
&:hover {
5050
text-decoration: none;
5151
}
52+
53+
.tab-drag-handle {
54+
height: 100%;
55+
left: 2px;
56+
opacity: 0;
57+
position: absolute;
58+
top: 0;
59+
transition: all .3s;
60+
visibility: hidden;
61+
width: 14px;
62+
63+
&.disabled:before {
64+
color: @color-light-gray;
65+
cursor: not-allowed;
66+
}
67+
68+
&.disabled:active:before {
69+
cursor: not-allowed;
70+
}
71+
72+
&:before {
73+
.abs-icon;
74+
color: @color-dark-gray0;
75+
content: @icon-gripper__content;
76+
display: block;
77+
font-size: 16px;
78+
position: absolute;
79+
top: 50%;
80+
transform: translateY(-50%);
81+
82+
cursor: move; /* fallback if grab cursor is unsupported */
83+
cursor: grab;
84+
cursor: -moz-grab;
85+
cursor: -webkit-grab;
86+
}
87+
88+
&:active:before {
89+
cursor: grabbing;
90+
cursor: -moz-grabbing;
91+
cursor: -webkit-grabbing;
92+
}
93+
}
94+
}
95+
96+
&.sortable-placeholder {
97+
opacity: .3;
98+
}
99+
100+
&.ui-sortable-helper {
101+
box-shadow: 0 1px 10px rgba(0, 0, 0, .3);
102+
opacity: .7;
103+
white-space: nowrap;
104+
105+
a.tab-title .tab-drag-handle:before {
106+
cursor: grabbing;
107+
cursor: -moz-grabbing;
108+
cursor: -webkit-grabbing;
109+
}
52110
}
53111

54112
&:last-child {
@@ -66,6 +124,11 @@
66124
}
67125

68126
&.focused {
127+
a.tab-title .tab-drag-handle {
128+
opacity: 1;
129+
visibility: visible;
130+
}
131+
69132
.pagebuilder-options {
70133
.pagebuilder-options-visible;
71134
}
@@ -74,26 +137,16 @@
74137
}
75138

76139
.tabs-content {
77-
border: 1px solid #ccc;
78-
overflow: hidden;
140+
border: 1px solid transparent;
79141
position: relative;
80142
z-index: 9;
81143

82144
> .element-children {
83145
min-height: inherit;
84146
padding: 0;
85-
}
86-
87-
.pagebuilder-content-type.pagebuilder-tab {
88-
min-height: inherit;
89-
90-
&.empty-container {
91-
min-height: 220px;
92-
}
93147

94-
> .element-children {
95-
min-height: inherit;
96-
padding: 0;
148+
> .pagebuilder-content-type-wrapper:not(:first-child) {
149+
display: none;
97150
}
98151
}
99152
}

app/code/Magento/PageBuilder/view/adminhtml/web/js/preview-sortable.js renamed to app/code/Magento/PageBuilder/view/adminhtml/web/js/binding/sortable-children.js

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/preview.js

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/slider/preview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/tab-item/preview.js

Lines changed: 35 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)