Sha256: 666f19a968b9336e14f93123daddb8cc32588fbf7f1cd18419cf751dcf09f4e0

Contents?: true

Size: 320 Bytes

Versions: 9

Compression:

Stored size: 320 Bytes

Contents

@mixin bg-variant($parent, $color) {
  #{$parent} {
    background-color: $color !important;
  }

  a#{$parent},
  button#{$parent} {
    &:hover,
    &:focus {
      background-color: darken($color, 10%) !important;
    }
  }
}

@each $color, $value in $theme-colors {
  @include bg-variant(".bg-#{$color}", $value);
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trestle-0.9.8 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.7 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.6 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.5 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.4 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.3 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.2 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.1 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss
trestle-0.9.0 frontend/theme/trestle/theme/bootstrap/utilities/_background.scss