//
// Copyright IBM Corp. 2021, 2021
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

// Standard imports.
@import '../../global/styles/project-settings';

// Saving uses the following Carbon components:
// Button, InlineLoading
@import 'carbon-components/scss/components/button/button';
@import 'carbon-components/scss/components/inline-loading/inline-loading';

@mixin saving {
  $block-class: #{$pkg-prefix}--saving;

  .#{$block-class}__message {
    display: flex;
  }

  .#{$block-class}__error-icon {
    margin-right: $spacing-05;
  }

  .#{$block-class}__error-icon svg {
    fill: $danger-01;
  }

  .#{$block-class}__text {
    @include carbon--type-style('body-short-01');
  }

  .#{$block-class}__buttons {
    display: flex;
  }
}

@include exports('saving') {
  @include saving;
}
