@innovastudio/contentbox 1.6.178 → 1.6.179
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/package.json
CHANGED
|
@@ -142419,6 +142419,8 @@ class Box {
|
|
|
142419
142419
|
overlayColor = overlayBg.querySelector('.is-overlay-color');
|
|
142420
142420
|
}
|
|
142421
142421
|
|
|
142422
|
+
if (overlayBg) overlayBg.style.opacity = ''; // clear unwanted opacity
|
|
142423
|
+
|
|
142422
142424
|
if (this.builder.useCssClasses) {
|
|
142423
142425
|
const classes = this.builder.cssClasses.opacity;
|
|
142424
142426
|
|
|
@@ -145727,8 +145729,13 @@ class CodeChat {
|
|
|
145727
145729
|
let isChatVisible = savedState === 'true'; // Only open if explicitly set to 'true'
|
|
145728
145730
|
|
|
145729
145731
|
if (!isChatVisible) {
|
|
145730
|
-
|
|
145731
|
-
|
|
145732
|
+
if (this.builder.startCodeChat) {
|
|
145733
|
+
modal.classList.remove('hidden');
|
|
145734
|
+
modal.removeAttribute('aria-hidden');
|
|
145735
|
+
} else {
|
|
145736
|
+
modal.classList.add('hidden');
|
|
145737
|
+
modal.setAttribute('aria-hidden', 'true');
|
|
145738
|
+
}
|
|
145732
145739
|
} else {
|
|
145733
145740
|
modal.classList.remove('hidden');
|
|
145734
145741
|
modal.removeAttribute('aria-hidden');
|
|
@@ -147387,7 +147394,7 @@ ${this.builder.html()}
|
|
|
147387
147394
|
banner.className = 'demo-banner';
|
|
147388
147395
|
banner.innerHTML = `
|
|
147389
147396
|
<div style="
|
|
147390
|
-
background: linear-gradient(135deg, #
|
|
147397
|
+
background: linear-gradient(135deg, #527cff 0%, #5563db 100%);
|
|
147391
147398
|
color: white;
|
|
147392
147399
|
padding: 12px 16px;
|
|
147393
147400
|
border-radius: 8px;
|
|
@@ -148586,23 +148593,15 @@ The overlay system provides background images and colors behind content.
|
|
|
148586
148593
|
</div>
|
|
148587
148594
|
</div>
|
|
148588
148595
|
|
|
148589
|
-
### Background Image with Color Overlay
|
|
148590
|
-
|
|
148591
|
-
<div class="is-overlay" style="background-color: rgb(225, 225, 225);">
|
|
148592
|
-
<div class="is-overlay-bg"
|
|
148593
|
-
style="background-image: url('image.jpg');
|
|
148594
|
-
background-position: 50% 60%;
|
|
148595
|
-
opacity: 0.7;">
|
|
148596
|
-
</div>
|
|
148597
|
-
</div>
|
|
148598
|
-
|
|
148599
148596
|
### Dark Overlay on Image
|
|
148600
148597
|
|
|
148598
|
+
**Use case:** For the background behind white text content.
|
|
148599
|
+
|
|
148601
148600
|
<div class="is-overlay">
|
|
148602
148601
|
<div class="is-overlay-bg"
|
|
148603
148602
|
style="background-image: url('image.jpg');
|
|
148604
148603
|
background-position: 50% 60%;">
|
|
148605
|
-
<div class="is-overlay-color opacity-
|
|
148604
|
+
<div class="is-overlay-color opacity-30"></div>
|
|
148606
148605
|
</div>
|
|
148607
148606
|
</div>
|
|
148608
148607
|
|
|
@@ -148946,6 +148945,24 @@ The Box Framework provides structure. The Content.css Framework provides content
|
|
|
148946
148945
|
|
|
148947
148946
|
Always use both frameworks together for complete designs.
|
|
148948
148947
|
|
|
148948
|
+
### 9. Add smooth image scaling for overlay background image
|
|
148949
|
+
|
|
148950
|
+
<div class="is-section ...">
|
|
148951
|
+
<!-- Section content -->
|
|
148952
|
+
</div>
|
|
148953
|
+
<div class="is-section ...">
|
|
148954
|
+
<!-- Section content -->
|
|
148955
|
+
</div>
|
|
148956
|
+
<style>
|
|
148957
|
+
/* Smooth image scaling */
|
|
148958
|
+
.is-overlay-bg {
|
|
148959
|
+
transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
148960
|
+
}
|
|
148961
|
+
.is-box:hover .is-overlay-bg {
|
|
148962
|
+
transform: scale(1.03);
|
|
148963
|
+
}
|
|
148964
|
+
</style>
|
|
148965
|
+
|
|
148949
148966
|
---
|
|
148950
148967
|
|
|
148951
148968
|
## Common Patterns
|
|
@@ -148985,6 +149002,29 @@ Always use both frameworks together for complete designs.
|
|
|
148985
149002
|
</div>
|
|
148986
149003
|
</div>
|
|
148987
149004
|
|
|
149005
|
+
### Pattern: Dark overlay background image behind white text content.
|
|
149006
|
+
|
|
149007
|
+
<div class="is-section is-box type-system-ui is-section-60 is-content-bottom edge-y-4">
|
|
149008
|
+
<div class="is-overlay">
|
|
149009
|
+
<div class="is-overlay-bg" style="background-image: url('assets/thelayout/images/ai-aZkV0.jpg'); background-position: 50% 40%;">
|
|
149010
|
+
<div class="is-overlay-color opacity-30"></div>
|
|
149011
|
+
</div>
|
|
149012
|
+
</div>
|
|
149013
|
+
<div class="is-container is-content-1200 text-center">
|
|
149014
|
+
<div class="row">
|
|
149015
|
+
<div class="column">
|
|
149016
|
+
<h2 class="size-60 font-light text-white leading-12 pb-6">Start your next chapter.</h2>
|
|
149017
|
+
<div class="spacer height-20"></div>
|
|
149018
|
+
<div>
|
|
149019
|
+
<a href="#" role="button" class="transition-all inline-block whitespace-nowrap cursor-pointer no-underline border-2 border-solid mt-2 mb-1 font-normal tracking-normal rounded-full py-3 px-10 size-16 leading-16 border-white hover:bg-white hover:text-black" style="color: #ffffff;">
|
|
149020
|
+
Visit Us Today
|
|
149021
|
+
</a>
|
|
149022
|
+
</div>
|
|
149023
|
+
</div>
|
|
149024
|
+
</div>
|
|
149025
|
+
</div>
|
|
149026
|
+
</div>
|
|
149027
|
+
|
|
148988
149028
|
### Pattern: Three Equal Boxes
|
|
148989
149029
|
|
|
148990
149030
|
<div class="is-section type-system-ui is-section-60">
|
|
@@ -149288,6 +149328,15 @@ The frameworks provide utility classes for structure and typography. To create r
|
|
|
149288
149328
|
|
|
149289
149329
|
<!-- Embedded Styke -->
|
|
149290
149330
|
<style>
|
|
149331
|
+
/* Smooth image scaling */
|
|
149332
|
+
.is-overlay-bg {
|
|
149333
|
+
transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
149334
|
+
}
|
|
149335
|
+
|
|
149336
|
+
.is-box:hover .is-overlay-bg {
|
|
149337
|
+
transform: scale(1.03);
|
|
149338
|
+
}
|
|
149339
|
+
|
|
149291
149340
|
/* Subtle hover zoom for background images */
|
|
149292
149341
|
.is-overlay-bg {
|
|
149293
149342
|
transition: transform 1s ease;
|