Sha256: af0b9635b2ccc5710dcf45a18ea32c79e0204e9994a288330664ceab7c135714

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

// Background color utility mixin
@mixin bg-color-variant($name: ".bg-primary", $color: $primary-color) {
  #{$name} {
    background: $color !important;

    @if (lightness($color) < 60) {
      color: $light-color;
    }
  }
}

// Text color utility mixin
@mixin text-color-variant($name: ".text-primary", $color: $primary-color) {
  #{$name} {
    color: $color !important;
  }

  a#{$name} {
    &:focus,
    &:hover {
      color: darken($color, 5%);
    }
    &:visited {
      color: lighten($color, 5%);
    }
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spectre_scss-0.5.9.1 vendor/assets/stylesheets/spectre/mixins/_color.scss
spectre_scss-0.5.9.0 vendor/assets/stylesheets/spectre/mixins/_color.scss
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/mixins/_color.scss
spectre_scss-0.5.7.0 vendor/assets/stylesheets/spectre/mixins/_color.scss
spectre_scss-0.5.6.0 vendor/assets/stylesheets/spectre/mixins/_color.scss
spectre_scss-0.5.5.0 vendor/assets/stylesheets/spectre/mixins/_color.scss
spectre_scss-0.5.4.0 vendor/assets/stylesheets/spectre/mixins/_color.scss