Sha256: eca31a9036c956556a4939b077e764d521a45057dedff62c97b2463e2b06c5d0

Contents?: true

Size: 523 Bytes

Versions: 16

Compression:

Stored size: 523 Bytes

Contents

@function color($key, $sub-key: null) {
  @if $sub-key != null {
    @if map-has-key($colors, $key) {
      $sub-colors: map-get($colors, $key);

      @if map-has-key($sub-colors, $sub-key) {
        @return map-get($sub-colors, $sub-key);
      }
      @error "Unknown sub-color `#{$sub-key}` in $sub-colors.";
      @return null;
    }
  } @else {
    @if map-has-key($colors, $key) {
      @return map-get($colors, $key);
    }
  }

  @warn "Unknown color `#{$key}` in $colors.";
  @return null;
} // @function color()

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
compass-excess-0.5.4 stylesheets/_colors.scss
compass-excess-0.5.3 stylesheets/_colors.scss
compass-excess-0.5.2 stylesheets/_colors.scss
compass-excess-0.5.1 stylesheets/_colors.scss
compass-excess-0.5.0 stylesheets/_colors.scss
compass-excess-0.4.0 stylesheets/_colors.scss
compass-excess-0.3.1 stylesheets/_colors.scss
compass-excess-0.3.0 stylesheets/_colors.scss
compass-excess-0.2.1 stylesheets/_colors.scss
compass-excess-0.2.0 stylesheets/_colors.scss
compass-excess-0.1.1 stylesheets/_colors.scss
compass-excess-0.1.0 stylesheets/_colors.scss
compass-excess-0.0.4 stylesheets/_colors.scss
compass-excess-0.0.3 stylesheets/_colors.scss
compass-excess-0.0.2 stylesheets/_colors.scss
compass-excess-0.0.1 stylesheets/_colors.scss