Cartzilla utilities

Custom Cartzilla utility classes.

Cartzilla component

Faded background colors

Primary faded background
Accent faded background
Secondary background
Info faded background
Success faded background
Warning faded background
Danger faded background
Dark faded background
<!-- Primary faded background -->
<div class="bg-faded-primary">...</div>

<!-- Accent background -->
<div class="bg-faded-accent">...</div>

<!-- Secondary background -->
<div class="bg-secondary">...</div>

<!-- Info faded background -->
<div class="bg-faded-info">...</div>

<!-- Success faded background -->
<div class="bg-faded-success">...</div>

<!-- Warning faded background -->
<div class="bg-faded-warning">...</div>

<!-- Danger faded background -->
<div class="bg-faded-danger">...</div>

<!-- Dark faded background -->
<div class="bg-faded-dark">...</div>
// Primary faded background
.bg-faded-primary
  | ...

// Accent faded background
.bg-faded-accent
  | ...

// Secondary background
.bg-secondary
  | ...

// Info faded background
.bg-faded-info
  | ...

// Success faded background
.bg-faded-success
  | ...

// Warning faded background
.bg-faded-warning
  | ...

// Danger faded background
.bg-faded-danger
  | ...

// Dark faded background
.bg-faded-dark
  | ...

Text shadow

Text shadow

<!-- Text shadow -->
<h2 class="text-white text-shadow">Text shadow</h2>
// Text shadow
h2.text-white.text-shadow Text shadow

Opacity

Opacity 25%Opacity 50%Opacity 60%Opacity 70%Opacity 75%Opacity 80%Opacity 90%Opacity 100%
<!-- Opacity -->
<div class="opacity-25"></div>
<div class="opacity-50"></div>
<div class="opacity-60"></div>
<div class="opacity-70"></div>
<div class="opacity-75"></div>
<div class="opacity-80"></div>
<div class="opacity-90"></div>
<div class="opacity-100"></div>
// Opacity
.opacity-25
.opacity-50
.opacity-60
.opacity-70
.opacity-75
.opacity-80
.opacity-90
.opacity-100

Translucent image overlay

Black overlay
Primary overlay
Accent overlay
Success overlay
Warning overlay
Danger overlay
Info overlay
White overlay
<!-- Black overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-black opacity-50"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Black overlay</div>
</div>

<!-- Primary overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-primary opacity-70"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Primary overlay</div>
</div>

<!-- Accent overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-accent opacity-70"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Accent overlay</div>
</div>

<!-- Success overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-success opacity-70"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Success overlay</div>
</div>

<!-- Warning overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-warning opacity-70"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Warning overlay</div>
</div>

<!-- Danger overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-danger opacity-70"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Danger overlay</div>
</div>

<!-- Info overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-info opacity-70"></div>
  <div class="position-relative fw-medium text-white text-shadow text-center zindex-5 py-5">Info overlay</div>
</div>

<!-- White overlay -->
<div class="position-relative bg-size-cover bg-position-center py-5" style="background-image: url(path-tobg-image);">
  <div class="position-absolute top-0 start-0 w-100 h-100 bg-white opacity-70"></div>
  <div class="position-relative fw-medium text-center zindex-5 py-5">White overlay</div>
</div>
// Black overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-black.opacity-50
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Black overlay

// Primary overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-primary.opacity-70
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Primary overlay

// Accent overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-accent.opacity-70
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Accent overlay

// Success overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-success.opacity-70
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Success overlay

// Warning overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-warning.opacity-70
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Warning overlay

// Danger overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-danger.opacity-70
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Danger overlay

// Info overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-info.opacity-70
  .position-relative.fw-medium.text-white.text-shadow.text-center.zindex-5.py-5 Info overlay

// White overlay
.position-relative.bg-size-cover.bg-position-center.py-5(style="background-image: url(path-to-bg-image);")
  .position-absolute.top-0.start-0.w-100.h-100.bg-white.opacity-70
  .position-relative.fw-medium.text-center.zindex-5.py-5 White overlay
Top