Sha256: 502acc2a2d35d2ee3d307be51b2d7026b3fe6d033facf309537d6c1acbf886b8

Contents?: true

Size: 774 Bytes

Versions: 10

Compression:

Stored size: 774 Bytes

Contents

//
// overlay.scss
// Theme utility
//

.overlay {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: inherit;
  }
}


// Colors

@each $color, $value in $theme-colors {

  // Solid
  .overlay-#{$color} {
    @include overlay($value);
  }

  // Gradient
  .overlay-gradient-#{$color}-right {
    @include overlay-gradient($value, right);
  }
  .overlay-gradient-#{$color}-down {
    @include overlay-gradient($value, bottom);
  }
  .overlay-gradient-#{$color}-left {
    @include overlay-gradient($value, left);
  }
}


// Opacity

@for $i from 1 through 9 {
  .overlay-#{$i * 10} {

    &::before {
      opacity: #{$i / 10};
    }
  }
}

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
viniBaxter-spa_landing-10.0 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss
viniBaxter-spa_landing-0.9 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss
viniBaxter-desk_front-14.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/utilities/_overlay.scss
viniBaxter-desk_front-13.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/utilities/_overlay.scss
viniBaxter-desk_front-12.0.0 lib/viniBaxter/sass/desk_front/landing/spa_landing/theme/utilities/_overlay.scss
viniBaxter-spa_landing-0.6.0 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss
viniBaxter-spa_landing-0.4.0 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss
viniBaxter-spa_landing-0.3.0 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss
viniBaxter-spa_landing-0.2.0 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss
viniBaxter-spa_landing-0.1.0 lib/viniBaxter/sass/spa_landing/theme/utilities/_overlay.scss