@mixin margin-bottom-not-last-child($value) {
  &:not(:last-child) {
    margin-bottom: $value;
  }
}

@mixin margin-right-not-last-child($value) {
  &:not(:last-child) {
    margin-right: $value;
  }
}

@mixin same-min-and-max-height($value) {
  max-height: $value;
  min-height: $value;
}

@mixin same-min-and-max-width($value) {
  max-width: $value;
  min-width: $value;
}

@mixin change-placeholder-color($color) {
  &::-webkit-input-placeholder {
    color: $color;
  }

  &:-moz-placeholder {
    color: $color;
    opacity:  1;
  }

  &::-moz-placeholder {
    color: $color;
    opacity:  1;
  }

  &:-ms-input-placeholder {
    color: $color;
  }
  
  &::-ms-input-placeholder {
    color: $color;
  }

  &::placeholder {
    color: $color;
  }
}

@mixin svg-block-by-height {
  display: block;
  height: 100%;
  width: auto;
}

@mixin svg-block-by-width {
  display: block;
  width: 100%;
  height: auto;
}
