@innovastudio/contentbuilder 1.5.96 → 1.5.97

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.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/public/contentbuilder/contentbuilder.css +2 -0
  3. package/public/contentbuilder/contentbuilder.esm.js +14 -54
  4. package/public/contentbuilder/contentbuilder.min.js +2 -2
  5. package/public/contentbuilder/themes/colored-blue.css +25 -4
  6. package/public/contentbuilder/themes/colored-blue2.css +25 -4
  7. package/public/contentbuilder/themes/colored-blue3.css +25 -4
  8. package/public/contentbuilder/themes/colored-blue4.css +25 -4
  9. package/public/contentbuilder/themes/colored-blue5.css +25 -4
  10. package/public/contentbuilder/themes/colored-blue6.css +25 -4
  11. package/public/contentbuilder/themes/colored-blue7.css +25 -4
  12. package/public/contentbuilder/themes/colored-blue8.css +25 -4
  13. package/public/contentbuilder/themes/colored-dark.css +30 -4
  14. package/public/contentbuilder/themes/colored-darkblue.css +25 -4
  15. package/public/contentbuilder/themes/colored-gray.css +25 -4
  16. package/public/contentbuilder/themes/colored-green.css +25 -4
  17. package/public/contentbuilder/themes/colored-green2.css +25 -4
  18. package/public/contentbuilder/themes/colored-green3.css +25 -4
  19. package/public/contentbuilder/themes/colored-green4.css +25 -4
  20. package/public/contentbuilder/themes/colored-green5.css +25 -4
  21. package/public/contentbuilder/themes/colored-magenta.css +25 -4
  22. package/public/contentbuilder/themes/colored-orange.css +25 -4
  23. package/public/contentbuilder/themes/colored-orange2.css +25 -4
  24. package/public/contentbuilder/themes/colored-orange3.css +25 -4
  25. package/public/contentbuilder/themes/colored-pink.css +25 -4
  26. package/public/contentbuilder/themes/colored-pink2.css +25 -4
  27. package/public/contentbuilder/themes/colored-pink3.css +25 -4
  28. package/public/contentbuilder/themes/colored-pink4.css +25 -4
  29. package/public/contentbuilder/themes/colored-purple.css +25 -4
  30. package/public/contentbuilder/themes/colored-purple2.css +25 -4
  31. package/public/contentbuilder/themes/colored-red.css +25 -4
  32. package/public/contentbuilder/themes/colored-red2.css +25 -4
  33. package/public/contentbuilder/themes/colored-red3.css +25 -4
  34. package/public/contentbuilder/themes/colored-red4.css +25 -4
  35. package/public/contentbuilder/themes/colored-red5.css +25 -4
  36. package/public/contentbuilder/themes/colored-yellow.css +25 -4
  37. package/public/contentbuilder/themes/colored-yellow2.css +25 -4
  38. package/public/contentbuilder/themes/dark-blue.css +30 -4
  39. package/public/contentbuilder/themes/dark-blue2.css +30 -4
  40. package/public/contentbuilder/themes/dark-blue3.css +30 -4
  41. package/public/contentbuilder/themes/dark-gray.css +30 -4
  42. package/public/contentbuilder/themes/dark-pink.css +30 -4
  43. package/public/contentbuilder/themes/dark-purple.css +30 -4
  44. package/public/contentbuilder/themes/dark-red.css +30 -4
  45. package/public/contentbuilder/themes/dark.css +30 -4
  46. package/public/contentbuilder/themes/light-blue.css +25 -4
  47. package/public/contentbuilder/themes/light-blue2.css +25 -4
  48. package/public/contentbuilder/themes/light-blue3.css +25 -4
  49. package/public/contentbuilder/themes/light-cyan.css +25 -4
  50. package/public/contentbuilder/themes/light-gray.css +25 -4
  51. package/public/contentbuilder/themes/light-gray2.css +25 -4
  52. package/public/contentbuilder/themes/light-gray3.css +25 -4
  53. package/public/contentbuilder/themes/light-green.css +25 -4
  54. package/public/contentbuilder/themes/light-pink.css +25 -4
  55. package/public/contentbuilder/themes/light-pink2.css +25 -4
  56. package/public/contentbuilder/themes/light-purple.css +25 -4
  57. package/public/contentbuilder/themes/light-purple2.css +25 -4
  58. package/public/contentbuilder/themes/light-red.css +25 -4
  59. package/public/contentbuilder/themes/light-yellow.css +25 -4
  60. package/public/contentbuilder/themes/light-yellow2.css +25 -4
  61. package/readme.txt +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.96",
4
+ "version": "1.5.97",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -4371,6 +4371,8 @@ button:focus-visible {
4371
4371
  text-align: center;
4372
4372
  border-top: transparent 46px solid !important;
4373
4373
  outline: none;
4374
+ scrollbar-width: thin;
4375
+ scrollbar-color: #aaa #f0f0f0;
4374
4376
  }
4375
4377
  #_cbhtml .is-design-list > div,
4376
4378
  .is-ui .is-design-list > div {
@@ -86,67 +86,21 @@ class Snippets {
86
86
  outline: transparent 1px solid;
87
87
  }
88
88
 
89
-
90
-
91
89
  /* Scrollbar for modal */
92
-
93
- /* Darker color, because background for snippet thumbnails is always light. */
94
- .dark * {
95
- scrollbar-width: thin;
96
- scrollbar-color: rgb(78 78 78 / 62%) auto;
97
- }
98
- .dark *::-webkit-scrollbar {
99
- width: 12px;
100
- }
101
- .dark *::-webkit-scrollbar-track {
102
- background: transparent;
90
+ .is-design-list {
91
+ scrollbar-width: thin;
92
+ scrollbar-color: #aaa #f0f0f0;
103
93
  }
104
- .dark *::-webkit-scrollbar-thumb {
105
- background-color:rgb(78 78 78 / 62%);
106
- }
107
-
108
- .colored-dark * {
94
+ .dark .is-design-list {
109
95
  scrollbar-width: thin;
110
- scrollbar-color: rgb(100, 100, 100) auto;
111
- }
112
- .colored-dark *::-webkit-scrollbar {
113
- width: 12px;
114
- }
115
- .colored-dark *::-webkit-scrollbar-track {
116
- background: transparent;
96
+ scrollbar-color: #696969 #a1a1a1;
97
+ /* scrollbar-color: rgba(255, 255, 255, 0.3) rgb(80, 80, 80); */
117
98
  }
118
- .colored-dark *::-webkit-scrollbar-thumb {
119
- background-color:rgb(100, 100, 100);
120
- }
121
-
122
- .colored * {
99
+ .colored-dark .is-design-list {
123
100
  scrollbar-width: thin;
124
- scrollbar-color: rgba(0, 0, 0, 0.4) auto;
125
- }
126
- .colored *::-webkit-scrollbar {
127
- width: 12px;
128
- }
129
- .colored *::-webkit-scrollbar-track {
130
- background: transparent;
101
+ scrollbar-color: #7a7a7a #bebebe;
131
102
  }
132
- .colored *::-webkit-scrollbar-thumb {
133
- background-color: rgba(0, 0, 0, 0.4);
134
- }
135
103
 
136
- .light * {
137
- scrollbar-width: thin;
138
- scrollbar-color: rgba(0, 0, 0, 0.4) auto;
139
- }
140
- .light *::-webkit-scrollbar {
141
- width: 12px;
142
- }
143
- .light *::-webkit-scrollbar-track {
144
- background: transparent;
145
- }
146
- .light *::-webkit-scrollbar-thumb {
147
- background-color: rgba(0, 0, 0, 0.4);
148
- }
149
-
150
104
  svg {
151
105
  fill: ${this.builder.styleSnippetColor};
152
106
  }
@@ -49994,6 +49948,12 @@ class Module {
49994
49948
  moduleModal.querySelector('div:not(.is-modal-overlay)').style.width = '90vw';
49995
49949
  moduleModal.querySelector('div:not(.is-modal-overlay)').style.maxWidth = w;
49996
49950
  moduleModal.querySelector('div:not(.is-modal-overlay)').style.height = h;
49951
+ var themeLight = module.getAttribute('data-theme-light');
49952
+ if (themeLight || modulename === 'form-builder') {
49953
+ moduleModal.classList.add('theme-light');
49954
+ } else {
49955
+ moduleModal.classList.remove('theme-light');
49956
+ }
49997
49957
  let btnClose = moduleModal.querySelector('.is-modal-close');
49998
49958
  dom.addEventListener(btnClose, 'click', () => {
49999
49959
  util.hideModal(moduleModal);