//
// Copyright IBM Corp. 2020, 2023
//
// 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';

// Empty states use the following Carbon components:
// Button, Link
@import 'carbon-components/scss/components/button/button';
@import 'carbon-components/scss/components/link/link';

// Define all component styles in a mixin which is then exported using
// the Carbon import-once mechanism.
@mixin empty-state {
  $block-class: #{$pkg-prefix}--empty-state;

  .#{$block-class} {
    color: $text-01;

    .#{$block-class}__header {
      @include carbon--type-style('productive-heading-03');

      padding-bottom: $spacing-03;
      margin: 0;
    }

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

      padding-bottom: $spacing-05;
    }
    .#{$block-class}__header--small {
      @include carbon--type-style('body-short-02');

      padding-bottom: $spacing-03;
    }
    .#{$block-class}__subtitle--small {
      @include carbon--type-style('caption-01');
    }
  }

  .#{$block-class}__illustration {
    height: auto;
    margin-bottom: $spacing-05;
    &.#{$block-class}__illustration--lg {
      min-width: $spacing-11;
      max-width: $spacing-11;
    }
    &.#{$block-class}__illustration--sm {
      min-width: $spacing-10;
      max-width: $spacing-10;
    }
  }

  .#{$block-class} .#{$block-class}__action-button {
    display: block;
    margin-bottom: $spacing-05;
  }
  .#{$block-class} .#{$block-class}__link {
    display: block;
  }
}

@include exports('empty-state') {
  @include empty-state;
}
