// (C) Copyright 2020 Hewlett-Packard Enterprise Company, L.P.

@mixin gradient($first, $second) {
  background: $second;
  //filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$first', endColorstr='$second');
  background: -webkit-gradient(linear, left top, left bottom, from($first), to($second));
  background: -moz-linear-gradient(top,  $first,  $second);
}

@mixin box-shadow($distanceX, $distanceY, $blur, $spread, $color) {
  -webkit-box-shadow: $distanceX $distanceY $blur $spread $color;
  -moz-box-shadow: $distanceX $distanceY $blur $spread $color;
  box-shadow: $distanceX $distanceY $blur $spread $color;
}

@mixin remove-box-shadow() {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

@mixin inset-shadow($distanceX, $distanceY, $blur, $spread, $color) {
  -webkit-box-shadow: inset $distanceX $distanceY $blur $spread $color;
  -moz-box-shadow: inset $distanceX $distanceY $blur $spread $color;
  box-shadow: inset $distanceX $distanceY $blur $spread $color;
}

@mixin box-inset-shadow($distanceX, $distanceY, $blur, $spread, $color,
  $idistanceX, $idistanceY, $iblur, $ispread, $icolor) {
  -webkit-box-shadow: $distanceX $distanceY $blur $spread $color,
    inset $idistanceX $idistanceY $iblur $ispread $icolor;
  -moz-box-shadow: $distanceX $distanceY $blur $spread $color,
    inset $idistanceX $idistanceY $iblur $ispread $icolor;
  box-shadow: $distanceX $distanceY $blur $spread $color,
    inset $idistanceX $idistanceY $iblur $ispread $icolor;
}

@mixin input-inner-shadow() {
  -webkit-box-shadow: inset 0px 7px 5px -5px #eaeaea;
  -moz-box-shadow: inset 0px 7px 5px -5px #eaeaea;
  -ms-box-shadow: inset 0px 7px 5px -5px #eaeaea;
  -o-box-shadow: inset 0px 7px 5px -5px #eaeaea;
  box-shadow: inset 0px 7px 5px -5px #eaeaea;
}

@mixin remove-box-shadow() {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  -ms-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
}
