@social-mail/social-mail-client 1.2.427 → 1.2.428
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/dist/admin/AdminAppIndex.pack.js +100 -63
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +13 -13
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.d.ts.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.js +9 -2
- package/dist/common/pages/stores/products/ProductEditor.js.map +1 -1
- package/dist/model/model.d.ts +1 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +6 -0
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.js +6 -0
- package/dist/public/contact-us/ContactUsApp.pack.js.map +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.min.js +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.min.js.map +1 -1
- package/dist/public/store/Store.pack.js +6 -0
- package/dist/public/store/Store.pack.js.map +1 -1
- package/dist/public/store/Store.pack.min.js +1 -1
- package/dist/public/store/Store.pack.min.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +6 -0
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.d.ts +8 -0
- package/dist/public/store/cart/ShoppingCart.d.ts.map +1 -0
- package/dist/public/store/cart/ShoppingCart.js +42 -0
- package/dist/public/store/cart/ShoppingCart.js.map +1 -0
- package/dist/public/store/cart/ShoppingCart.pack.js +19061 -0
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -0
- package/dist/public/store/cart/ShoppingCart.pack.min.js +325 -0
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -0
- package/dist/services/LoginService.d.ts +1 -0
- package/dist/services/LoginService.d.ts.map +1 -1
- package/dist/services/LoginService.js +8 -0
- package/dist/services/LoginService.js.map +1 -1
- package/dist/site-editor/SiteEditorApp.pack.js +6 -0
- package/dist/site-editor/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor/blocks/Block.d.ts +1 -0
- package/dist/site-editor/blocks/Block.d.ts.map +1 -1
- package/dist/site-editor/blocks/Block.js +3 -327
- package/dist/site-editor/blocks/Block.js.map +1 -1
- package/dist/site-editor/blocks/BodyStyles.d.ts +2 -0
- package/dist/site-editor/blocks/BodyStyles.d.ts.map +1 -0
- package/dist/site-editor/blocks/BodyStyles.js +337 -0
- package/dist/site-editor/blocks/BodyStyles.js.map +1 -0
- package/dist/site-editor/properties/groups/ImageEditor.js +1 -1
- package/dist/site-editor/properties/groups/ImageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +100 -63
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +13 -13
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/node_modules/@web-atoms/core/dist/core/AtomComponent.d.ts +1 -0
- package/node_modules/@web-atoms/core/dist/core/AtomComponent.d.ts.map +1 -1
- package/node_modules/@web-atoms/core/dist/core/AtomComponent.js +6 -0
- package/node_modules/@web-atoms/core/dist/core/AtomComponent.js.map +1 -1
- package/node_modules/@web-atoms/core/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/core/package.json +1 -1
- package/node_modules/@web-atoms/core/src/core/AtomComponent.ts +6 -0
- package/package.json +2 -2
- package/src/common/pages/stores/products/ProductEditor.tsx +6 -0
- package/src/model/model.ts +1 -0
- package/src/public/store/cart/ShoppingCart.tsx +29 -0
- package/src/services/LoginService.ts +8 -0
- package/src/site-editor/blocks/Block.tsx +1 -334
- package/src/site-editor/blocks/BodyStyles.tsx +337 -0
- package/src/site-editor/properties/groups/ImageEditor.tsx +1 -1
|
@@ -3,8 +3,7 @@ import type IEditorCommandParameter from "../commands/IEditorCommandParameter";
|
|
|
3
3
|
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
4
4
|
import type HtmlPageEditor from "../editor/HtmlPageEditor";
|
|
5
5
|
import styled from "@web-atoms/core/dist/style/styled";
|
|
6
|
-
import
|
|
7
|
-
import { stylerVars } from "../styler/Styler";
|
|
6
|
+
import "./BodyStyles";
|
|
8
7
|
|
|
9
8
|
styled.css `
|
|
10
9
|
padding: 5px;
|
|
@@ -63,335 +62,3 @@ export function Block({
|
|
|
63
62
|
/>;
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
|
-
|
|
67
|
-
// register default styles here...
|
|
68
|
-
StylerSets.register("low", styled.css `
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
align-items: stretch;
|
|
72
|
-
justify-items: start;
|
|
73
|
-
padding: ${stylerVars.sizeDefault};
|
|
74
|
-
margin: ${stylerVars.sizeDefault};
|
|
75
|
-
gap: ${stylerVars.sizeLarge};
|
|
76
|
-
--children-width: 100%;
|
|
77
|
-
|
|
78
|
-
@media (min-width: 900px) {
|
|
79
|
-
& {
|
|
80
|
-
width: 900px;
|
|
81
|
-
--children-width: 900px;
|
|
82
|
-
margin-left: auto;
|
|
83
|
-
margin-right: auto;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@media (min-width: 1200px) {
|
|
88
|
-
& {
|
|
89
|
-
width: 1200px;
|
|
90
|
-
--children-width: 1200px;
|
|
91
|
-
margin-left: auto;
|
|
92
|
-
margin-right: auto;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&[styler-full-screen] {
|
|
97
|
-
width: 100%;
|
|
98
|
-
max-width: 100%;
|
|
99
|
-
padding: 0;
|
|
100
|
-
margin: 0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
& > [styler-background-mode=extend] {
|
|
104
|
-
align-self: center;
|
|
105
|
-
width: 100vw;
|
|
106
|
-
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
107
|
-
border-radius: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
`.expand("[styler-layout=main]")
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
StylerSets.register("high", styled.css `
|
|
114
|
-
& [styler-layout] {
|
|
115
|
-
|
|
116
|
-
&:empty:before {
|
|
117
|
-
background-color: #ddd;
|
|
118
|
-
color: #000;
|
|
119
|
-
font-size: 16px;
|
|
120
|
-
font-weight: bold;
|
|
121
|
-
font-family: 'Courier New', Courier, monospace;
|
|
122
|
-
display: flex;
|
|
123
|
-
justify-items: center;
|
|
124
|
-
align-items: center;
|
|
125
|
-
min-height: 30px;
|
|
126
|
-
height: 100%;
|
|
127
|
-
opacity: 0.3;
|
|
128
|
-
border-radius: 3px;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
overflow: hidden;
|
|
131
|
-
text-overflow: ellipsis;
|
|
132
|
-
content: "Container";
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
& > *:not([is-web-component]):empty:before {
|
|
136
|
-
background-color: #ddd;
|
|
137
|
-
color: #000;
|
|
138
|
-
font-size: 16px;
|
|
139
|
-
font-weight: bold;
|
|
140
|
-
font-family: 'Courier New', Courier, monospace;
|
|
141
|
-
display: flex;
|
|
142
|
-
justify-items: center;
|
|
143
|
-
align-items: center;
|
|
144
|
-
min-height: 30px;
|
|
145
|
-
height: 100%;
|
|
146
|
-
opacity: 0.3;
|
|
147
|
-
border-radius: 3px;
|
|
148
|
-
white-space: nowrap;
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
text-overflow: ellipsis;
|
|
151
|
-
content: "Container";
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
& > h1, & > h2, & > h3, & > h4, & > h5, & > h6 {
|
|
155
|
-
&:empty:before {
|
|
156
|
-
content: "Title";
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
& marquee-text:empty:before {
|
|
161
|
-
content: "Marquee Text";
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
& inject {
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: column;
|
|
167
|
-
width: 100vw;
|
|
168
|
-
padding: 0;
|
|
169
|
-
margin: 0;
|
|
170
|
-
align-self: center;
|
|
171
|
-
align-items: center;
|
|
172
|
-
justify-content: center;
|
|
173
|
-
|
|
174
|
-
& > :not([styler-layout=banner]) {
|
|
175
|
-
width: var(--children-width, 100%);
|
|
176
|
-
}
|
|
177
|
-
& * {
|
|
178
|
-
user-select: none;
|
|
179
|
-
pointer-events: none;
|
|
180
|
-
}
|
|
181
|
-
&:empty:before {
|
|
182
|
-
content: "Inject Not Set";
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
& > [styler-background-mode=extend] {
|
|
186
|
-
align-self: center;
|
|
187
|
-
width: 100vw;
|
|
188
|
-
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
189
|
-
border-radius: 0;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
& video-player {
|
|
195
|
-
&:empty:before {
|
|
196
|
-
content: "Video Player";
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
& pdf-flip-book {
|
|
202
|
-
& * {
|
|
203
|
-
user-select: none;
|
|
204
|
-
pointer-events: none;
|
|
205
|
-
}
|
|
206
|
-
&:empty:before {
|
|
207
|
-
content: "PDF Flip Book";
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
`.expand("body[editing]"));
|
|
214
|
-
|
|
215
|
-
const svg = `<svg xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`;
|
|
216
|
-
|
|
217
|
-
const svgCross = `<svg xmlns="http://www.w3.org/2000/svg" height="16" width="12" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path class="fa-secondary" opacity=".4" d="M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6z"/><path class="fa-primary" d=""/></svg>`;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
StylerSets.register("low", styled.css `
|
|
221
|
-
display: flex;
|
|
222
|
-
padding: ${stylerVars.sizeSmall};
|
|
223
|
-
padding-left: ${stylerVars.sizeLarge};
|
|
224
|
-
padding-right: ${stylerVars.sizeLarge};
|
|
225
|
-
margin: ${stylerVars.sizeDefault};
|
|
226
|
-
position: sticky;
|
|
227
|
-
top: ${stylerVars.sizeDefault};
|
|
228
|
-
border-radius: ${stylerVars.sizeLarge};
|
|
229
|
-
border: solid 1px ${stylerVars.borderColor};
|
|
230
|
-
background: ${stylerVars.navBarBackground};
|
|
231
|
-
backdrop-filter: ${stylerVars.navBarBackDropFilter};
|
|
232
|
-
align-items: center;
|
|
233
|
-
justify-content: space-between;
|
|
234
|
-
z-index: 20;
|
|
235
|
-
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
236
|
-
margin-block-start: 0;
|
|
237
|
-
margin-block-end: 0;
|
|
238
|
-
& a {
|
|
239
|
-
text-decoration: none;
|
|
240
|
-
color: ${stylerVars.defaultTextColor};
|
|
241
|
-
&:hover {
|
|
242
|
-
color: ${stylerVars.accentColor};
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
& > [styler-element=navbar] {
|
|
247
|
-
display: flex;
|
|
248
|
-
gap: 5px;
|
|
249
|
-
position: relative;
|
|
250
|
-
& > input[type=checkbox][styler-element=drawer] {
|
|
251
|
-
color: transparent;
|
|
252
|
-
display: none;
|
|
253
|
-
}
|
|
254
|
-
& > nav {
|
|
255
|
-
display: flex;
|
|
256
|
-
gap: ${stylerVars.sizeDefault};
|
|
257
|
-
flex-wrap: wrap;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@media (max-width: 500px) {
|
|
262
|
-
& > [styler-element=navbar] {
|
|
263
|
-
|
|
264
|
-
& > nav {
|
|
265
|
-
display: none;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
& > input[type=checkbox][styler-element=drawer] {
|
|
269
|
-
display: inline-block;
|
|
270
|
-
background-color: white;
|
|
271
|
-
background-image: url('data:image/svg+xml,${svg}');
|
|
272
|
-
background-position: 2px 2px;
|
|
273
|
-
border-radius: 2px;
|
|
274
|
-
background-repeat: no-repeat;
|
|
275
|
-
border-width: 1px;
|
|
276
|
-
border-style: solid;
|
|
277
|
-
border-color: transparent;
|
|
278
|
-
width: 21px;
|
|
279
|
-
height: 22px;
|
|
280
|
-
appearance: none;
|
|
281
|
-
outline: none;
|
|
282
|
-
&:checked {
|
|
283
|
-
background-image: url('data:image/svg+xml,${svgCross}');
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
&:checked ~ nav {
|
|
287
|
-
display: flex;
|
|
288
|
-
gap: var(--size-default);
|
|
289
|
-
flex-direction: column;
|
|
290
|
-
position: absolute;
|
|
291
|
-
right: 10px;
|
|
292
|
-
top: 40px;
|
|
293
|
-
background: ${stylerVars.primarySurface};
|
|
294
|
-
color: ${stylerVars.primaryAccentText};
|
|
295
|
-
padding: var(--size-default);
|
|
296
|
-
border-radius: var(--size-default);
|
|
297
|
-
box-shadow: 0 0 8px 2px gray;
|
|
298
|
-
min-width: 200px;
|
|
299
|
-
min-height: 300px;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
`.expand("[styler-layout=floating-nav-bar]")
|
|
306
|
-
);
|
|
307
|
-
|
|
308
|
-
StylerSets.register("low", styled.css `
|
|
309
|
-
display: flex;
|
|
310
|
-
padding: ${stylerVars.sizeSmall};
|
|
311
|
-
padding-left: ${stylerVars.sizeLarge};
|
|
312
|
-
padding-right: ${stylerVars.sizeLarge};
|
|
313
|
-
border-radius: ${stylerVars.sizeDefault};
|
|
314
|
-
margin: ${stylerVars.sizeDefault};
|
|
315
|
-
border-radius: ${stylerVars.sizeLarge};
|
|
316
|
-
align-items: center;
|
|
317
|
-
justify-content: space-between;
|
|
318
|
-
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
319
|
-
margin-block-start: 0;
|
|
320
|
-
margin-block-end: 0;
|
|
321
|
-
& a {
|
|
322
|
-
text-decoration: none;
|
|
323
|
-
color: ${stylerVars.defaultTextColor};
|
|
324
|
-
&:hover {
|
|
325
|
-
color: ${stylerVars.accentColor};
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
`.expand("[styler-layout=nav-bar]")
|
|
330
|
-
);
|
|
331
|
-
|
|
332
|
-
StylerSets.register("low", styled.css `
|
|
333
|
-
|
|
334
|
-
& nav {
|
|
335
|
-
|
|
336
|
-
input:not(:checked)+nav menu {
|
|
337
|
-
position: relative;
|
|
338
|
-
padding-inline-start: 0;
|
|
339
|
-
margin: 0;
|
|
340
|
-
&:not(:hover) > ul:not(:hover) {
|
|
341
|
-
display: none;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
& > ul {
|
|
345
|
-
position: absolute;
|
|
346
|
-
left: 5px;
|
|
347
|
-
top: 1ch;
|
|
348
|
-
background-color: canvas;
|
|
349
|
-
margin: 10px;
|
|
350
|
-
border-radius: 5px;
|
|
351
|
-
border: solid 1px lightgray;
|
|
352
|
-
padding-inline-start: 0;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
& li {
|
|
356
|
-
list-style-type: none;
|
|
357
|
-
|
|
358
|
-
padding: 10px;
|
|
359
|
-
margin: 5px;
|
|
360
|
-
|
|
361
|
-
&:hover {
|
|
362
|
-
background-color: var(--hover-color);
|
|
363
|
-
color: var(--hover-text-color);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
input:checked+nav > menu {
|
|
369
|
-
position: relative;
|
|
370
|
-
padding-inline-start: 0;
|
|
371
|
-
margin: 0;
|
|
372
|
-
|
|
373
|
-
& > ul {
|
|
374
|
-
background-color: canvas;
|
|
375
|
-
margin: 10px;
|
|
376
|
-
border-radius: 5px;
|
|
377
|
-
border: solid 1px lightgray;
|
|
378
|
-
padding-inline-start: 0;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
& li {
|
|
382
|
-
list-style-type: none;
|
|
383
|
-
|
|
384
|
-
padding: 10px;
|
|
385
|
-
margin: 5px;
|
|
386
|
-
|
|
387
|
-
&:hover {
|
|
388
|
-
background-color: var(--hover-color);
|
|
389
|
-
color: var(--hover-text-color);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
`.expand("[styler-element=navbar]") );
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { StylerSets } from "../styler/StylerSets";
|
|
3
|
+
import { stylerVars } from "../styler/Styler";
|
|
4
|
+
|
|
5
|
+
// register default styles here...
|
|
6
|
+
StylerSets.register("low", styled.css `
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: stretch;
|
|
10
|
+
justify-items: start;
|
|
11
|
+
padding: ${stylerVars.sizeDefault};
|
|
12
|
+
margin: ${stylerVars.sizeDefault};
|
|
13
|
+
gap: ${stylerVars.sizeLarge};
|
|
14
|
+
--children-width: 100%;
|
|
15
|
+
|
|
16
|
+
@media (min-width: 900px) {
|
|
17
|
+
& {
|
|
18
|
+
width: 900px;
|
|
19
|
+
--children-width: 900px;
|
|
20
|
+
margin-left: auto;
|
|
21
|
+
margin-right: auto;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (min-width: 1200px) {
|
|
26
|
+
& {
|
|
27
|
+
width: 1200px;
|
|
28
|
+
--children-width: 1200px;
|
|
29
|
+
margin-left: auto;
|
|
30
|
+
margin-right: auto;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[styler-full-screen] {
|
|
35
|
+
width: 100%;
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& > [styler-background-mode=extend] {
|
|
42
|
+
align-self: center;
|
|
43
|
+
width: 100vw;
|
|
44
|
+
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
45
|
+
border-radius: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
`.expand("[styler-layout=main]")
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
StylerSets.register("high", styled.css `
|
|
52
|
+
& [styler-layout] {
|
|
53
|
+
|
|
54
|
+
&:empty:before {
|
|
55
|
+
background-color: #ddd;
|
|
56
|
+
color: #000;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
font-weight: bold;
|
|
59
|
+
font-family: 'Courier New', Courier, monospace;
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-items: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
min-height: 30px;
|
|
64
|
+
height: 100%;
|
|
65
|
+
opacity: 0.3;
|
|
66
|
+
border-radius: 3px;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
content: "Container";
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
& > *:not([is-web-component]):empty:before {
|
|
74
|
+
background-color: #ddd;
|
|
75
|
+
color: #000;
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
font-weight: bold;
|
|
78
|
+
font-family: 'Courier New', Courier, monospace;
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-items: center;
|
|
81
|
+
align-items: center;
|
|
82
|
+
min-height: 30px;
|
|
83
|
+
height: 100%;
|
|
84
|
+
opacity: 0.3;
|
|
85
|
+
border-radius: 3px;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
content: "Container";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
& > h1, & > h2, & > h3, & > h4, & > h5, & > h6 {
|
|
93
|
+
&:empty:before {
|
|
94
|
+
content: "Title";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& marquee-text:empty:before {
|
|
99
|
+
content: "Marquee Text";
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
& inject {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
width: 100vw;
|
|
106
|
+
padding: 0;
|
|
107
|
+
margin: 0;
|
|
108
|
+
align-self: center;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
|
|
112
|
+
& > :not([styler-layout=banner]) {
|
|
113
|
+
width: var(--children-width, 100%);
|
|
114
|
+
}
|
|
115
|
+
& * {
|
|
116
|
+
user-select: none;
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
}
|
|
119
|
+
&:empty:before {
|
|
120
|
+
content: "Inject Not Set";
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& > [styler-background-mode=extend] {
|
|
124
|
+
align-self: center;
|
|
125
|
+
width: 100vw;
|
|
126
|
+
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
127
|
+
border-radius: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
& video-player {
|
|
133
|
+
&:empty:before {
|
|
134
|
+
content: "Video Player";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
& pdf-flip-book {
|
|
140
|
+
& * {
|
|
141
|
+
user-select: none;
|
|
142
|
+
pointer-events: none;
|
|
143
|
+
}
|
|
144
|
+
&:empty:before {
|
|
145
|
+
content: "PDF Flip Book";
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
`.expand("body[editing]"));
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
const svg = `<svg xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`;
|
|
155
|
+
|
|
156
|
+
const svgCross = `<svg xmlns="http://www.w3.org/2000/svg" height="16" width="12" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path class="fa-secondary" opacity=".4" d="M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6z"/><path class="fa-primary" d=""/></svg>`;
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
StylerSets.register("low", styled.css `
|
|
160
|
+
display: flex;
|
|
161
|
+
padding: ${stylerVars.sizeSmall};
|
|
162
|
+
padding-left: ${stylerVars.sizeLarge};
|
|
163
|
+
padding-right: ${stylerVars.sizeLarge};
|
|
164
|
+
margin: ${stylerVars.sizeDefault};
|
|
165
|
+
position: sticky;
|
|
166
|
+
top: ${stylerVars.sizeDefault};
|
|
167
|
+
border-radius: ${stylerVars.sizeLarge};
|
|
168
|
+
border: solid 1px ${stylerVars.borderColor};
|
|
169
|
+
background: ${stylerVars.navBarBackground};
|
|
170
|
+
backdrop-filter: ${stylerVars.navBarBackDropFilter};
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: space-between;
|
|
173
|
+
z-index: 20;
|
|
174
|
+
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
175
|
+
margin-block-start: 0;
|
|
176
|
+
margin-block-end: 0;
|
|
177
|
+
& a {
|
|
178
|
+
text-decoration: none;
|
|
179
|
+
color: ${stylerVars.defaultTextColor};
|
|
180
|
+
&:hover {
|
|
181
|
+
color: ${stylerVars.accentColor};
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
& > [styler-element=navbar] {
|
|
186
|
+
display: flex;
|
|
187
|
+
gap: 5px;
|
|
188
|
+
position: relative;
|
|
189
|
+
& > input[type=checkbox][styler-element=drawer] {
|
|
190
|
+
color: transparent;
|
|
191
|
+
display: none;
|
|
192
|
+
}
|
|
193
|
+
& > nav {
|
|
194
|
+
display: flex;
|
|
195
|
+
gap: ${stylerVars.sizeDefault};
|
|
196
|
+
flex-wrap: wrap;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media (max-width: 500px) {
|
|
201
|
+
& > [styler-element=navbar] {
|
|
202
|
+
|
|
203
|
+
& > nav {
|
|
204
|
+
display: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
& > input[type=checkbox][styler-element=drawer] {
|
|
208
|
+
display: inline-block;
|
|
209
|
+
background-color: white;
|
|
210
|
+
background-image: url('data:image/svg+xml,${svg}');
|
|
211
|
+
background-position: 2px 2px;
|
|
212
|
+
border-radius: 2px;
|
|
213
|
+
background-repeat: no-repeat;
|
|
214
|
+
border-width: 1px;
|
|
215
|
+
border-style: solid;
|
|
216
|
+
border-color: transparent;
|
|
217
|
+
width: 21px;
|
|
218
|
+
height: 22px;
|
|
219
|
+
appearance: none;
|
|
220
|
+
outline: none;
|
|
221
|
+
&:checked {
|
|
222
|
+
background-image: url('data:image/svg+xml,${svgCross}');
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&:checked ~ nav {
|
|
226
|
+
display: flex;
|
|
227
|
+
gap: var(--size-default);
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
position: absolute;
|
|
230
|
+
right: 10px;
|
|
231
|
+
top: 40px;
|
|
232
|
+
background: ${stylerVars.primarySurface};
|
|
233
|
+
color: ${stylerVars.primaryAccentText};
|
|
234
|
+
padding: var(--size-default);
|
|
235
|
+
border-radius: var(--size-default);
|
|
236
|
+
box-shadow: 0 0 8px 2px gray;
|
|
237
|
+
min-width: 200px;
|
|
238
|
+
min-height: 300px;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
`.expand("[styler-layout=floating-nav-bar]")
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
StylerSets.register("low", styled.css `
|
|
248
|
+
display: flex;
|
|
249
|
+
padding: ${stylerVars.sizeSmall};
|
|
250
|
+
padding-left: ${stylerVars.sizeLarge};
|
|
251
|
+
padding-right: ${stylerVars.sizeLarge};
|
|
252
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
253
|
+
margin: ${stylerVars.sizeDefault};
|
|
254
|
+
border-radius: ${stylerVars.sizeLarge};
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: space-between;
|
|
257
|
+
& > h1, & > h2, & > h3, & > h5, & > h6 {
|
|
258
|
+
margin-block-start: 0;
|
|
259
|
+
margin-block-end: 0;
|
|
260
|
+
& a {
|
|
261
|
+
text-decoration: none;
|
|
262
|
+
color: ${stylerVars.defaultTextColor};
|
|
263
|
+
&:hover {
|
|
264
|
+
color: ${stylerVars.accentColor};
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
`.expand("[styler-layout=nav-bar]")
|
|
269
|
+
);
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
StylerSets.register("low", styled.css `
|
|
273
|
+
|
|
274
|
+
& nav {
|
|
275
|
+
|
|
276
|
+
input:not(:checked)+nav menu {
|
|
277
|
+
position: relative;
|
|
278
|
+
padding-inline-start: 0;
|
|
279
|
+
margin: 0;
|
|
280
|
+
&:not(:hover) > ul:not(:hover) {
|
|
281
|
+
display: none;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
& > ul {
|
|
285
|
+
position: absolute;
|
|
286
|
+
left: 5px;
|
|
287
|
+
top: 1ch;
|
|
288
|
+
background-color: canvas;
|
|
289
|
+
margin: 10px;
|
|
290
|
+
border-radius: 5px;
|
|
291
|
+
border: solid 1px lightgray;
|
|
292
|
+
padding-inline-start: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
& li {
|
|
296
|
+
list-style-type: none;
|
|
297
|
+
|
|
298
|
+
padding: 10px;
|
|
299
|
+
margin: 5px;
|
|
300
|
+
|
|
301
|
+
&:hover {
|
|
302
|
+
background-color: var(--hover-color);
|
|
303
|
+
color: var(--hover-text-color);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
input:checked+nav > menu {
|
|
309
|
+
position: relative;
|
|
310
|
+
padding-inline-start: 0;
|
|
311
|
+
margin: 0;
|
|
312
|
+
|
|
313
|
+
& > ul {
|
|
314
|
+
background-color: canvas;
|
|
315
|
+
margin: 10px;
|
|
316
|
+
border-radius: 5px;
|
|
317
|
+
border: solid 1px lightgray;
|
|
318
|
+
padding-inline-start: 0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
& li {
|
|
322
|
+
list-style-type: none;
|
|
323
|
+
|
|
324
|
+
padding: 10px;
|
|
325
|
+
margin: 5px;
|
|
326
|
+
|
|
327
|
+
&:hover {
|
|
328
|
+
background-color: var(--hover-color);
|
|
329
|
+
color: var(--hover-text-color);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
`.expand("[styler-element=navbar]") );
|
|
@@ -6,7 +6,7 @@ const { properties } = StylerSet.instance;
|
|
|
6
6
|
|
|
7
7
|
export default function ImageEditor() {
|
|
8
8
|
return <ExpanderPropertyEditor
|
|
9
|
-
style-display={BindEditor.oneWay((x) => /^img
|
|
9
|
+
style-display={BindEditor.oneWay((x) => /^(img$|video)/i.test(x.selection.name))}
|
|
10
10
|
label="Image">
|
|
11
11
|
<DropDownProperty
|
|
12
12
|
label="Object Fit"
|