@g1cloud/page-builder-editor 1.0.0-alpha.8 → 1.0.0-alpha.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/page-builder-editor.css +385 -0
- package/css/page-builder-viewer.css +195 -0
- package/dist/PageBuilderEditor.vue.d.ts +22 -11
- package/dist/PbHtmlEditorModal-C0MLYY66.js +193 -0
- package/dist/PbPropertyEditorBoolean-c5CNiTpt.js +38 -0
- package/dist/{PbPropertyEditorColor-BonGhf7Z.js → PbPropertyEditorColor-5SJkOBUx.js} +8 -9
- package/dist/{PbPropertyEditorText-BWOKvwD9.js → PbPropertyEditorCssLength-CNHbyz8V.js} +10 -9
- package/dist/PbPropertyEditorHtml-DdQPQqJb.js +62 -0
- package/dist/PbPropertyEditorImage-D0kxh68g.js +106 -0
- package/dist/{PbPropertyEditorMultilineText-bEBZmvFa.js → PbPropertyEditorMultilineText-BRLH4Ayi.js} +28 -27
- package/dist/PbPropertyEditorNumber-B76ArSb5.js +47 -0
- package/dist/{PbPropertyEditorReadonlyText-Dgp_AVOD.js → PbPropertyEditorReadonlyText-BJ5qx69O.js} +6 -6
- package/dist/{PbPropertyEditorSelect-CWedbXJI.js → PbPropertyEditorSelect-B5sfulvx.js} +5 -6
- package/dist/PbPropertyEditorText-DDtYWGlr.js +50 -0
- package/dist/PbPropertyEditorYoutube-BxrZ1nyk.js +40 -0
- package/dist/PbScreenSelectModal-57LXAzjs.js +69 -0
- package/dist/PbWidgetAddModal-uVBBeNVl.js +79 -0
- package/dist/PbYoutubeModal-CU8sClMD.js +73 -0
- package/dist/components/canvas/PbCanvas.vue.d.ts +1 -1
- package/dist/components/depart/PbLoginDepart.vue.d.ts +3 -3
- package/dist/components/menu/PbMenu.vue.d.ts +16 -1
- package/dist/components/menu/PbToolbar.vue.d.ts +16 -1
- package/dist/components/menu/PbToolbarButton.vue.d.ts +3 -3
- package/dist/components/menu/PbToolbarButtonGroup.vue.d.ts +3 -3
- package/dist/components/modal/PbHtmlEditorModal.vue.d.ts +28 -0
- package/dist/components/modal/PbPartAddModal.vue.d.ts +4 -4
- package/dist/components/modal/PbScreenSelectModal.vue.d.ts +6 -0
- package/dist/components/modal/PbWidgetAddModal.vue.d.ts +4 -4
- package/dist/components/modal/PbYoutubeModal.vue.d.ts +19 -0
- package/dist/components/navigator/PbNavigator.vue.d.ts +1 -1
- package/dist/components/part/PbAddWidgetButton.vue.d.ts +1 -1
- package/dist/components/part/PbBlock.vue.d.ts +7 -3
- package/dist/components/part/PbPage.vue.d.ts +5 -5
- package/dist/components/part/PbPageFrame.vue.d.ts +19 -0
- package/dist/components/part/PbSection.vue.d.ts +7 -3
- package/dist/components/part/PbWidget.vue.d.ts +5 -3
- package/dist/components/sidebar/PbSidebar.vue.d.ts +1 -1
- package/dist/components/sidebar/PbSidebarProperties.vue.d.ts +1 -1
- package/dist/components/sidebar/PbSidebarPropertyEditor.vue.d.ts +3 -3
- package/dist/components/sidebar/PbSidebarPropertyGroupEditor.vue.d.ts +3 -3
- package/dist/components/sidebar/property/{PbPropertyEditorProduct.vue.d.ts → PbPropertyEditorBoolean.vue.d.ts} +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorColor.vue.d.ts +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorCssLength.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorHtml.vue.d.ts +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorImage.vue.d.ts +5 -9
- package/dist/components/sidebar/property/PbPropertyEditorMultilineText.vue.d.ts +7 -6
- package/dist/components/sidebar/property/PbPropertyEditorNumber.vue.d.ts +23 -0
- package/dist/components/sidebar/property/PbPropertyEditorReadonlyText.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyEditorSelect.vue.d.ts +4 -4
- package/dist/components/sidebar/property/PbPropertyEditorText.vue.d.ts +9 -8
- package/dist/components/sidebar/property/{PbPropertyLocalMarketingPart.vue.d.ts → PbPropertyEditorYoutube.vue.d.ts} +9 -9
- package/dist/components/sidebar/property/PbPropertyGroupEditorBackground.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorBorder.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorMargin.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorMedia.vue.d.ts +20 -0
- package/dist/components/sidebar/property/PbPropertyGroupEditorPadding.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorPosition.vue.d.ts +3 -3
- package/dist/components/sidebar/property/PbPropertyGroupEditorSize.vue.d.ts +3 -3
- package/dist/components/ui/PbColorPicker.vue.d.ts +16 -7
- package/dist/directives/vPartHandler.d.ts +1 -0
- package/dist/{index-CFgXLaTI.js → index-BVTz0PeS.js} +4806 -2151
- package/dist/index.d.ts +6 -0
- package/dist/model/command.d.ts +47 -34
- package/dist/model/context.d.ts +19 -19
- package/dist/model/default-part-property-group.d.ts +4 -0
- package/dist/model/event.d.ts +0 -56
- package/dist/model/model.d.ts +6 -2
- package/dist/model/page-builder-editor.d.ts +39 -10
- package/dist/model/page-builder-util.d.ts +2 -0
- package/dist/model/part-definintion.d.ts +2 -2
- package/dist/model/part-manager.d.ts +2 -1
- package/dist/model/part-property.d.ts +4 -3
- package/dist/model/plugin.d.ts +23 -0
- package/dist/page-builder-editor.js +20 -17
- package/dist/page-builder-editor.umd.cjs +5503 -2460
- package/dist/style.css +377 -1
- package/dist/text/text.d.ts +1 -0
- package/dist/utils/common.d.ts +1 -0
- package/package.json +13 -8
- package/scss/canvas.scss +28 -0
- package/{css/canvas-block.scss → scss/page-block.scss} +15 -3
- package/scss/page-builder-editor.scss +326 -0
- package/scss/page-builder-viewer.scss +1 -0
- package/{css/canvas-page.scss → scss/page-page.scss} +25 -16
- package/{css/canvas-section.scss → scss/page-section.scss} +15 -4
- package/scss/page-widget.scss +66 -0
- package/scss/page.scss +73 -0
- package/{css/property-editor-image.scss → scss/property-editor-html.scss} +5 -4
- package/scss/property-editor-image.scss +17 -0
- package/{css → scss}/property-editor-product.scss +4 -3
- package/scss/property-editor-text.scss +10 -0
- package/{css/property-editor-html.scss → scss/property-editor-youtube.scss} +2 -2
- package/{css → scss}/property-group-editor-background.scss +4 -3
- package/scss/property-group-editor-media.scss +17 -0
- package/css/bluesea.scss +0 -8244
- package/css/canvas-widget.scss +0 -41
- package/css/canvas.scss +0 -147
- package/css/page-builder-editor.scss +0 -265
- package/css/page-builder-viewer.scss +0 -1
- package/css/variable.scss +0 -1
- package/dist/HtmlEditorModal-DDoVYM6n.js +0 -94
- package/dist/PbPartAddModal-DuLpnV4E.js +0 -50
- package/dist/PbPropertyEditorHtml-DfOWZr6S.js +0 -65
- package/dist/PbPropertyEditorImage-Du9R6CBU.js +0 -42
- package/dist/PbPropertyEditorProduct-gzGulWGg.js +0 -49
- package/dist/PbWidgetAddModal-CQvFYzfU.js +0 -55
- package/dist/components/canvas/PbCanvasFrame.vue.d.ts +0 -2
- package/dist/components/modal/HtmlEditorModal.vue.d.ts +0 -23
- /package/{css → scss}/property-editor-color.scss +0 -0
- /package/{css → scss}/property-editor-multiline-text.scss +0 -0
- /package/{css/property-editor-text.scss → scss/property-editor-number.scss} +0 -0
- /package/{css → scss}/property-editor-readonly-text.scss +0 -0
- /package/{css → scss}/property-editor-select.scss +0 -0
- /package/{css → scss}/property-group-editor-border.scss +0 -0
- /package/{css → scss}/property-group-editor-margin.scss +0 -0
- /package/{css → scss}/property-group-editor-padding.scss +0 -0
- /package/{css → scss}/property-group-editor-position.scss +0 -0
- /package/{css → scss}/property-group-editor-size.scss +0 -0
- /package/{css → scss}/property-localpart.scss +0 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
.pb-editor {
|
|
2
|
+
--color-canvas-frame-bg: #aaa;
|
|
3
|
+
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
.pb-menu {
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
.pb-toolbar {
|
|
10
|
+
margin: 0 -8px;
|
|
11
|
+
|
|
12
|
+
.pb-tool-button-group {
|
|
13
|
+
&::after {
|
|
14
|
+
content: '';
|
|
15
|
+
margin: 0 8px;
|
|
16
|
+
height: 80%;
|
|
17
|
+
border-right: 1px solid var(--border-light);
|
|
18
|
+
align-self: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pb-tool-button {
|
|
22
|
+
padding: 2px;
|
|
23
|
+
margin: 0 2px;
|
|
24
|
+
|
|
25
|
+
.tool-button {
|
|
26
|
+
width: 28px;
|
|
27
|
+
height: 28px;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
|
|
32
|
+
.bs-clickable {
|
|
33
|
+
user-select: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
filter: opacity(75%);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:active {
|
|
41
|
+
filter: opacity(50%);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.disabled {
|
|
45
|
+
filter: opacity(40%)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pb-editor-body {
|
|
55
|
+
padding: 8px 0 0;
|
|
56
|
+
height: 1px;
|
|
57
|
+
|
|
58
|
+
@import './canvas';
|
|
59
|
+
|
|
60
|
+
.bs-tab-sheet {
|
|
61
|
+
.tab-bar {
|
|
62
|
+
.tabs {
|
|
63
|
+
padding-top: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bs-horizontal-layout-resizer {
|
|
69
|
+
transform: scaleX(6);
|
|
70
|
+
.resize-line {
|
|
71
|
+
background-color: var(--color-canvas-frame-bg);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.pb-navigator {
|
|
76
|
+
position: relative;
|
|
77
|
+
height: 1px;
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
padding: 8px 0;
|
|
80
|
+
flex-grow: 1;
|
|
81
|
+
border: 1px solid var(--border-light);
|
|
82
|
+
border-right: 0 none;
|
|
83
|
+
|
|
84
|
+
&:focus {
|
|
85
|
+
outline: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pb-sidebar {
|
|
90
|
+
width: 300px;
|
|
91
|
+
overflow: auto;
|
|
92
|
+
border: 1px solid var(--border-light);
|
|
93
|
+
border-left: 0 none;
|
|
94
|
+
|
|
95
|
+
.pb-sidebar-properties {
|
|
96
|
+
padding: 0;
|
|
97
|
+
|
|
98
|
+
.pb-sidebar-title {
|
|
99
|
+
padding: 8px;
|
|
100
|
+
background-color: var(--blue-bg);
|
|
101
|
+
color: var(--blue);
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.pb-sidebar-property-group {
|
|
106
|
+
&:not(:empty) {
|
|
107
|
+
padding: 8px;
|
|
108
|
+
border-bottom: 1px solid var(--border-light);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.group-title {
|
|
112
|
+
> label {
|
|
113
|
+
padding: 4px 0;
|
|
114
|
+
font-size: 90%;
|
|
115
|
+
font-weight: 600;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.group-editor {
|
|
120
|
+
padding: 4px 0;
|
|
121
|
+
font-size: 0.9em;
|
|
122
|
+
|
|
123
|
+
.title {
|
|
124
|
+
padding: 0 0 8px 0;
|
|
125
|
+
|
|
126
|
+
label {
|
|
127
|
+
min-width: 6em;
|
|
128
|
+
max-width: 6em;
|
|
129
|
+
padding-right: 0.5em;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sub-title {
|
|
135
|
+
label {
|
|
136
|
+
min-width: 6em;
|
|
137
|
+
max-width: 6em;
|
|
138
|
+
padding-right: 0.5em;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.property-editor {
|
|
145
|
+
padding: 4px 0;
|
|
146
|
+
font-size: 0.9em;
|
|
147
|
+
|
|
148
|
+
> .title {
|
|
149
|
+
padding: 0 0 8px 0;
|
|
150
|
+
|
|
151
|
+
> label {
|
|
152
|
+
min-width: 6em;
|
|
153
|
+
max-width: 6em;
|
|
154
|
+
padding-right: 0.5em;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.property-editor:nth-child(n+2) {
|
|
161
|
+
margin-top: 4px
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@import "./property-editor-color";
|
|
165
|
+
@import "./property-editor-image";
|
|
166
|
+
@import "./property-editor-multiline-text";
|
|
167
|
+
@import "./property-editor-product";
|
|
168
|
+
@import "./property-editor-readonly-text";
|
|
169
|
+
@import "./property-editor-select";
|
|
170
|
+
@import "./property-editor-text";
|
|
171
|
+
@import "./property-editor-number";
|
|
172
|
+
@import "./property-editor-html";
|
|
173
|
+
|
|
174
|
+
@import "./property-group-editor-background";
|
|
175
|
+
@import "./property-group-editor-border";
|
|
176
|
+
@import "./property-group-editor-position";
|
|
177
|
+
@import "./property-group-editor-size";
|
|
178
|
+
@import "./property-group-editor-media";
|
|
179
|
+
|
|
180
|
+
@import "./property-localpart";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.pb-color-picker {
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
position: relative;
|
|
188
|
+
|
|
189
|
+
.buttons {
|
|
190
|
+
display: flex;
|
|
191
|
+
padding: 0;
|
|
192
|
+
|
|
193
|
+
button {
|
|
194
|
+
width: 24px;
|
|
195
|
+
height: 24px;
|
|
196
|
+
display: flex;
|
|
197
|
+
justify-content: center;
|
|
198
|
+
align-items: center;
|
|
199
|
+
|
|
200
|
+
&.none {
|
|
201
|
+
position: relative;
|
|
202
|
+
overflow: hidden;
|
|
203
|
+
|
|
204
|
+
&::after {
|
|
205
|
+
content: "\00A0";
|
|
206
|
+
display: inline-block;
|
|
207
|
+
width: 100px;
|
|
208
|
+
height: 1px;
|
|
209
|
+
background: red;
|
|
210
|
+
position: absolute;
|
|
211
|
+
top: 50%;
|
|
212
|
+
left: 50%;
|
|
213
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.picker-button {
|
|
218
|
+
border: 1px solid #cccccc;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
i {
|
|
222
|
+
font-size: 1.4rem;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.sketch-wrap {
|
|
228
|
+
width: 220px;
|
|
229
|
+
position: absolute;
|
|
230
|
+
z-index: 10;
|
|
231
|
+
left: -12px;
|
|
232
|
+
top: 24px;
|
|
233
|
+
white-space: break-spaces;
|
|
234
|
+
text-align: left;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.pb-part-add-modal {
|
|
241
|
+
.section-title {
|
|
242
|
+
font-weight: 700;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.group {
|
|
246
|
+
|
|
247
|
+
.part {
|
|
248
|
+
@extend .bs-clickable;
|
|
249
|
+
border: 1px solid var(--border-light);
|
|
250
|
+
border-radius: 4px;
|
|
251
|
+
padding: 8px 16px;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.pb-html-editor-modal {
|
|
258
|
+
.preview {
|
|
259
|
+
width: 50%;
|
|
260
|
+
|
|
261
|
+
.content {
|
|
262
|
+
border: solid 1px #ccc;
|
|
263
|
+
|
|
264
|
+
iframe {
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.editor {
|
|
272
|
+
width: 50%;
|
|
273
|
+
|
|
274
|
+
.bs-tab-sheet > :nth-child(2) {
|
|
275
|
+
height: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.tags {
|
|
279
|
+
height: 60%;
|
|
280
|
+
|
|
281
|
+
.content {
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.style {
|
|
286
|
+
height: 40%;
|
|
287
|
+
|
|
288
|
+
.content {
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.bs-code-editor {
|
|
293
|
+
height: 100%;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.buttons {
|
|
298
|
+
text-align: center;
|
|
299
|
+
|
|
300
|
+
button {
|
|
301
|
+
color: #fff;
|
|
302
|
+
border: none;
|
|
303
|
+
padding: 4px 12px;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
line-height: 1;
|
|
306
|
+
height: 28px;
|
|
307
|
+
background-color: #1f8fff;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.pb-youtube-modal {
|
|
313
|
+
.flex-grow-1.overflow-auto {
|
|
314
|
+
overflow: hidden !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
button {
|
|
318
|
+
color: #fff;
|
|
319
|
+
border: none;
|
|
320
|
+
padding: 4px 12px;
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
line-height: 1;
|
|
323
|
+
height: 28px;
|
|
324
|
+
background-color: #1f8fff;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use "../../viewer/scss/page-builder-viewer.scss";
|
|
@@ -1,25 +1,34 @@
|
|
|
1
|
-
.pb-page {
|
|
2
|
-
// @import "pb-simple-carousel";
|
|
3
|
-
// @import "pb-simple-html";
|
|
4
|
-
// @import "pb-simple-media";
|
|
5
|
-
// @import "pb-simple-button";
|
|
6
|
-
// @import "pb-animation";
|
|
7
|
-
// @import "coupon-download";
|
|
8
|
-
// @import "pb-tabs";
|
|
9
|
-
// @import "pb-image-map";
|
|
10
|
-
|
|
1
|
+
.pb-page-wrapper {
|
|
11
2
|
margin: 0 auto;
|
|
12
|
-
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.pb-page {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: 100%;
|
|
11
|
+
padding-bottom: 100px;
|
|
13
12
|
background-position: 50% 50%;
|
|
14
13
|
background-repeat: no-repeat;
|
|
15
14
|
background-size: cover;
|
|
16
|
-
// background-color: white;
|
|
17
15
|
|
|
18
16
|
.pb-page-content {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
width: 100%;
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
|
|
22
|
+
&.selected::before {
|
|
23
|
+
content: "";
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
border: 2px solid #4998f8;
|
|
30
|
+
z-index: 999;
|
|
31
|
+
pointer-events: none;
|
|
23
32
|
}
|
|
24
33
|
}
|
|
25
34
|
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
.pb-section {
|
|
2
|
+
display: flex;
|
|
2
3
|
position: relative;
|
|
4
|
+
width: 100%;
|
|
3
5
|
background-position: 50% 50%;
|
|
4
6
|
background-repeat: no-repeat;
|
|
5
7
|
background-size: cover;
|
|
6
8
|
outline: 1px dashed #ccc;
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
&:empty {
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
}
|
|
8
13
|
|
|
9
14
|
&:hover:not(:has(.pb-block:hover)) {
|
|
10
15
|
background-color: #f0f0f0;
|
|
11
16
|
}
|
|
12
17
|
|
|
13
|
-
&.selected {
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
&.selected::before {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
border: 2px solid #4998f8;
|
|
16
26
|
z-index: 999;
|
|
27
|
+
pointer-events: none;
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
&.pb-section-static {
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.pb-widget {
|
|
2
|
+
position: relative;
|
|
3
|
+
outline: 1px dashed #ccc;
|
|
4
|
+
background-position: 50% 50%;
|
|
5
|
+
background-repeat: no-repeat;
|
|
6
|
+
background-size: cover;
|
|
7
|
+
pointer-events: auto !important;
|
|
8
|
+
min-height: 50px;
|
|
9
|
+
|
|
10
|
+
* {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> .invalid-widget {
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 50px;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
width: 100%;
|
|
20
|
+
font-size: 18px;
|
|
21
|
+
text-align: center;
|
|
22
|
+
color: #999;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.selected::before {
|
|
26
|
+
content: "";
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
border: 2px solid #4998f8;
|
|
33
|
+
z-index: 999;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.children {
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pan-handle {
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: -6px;
|
|
46
|
+
top: -6px;
|
|
47
|
+
width: 12px;
|
|
48
|
+
height: 12px;
|
|
49
|
+
background-color: #27ae60;
|
|
50
|
+
cursor: move;
|
|
51
|
+
pointer-events: auto !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.resize-handle {
|
|
55
|
+
position: absolute;
|
|
56
|
+
right: -6px;
|
|
57
|
+
bottom: -6px;
|
|
58
|
+
width: 12px;
|
|
59
|
+
height: 12px;
|
|
60
|
+
background-color: #27ae60;
|
|
61
|
+
cursor: nwse-resize;
|
|
62
|
+
pointer-events: auto !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@import "@g1cloud/page-builder-viewer/css/page-builder-viewer.css";
|
package/scss/page.scss
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@import 'page-page';
|
|
2
|
+
@import 'page-section';
|
|
3
|
+
@import 'page-block';
|
|
4
|
+
@import 'page-widget';
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
background-color: var(--color-canvas-frame-bg);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.font-icon, .material-icons-outlined {
|
|
14
|
+
font-family: "Material Symbols Outlined", monospace;
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
max-width: 1em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pb-position-mark {
|
|
20
|
+
background-color: #ff3333;
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
border-radius: 2px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pb-add-section-handle {
|
|
26
|
+
position: relative;
|
|
27
|
+
text-align: center;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
z-index: 5;
|
|
30
|
+
height: 0;
|
|
31
|
+
|
|
32
|
+
&.top::before,
|
|
33
|
+
&.bottom::before,
|
|
34
|
+
&.middle::before {
|
|
35
|
+
content: '';
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
top: 0;
|
|
40
|
+
opacity: 0;
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.top {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.middle {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.bottom {
|
|
51
|
+
bottom: -32px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
&.top::before,
|
|
56
|
+
&.bottom::before,
|
|
57
|
+
&.middle::before,
|
|
58
|
+
> i {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
> i {
|
|
64
|
+
font-style: normal;
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 50%;
|
|
68
|
+
left: 0;
|
|
69
|
+
font-size: 2rem;
|
|
70
|
+
transform: translate(-50%, -50%);
|
|
71
|
+
opacity: 0.2;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
.property-editor-
|
|
1
|
+
.property-editor-html {
|
|
2
2
|
button {
|
|
3
|
-
color:
|
|
3
|
+
color: var(--white);
|
|
4
4
|
border: none;
|
|
5
5
|
padding: 4px 12px;
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
line-height: 1;
|
|
8
8
|
width: 100px;
|
|
9
|
-
height:
|
|
10
|
-
background-color:
|
|
9
|
+
height: 26px;
|
|
10
|
+
background-color: var(--primary);
|
|
11
|
+
border-radius: 2px;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.input-area {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.property-editor-image {
|
|
2
|
+
button.select-button {
|
|
3
|
+
color: var(--white);
|
|
4
|
+
border: none;
|
|
5
|
+
padding: 4px 12px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
line-height: 1;
|
|
8
|
+
width: 120px;
|
|
9
|
+
height: 26px;
|
|
10
|
+
background-color: var(--primary);
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.input-area {
|
|
15
|
+
height: 24px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
.property-editor-product {
|
|
2
2
|
|
|
3
3
|
button {
|
|
4
|
-
color:
|
|
4
|
+
color: var(--white);
|
|
5
5
|
border: none;
|
|
6
6
|
padding: 4px 12px;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
line-height: 1;
|
|
9
9
|
width: 200px;
|
|
10
|
-
height:
|
|
11
|
-
background-color:
|
|
10
|
+
height: 26px;
|
|
11
|
+
background-color: var(--primary);
|
|
12
|
+
border-radius: 2px;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.input-area {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.group-editor-media {
|
|
2
|
+
button.select-button {
|
|
3
|
+
color: var(--white);
|
|
4
|
+
border: none;
|
|
5
|
+
padding: 4px 12px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
line-height: 1;
|
|
8
|
+
width: 120px;
|
|
9
|
+
height: 26px;
|
|
10
|
+
background-color: var(--primary);
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.input-area {
|
|
15
|
+
height: 24px;
|
|
16
|
+
}
|
|
17
|
+
}
|