/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
@mixin nz-safe-area-left($property: padding-left) {
  @include nz-internal-safe-area($property, safe-area-inset-left);
}

@mixin nz-safe-area-top($property: padding-top) {
  @include nz-internal-safe-area($property, safe-area-inset-top);
}

@mixin nz-safe-area-right($property: padding-right) {
  @include nz-internal-safe-area($property, safe-area-inset-right);
}

@mixin nz-safe-area-bottom($property: padding-bottom) {
  @include nz-internal-safe-area($property, safe-area-inset-bottom);
}

@mixin nz-internal-safe-area($property, $variable) {
  /* iOS 11 */
  #{$property}: constant($variable);
  /* iOS 11.2+ */
  #{$property}: env($variable);
}
