@innovastudio/contentbuilder 1.5.198 → 1.5.200
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.
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--focus-outline-color: #3e93f7;
|
|
3
|
+
--rangeslider-thumb-color: #0e75de;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
body {
|
|
2
7
|
overflow-x: hidden !important;
|
|
3
8
|
}
|
|
@@ -28,7 +33,7 @@ button:focus {
|
|
|
28
33
|
|
|
29
34
|
a:focus-visible,
|
|
30
35
|
button:focus-visible {
|
|
31
|
-
outline:
|
|
36
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
32
37
|
outline-offset: 2px;
|
|
33
38
|
}
|
|
34
39
|
|
|
@@ -37,7 +42,7 @@ button:focus-visible {
|
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
.focus-outline {
|
|
40
|
-
outline:
|
|
45
|
+
outline: var(--focus-outline-color) 2px solid !important;
|
|
41
46
|
outline-offset: 2px !important;
|
|
42
47
|
}
|
|
43
48
|
|
|
@@ -464,7 +469,7 @@ button:focus-visible {
|
|
|
464
469
|
}
|
|
465
470
|
#_cbhtml .style-helper.outline-color,
|
|
466
471
|
.is-ui .style-helper.outline-color {
|
|
467
|
-
background:
|
|
472
|
+
background: var(--focus-outline-color);
|
|
468
473
|
}
|
|
469
474
|
#_cbhtml .style-helper-button-classic,
|
|
470
475
|
.is-ui .style-helper-button-classic {
|
|
@@ -1292,7 +1297,7 @@ button:focus-visible {
|
|
|
1292
1297
|
}
|
|
1293
1298
|
#_cbhtml .is-rte-pop.rte-color-picker input[type=text]:focus,
|
|
1294
1299
|
.is-ui .is-rte-pop.rte-color-picker input[type=text]:focus {
|
|
1295
|
-
outline:
|
|
1300
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
1296
1301
|
outline-offset: -2px;
|
|
1297
1302
|
}
|
|
1298
1303
|
#_cbhtml .is-rte-pop.rte-color-picker .color-default button,
|
|
@@ -2257,7 +2262,7 @@ button:focus-visible {
|
|
|
2257
2262
|
}
|
|
2258
2263
|
#_cbhtml .is-modal a:focus,
|
|
2259
2264
|
.is-ui .is-modal a:focus {
|
|
2260
|
-
outline:
|
|
2265
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
2261
2266
|
outline-offset: 0;
|
|
2262
2267
|
}
|
|
2263
2268
|
#_cbhtml .is-modal.active,
|
|
@@ -2330,7 +2335,7 @@ button:focus-visible {
|
|
|
2330
2335
|
}
|
|
2331
2336
|
#_cbhtml .is-modal .form-upload-larger:focus-within,
|
|
2332
2337
|
.is-ui .is-modal .form-upload-larger:focus-within {
|
|
2333
|
-
outline:
|
|
2338
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
2334
2339
|
outline-offset: 0;
|
|
2335
2340
|
border-radius: 6px;
|
|
2336
2341
|
}
|
|
@@ -3288,7 +3293,7 @@ button:focus-visible {
|
|
|
3288
3293
|
}
|
|
3289
3294
|
#_cbhtml .is-modal.insertimage .is-drop-area:focus-within,
|
|
3290
3295
|
.is-ui .is-modal.insertimage .is-drop-area:focus-within {
|
|
3291
|
-
border-color:
|
|
3296
|
+
border-color: var(--focus-outline-color);
|
|
3292
3297
|
}
|
|
3293
3298
|
#_cbhtml .is-modal.insertimage .is-drop-area.image-dropping,
|
|
3294
3299
|
.is-ui .is-modal.insertimage .is-drop-area.image-dropping {
|
|
@@ -3924,7 +3929,7 @@ button:focus-visible {
|
|
|
3924
3929
|
}
|
|
3925
3930
|
#_cbhtml textarea:not(.monaco-mouse-cursor-text):focus,
|
|
3926
3931
|
.is-ui textarea:not(.monaco-mouse-cursor-text):focus {
|
|
3927
|
-
outline:
|
|
3932
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
3928
3933
|
outline-offset: 0;
|
|
3929
3934
|
box-shadow: none;
|
|
3930
3935
|
}
|
|
@@ -3959,7 +3964,7 @@ button:focus-visible {
|
|
|
3959
3964
|
}
|
|
3960
3965
|
#_cbhtml select:focus,
|
|
3961
3966
|
.is-ui select:focus {
|
|
3962
|
-
outline:
|
|
3967
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
3963
3968
|
outline-offset: -2px;
|
|
3964
3969
|
box-shadow: none;
|
|
3965
3970
|
}
|
|
@@ -3987,7 +3992,7 @@ button:focus-visible {
|
|
|
3987
3992
|
#_cbhtml input[type=number]:focus,
|
|
3988
3993
|
.is-ui input[type=text]:focus,
|
|
3989
3994
|
.is-ui input[type=number]:focus {
|
|
3990
|
-
outline:
|
|
3995
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
3991
3996
|
outline-offset: -2px;
|
|
3992
3997
|
box-shadow: none;
|
|
3993
3998
|
}
|
|
@@ -4005,7 +4010,7 @@ button:focus-visible {
|
|
|
4005
4010
|
}
|
|
4006
4011
|
#_cbhtml input[type=radio]:focus,
|
|
4007
4012
|
.is-ui input[type=radio]:focus {
|
|
4008
|
-
outline:
|
|
4013
|
+
outline: var(--focus-outline-color) 1px solid;
|
|
4009
4014
|
}
|
|
4010
4015
|
#_cbhtml label,
|
|
4011
4016
|
.is-ui label {
|
|
@@ -4045,7 +4050,7 @@ button:focus-visible {
|
|
|
4045
4050
|
}
|
|
4046
4051
|
#_cbhtml .is-rangeslider:focus,
|
|
4047
4052
|
.is-ui .is-rangeslider:focus {
|
|
4048
|
-
outline:
|
|
4053
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
4049
4054
|
outline-offset: 2px;
|
|
4050
4055
|
}
|
|
4051
4056
|
#_cbhtml .is-rangeslider::-webkit-slider-thumb,
|
|
@@ -4055,7 +4060,7 @@ button:focus-visible {
|
|
|
4055
4060
|
width: 25px !important;
|
|
4056
4061
|
height: 24px !important;
|
|
4057
4062
|
border-radius: 3px !important;
|
|
4058
|
-
background:
|
|
4063
|
+
background: var(--rangeslider-thumb-color);
|
|
4059
4064
|
cursor: pointer;
|
|
4060
4065
|
margin: 0 !important;
|
|
4061
4066
|
}
|
|
@@ -4064,7 +4069,7 @@ button:focus-visible {
|
|
|
4064
4069
|
width: 25px !important;
|
|
4065
4070
|
height: 24px !important;
|
|
4066
4071
|
border-radius: 3px !important;
|
|
4067
|
-
background:
|
|
4072
|
+
background: var(--rangeslider-thumb-color);
|
|
4068
4073
|
cursor: pointer;
|
|
4069
4074
|
margin: 0 !important;
|
|
4070
4075
|
}
|
|
@@ -5069,7 +5074,7 @@ button:focus-visible {
|
|
|
5069
5074
|
}
|
|
5070
5075
|
#_cbhtml .pickcolor input[type=text]:focus,
|
|
5071
5076
|
.is-ui .pickcolor input[type=text]:focus {
|
|
5072
|
-
outline:
|
|
5077
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
5073
5078
|
outline-offset: -2px;
|
|
5074
5079
|
}
|
|
5075
5080
|
#_cbhtml .pickcolor .color-default button,
|
|
@@ -6596,7 +6601,7 @@ div[data-html] {
|
|
|
6596
6601
|
margin-top: 3px;
|
|
6597
6602
|
}
|
|
6598
6603
|
.custom-select .select-styled:focus-visible {
|
|
6599
|
-
outline:
|
|
6604
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
6600
6605
|
outline-offset: -1px;
|
|
6601
6606
|
}
|
|
6602
6607
|
.custom-select .select-styled > span:first-child {
|
|
@@ -8532,7 +8537,7 @@ iframe.wait-autoplay {
|
|
|
8532
8537
|
align-items: center;
|
|
8533
8538
|
}
|
|
8534
8539
|
#_cbhtml .is-modal.pluginsettings div[contenteditable=true]:focus-visible {
|
|
8535
|
-
outline:
|
|
8540
|
+
outline: var(--focus-outline-color) 2px solid;
|
|
8536
8541
|
}
|
|
8537
8542
|
|
|
8538
8543
|
.dark #_cbhtml .is-accordion > div {
|
|
@@ -4665,7 +4665,7 @@ class Util {
|
|
|
4665
4665
|
callback(true);
|
|
4666
4666
|
});
|
|
4667
4667
|
}
|
|
4668
|
-
confirm(message, callback, yesno, yestext, forceOpen) {
|
|
4668
|
+
confirm(message, callback, yesno, yestext, forceOpen, notext = 'Cancel') {
|
|
4669
4669
|
if (!this.builder.deleteConfirm && !forceOpen) {
|
|
4670
4670
|
callback(true);
|
|
4671
4671
|
return;
|
|
@@ -4682,8 +4682,8 @@ class Util {
|
|
|
4682
4682
|
html = `<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">
|
|
4683
4683
|
<div class="is-modal-content" style="padding-bottom:20px;">
|
|
4684
4684
|
<div style="margin: 20px 0 30px;font-size: 14px;">${message}</div>
|
|
4685
|
-
<button title="${this.out(
|
|
4686
|
-
<button title="${yestext}" class="input-ok classic-primary">${yestext}</button>
|
|
4685
|
+
<button title="${this.out(notext)}" class="input-cancel classic-secondary">${this.out(notext)}</button>
|
|
4686
|
+
<button title="${this.out(yestext)}" class="input-ok classic-primary">${this.out(yestext)}</button>
|
|
4687
4687
|
</div>
|
|
4688
4688
|
</div>`;
|
|
4689
4689
|
}
|
|
@@ -18033,6 +18033,8 @@ const renderSnippetPanel = (builder, snippetOpen) => {
|
|
|
18033
18033
|
}
|
|
18034
18034
|
}
|
|
18035
18035
|
let snippetPanel = document.querySelector(builder.opts.snippetList);
|
|
18036
|
+
if (!snippetPanel) return;
|
|
18037
|
+
snippetPanel.classList.add('is-ui');
|
|
18036
18038
|
snippetPanel.innerHTML = ''; //clear
|
|
18037
18039
|
dom.appendHtml(snippetPanel, html_snippets);
|
|
18038
18040
|
const snippetList = [];
|
|
@@ -91785,7 +91787,7 @@ Classes: ease-linear, ease-in, ease-out, ease-in-out
|
|
|
91785
91787
|
|
|
91786
91788
|
**Hover Transforms**
|
|
91787
91789
|
|
|
91788
|
-
Classes: hover:scale-105, hover:-translate-y-1, hover:-translate-y-2
|
|
91790
|
+
Classes: hover:scale-105, hover:-translate-y-1, hover:-translate-y-2, .hover:translate-x-1, .hover:translate-x-2
|
|
91789
91791
|
|
|
91790
91792
|
**Hover Shadow**
|
|
91791
91793
|
|
|
@@ -91830,6 +91832,31 @@ Classes: spin, ping, pulse, bounce
|
|
|
91830
91832
|
|
|
91831
91833
|
**Key classes:** transition-transform, duration-300, hover:translate-y--2
|
|
91832
91834
|
|
|
91835
|
+
**Example: Hover shift on List Items**
|
|
91836
|
+
|
|
91837
|
+
<div class="row" style="gap: 30px;">
|
|
91838
|
+
<div class="column">
|
|
91839
|
+
<!-- list item -->
|
|
91840
|
+
<div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">
|
|
91841
|
+
<div class="pr-6 pt-5">
|
|
91842
|
+
<i class="bi bi-globe size-24 text-black"></i>
|
|
91843
|
+
</div>
|
|
91844
|
+
<div>
|
|
91845
|
+
<h3 class="size-24 font-normal mb-3">Global Perspective</h3>
|
|
91846
|
+
<p class="size-16 leading-17 text-gray-600">
|
|
91847
|
+
Our team spans three continents, bringing diverse cultural insights to every project. We design experiences that transcend borders while respecting local nuances, ensuring your brand resonates globally.
|
|
91848
|
+
</p>
|
|
91849
|
+
</div>
|
|
91850
|
+
</div>
|
|
91851
|
+
<!-- list item -->
|
|
91852
|
+
<div class="flex items-start pb-10 mb-10 transition-transform duration-300 ease-out hover:translate-x-2" style="border-bottom: 1px solid #e0e0e0;">
|
|
91853
|
+
<!-- item content -->
|
|
91854
|
+
</div>
|
|
91855
|
+
</div>
|
|
91856
|
+
</div>
|
|
91857
|
+
|
|
91858
|
+
**Key classes:** transition-transform, duration-300, hover:translate-x-2
|
|
91859
|
+
|
|
91833
91860
|
**Example: Hover lift and shadow on Cards**
|
|
91834
91861
|
|
|
91835
91862
|
<div class="row" style="gap: 30px;">
|
|
@@ -94379,6 +94406,7 @@ class ContentBuilder {
|
|
|
94379
94406
|
this.doDocumentClick = e => {
|
|
94380
94407
|
let target = e.target;
|
|
94381
94408
|
if (!target) return;
|
|
94409
|
+
if (target.closest('[data-top-locked], [data-bottom-locked]')) return;
|
|
94382
94410
|
rteClick(e);
|
|
94383
94411
|
let rowClicked;
|
|
94384
94412
|
if (target.parentNode && target.parentNode.classList) rowClicked = target.parentNode.classList.contains('is-builder');
|
|
@@ -95170,6 +95198,7 @@ class ContentBuilder {
|
|
|
95170
95198
|
if (this.opts.useCssClasses) this.dom.contentReformat(builder, this.opts.cssClasses);
|
|
95171
95199
|
}
|
|
95172
95200
|
applyBehaviorOn(builder) {
|
|
95201
|
+
if (builder.closest('[data-top-locked], [data-bottom-locked]')) return;
|
|
95173
95202
|
const util = this.util;
|
|
95174
95203
|
if (builder.closest('[data-cb-type]')) {
|
|
95175
95204
|
// Fix buttons not wrapped in <div style="white-space: nowrap;">
|