SU-SWS/decanter

View on GitHub
core/src/scss/utilities/mixins/shadow/_box-shadow.scss

Summary

Maintainability
Test Coverage

///
/// Box shadows for element containers.
///
/// @name box-shadow
///
/// @param {string} $depth [flat] - One of flat, paper, shallow, medium, medium-deep, deep
/// @param {css} $stroke [1px solid #C6C6C6] - border css properties
///
/// @group mixin
@mixin box-shadow($depth: 'paper', $stroke: '1px solid #C6C6C6') {
  @if $stroke != 0 and $stroke != 'none' and $stroke != null {
    border: #{$stroke};
  }

  box-shadow: #{map-get($su-box-shadow-depth, $depth)};
}