Sha256: 59412c885b937625aaccedbf0ba867f7696ab28ad8d740943b34ee4323ac7d54

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

// Icon box Mixins

@mixin icon-box {
  padding: $global-padding;
  text-align: center;
  line-height: 1;
  font-size: 1.5rem;
  display: block;

  &.small {
    padding: $global-padding / 2;
    font-size: 1rem;
  }

  &.large {
    padding: $global-padding * 2;
    font-size: 2rem;
  }

  @each $name, $color in $foundation-palette {
    &.#{$name} {
      background-color: $color;

      @if $name != 'default' {
        color: $white;
      }
    }
  }
}


// Icon box Component

@mixin bedrock-icon-box {
  .icon-box {
    @include icon-box;
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bedrock_sass-0.2.2 assets/bedrock/scss/components/icon-box.scss
bedrock_sass-0.2.1 assets/bedrock/scss/components/icon-box.scss
bedrock_sass-0.2.0 assets/bedrock/scss/components/icon-box.scss