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

// ExampleComponent uses the following Carbon components:
// Button, ButtonSet
@import 'carbon-components/scss/components/button/button';

// Define all component styles in a mixin which is then exported using
// the Carbon import-once mechanism.
@mixin example-component {
  // The block part of our conventional BEM class names (blockClass__E--M).
  $block-class: #{$pkg-prefix}--example-component;

  .#{$block-class} {
    display: flex;
    justify-content: flex-end;
    --#{$block-class}--border-color: transparent;
  }

  .#{$block-class}.#{$block-class}--boxed-set {
    border: 10px solid var(--#{$block-class}--border-color);
  }

  .#{$block-class}.#{$block-class}--shadow-set {
    margin: $spacing-04;
    box-shadow: 0 0 10px var(--#{$block-class}--border-color);
  }
}

@include exports('example-component') {
  @include example-component;
}
