/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use '../theme';
@use './variables';

@mixin core-styles() {
  .forge-stack {
    @include base();
    @include stretch();
    @include theme.css-custom-property(gap, --forge-stack-gap, variables.$gap);
    @include theme.css-custom-property(height, --forge-stack-height, 100%);
  }
}

@mixin base() {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@mixin inline() {
  flex-direction: row;
  --forge-stack-height: auto;
}

@mixin wrap() {
  flex-wrap: wrap;
}

@mixin stretch() {
  ::slotted(*) {
    flex: var(--forge-stack-stretch, initial);
  }
}

@mixin justify-start() {
  justify-content: start;
}

@mixin justify-center() {
  justify-content: center;
}

@mixin justify-end() {
  justify-content: end;
}