/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use '@material/animation/functions' as mdc-animation;
@use '../utils/mixins' as utils-mixins;
@use '../theme';
@use './variables';

@mixin provide-theme($theme) {
  @include theme.theme-properties(backdrop, $theme, variables.$theme-values);
}

@mixin core-styles() {
  .forge-backdrop {
    @include base;
  }
}

@mixin base() {
  @include theme.z-index(backdrop);
  @include theme.css-custom-property(background-color, --forge-backdrop-theme-background, variables.$background);
  @include utils-mixins.position-abs-zero;

  display: flex;
  align-items: center;
  justify-content: center;
  transition: mdc-animation.enter(opacity, 150ms);
  opacity: 0;
}
