/// Computes a top-shadow for a elevation effect.
/// @param {Number} $depth - depth level
/// @return {List}
@function material__elevation--shadow_top($depth) {
  $primary-offset: nth(1 1 2 2 3 3 3 3 4 6, $depth) * 1px;
  $blur: nth(1 1 2 2 3 4 5 6 8 12, $depth) * 1px;
  $color: rgba(black, nth(.1 .1 .1 .1 .1 .1 .1 .1 .1 .1, $depth));

  @return 0 $primary-offset $blur $color;
}

/// Computes a bottom-shadow for a elevation effect.
/// @param {Number} $depth - depth level
/// @return {List}
@function material__elevation--shadow_bottom($depth) {
  $primary-offset: nth(1 2 3 4 6 8 9 12 16 24, $depth) * .5px;
  $blur: nth(1 2 3 4 6 8 9 12 16 24, $depth) * 1px;
  $color: rgba(black, nth(.1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1  , $depth));

  @return 0 $primary-offset $blur $color;
}