/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@import "~@bentley/ui-core/lib/ui-core/style/themecolors";

.nz-widget-panelWidget {
  $border-width: 1px;

  border: 0px solid $buic-background-5;

  &.nz-border-top {
    border-top-width: $border-width;
  }

  &.nz-border-bottom {
    border-bottom-width: $border-width;
  }

  &.nz-border-left {
    border-left-width: $border-width;
  }

  &.nz-border-right {
    border-right-width: $border-width;
  }

  &.nz-init, &.nz-transition {
    flex-grow: 1;
    flex-shrink: 1;
  }

  &.nz-horizontal {
    &.nz-transition {
      transition: flex-basis 0.25s ease-out;
    }
  }

  &:not(.nz-horizontal) {
    &.nz-transition {
      transition: flex-basis 0.25s ease-out;
    }
  }

  &.nz-fit {
    flex: 0 1 auto;
  }

  &.nz-fill {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0px;
    min-height: 0;
  }

  &.nz-minimized {
    flex: 0 0 auto;

    > .nz-content {
      overflow: hidden;
    }

    &.nz-horizontal {
      > .nz-content {
        width: 0;
      }
    }

    &:not(.nz-horizontal) {
      > .nz-content {
        height: 0;
      }
    }
  }

  &:not(.nz-minimized) {
    > .nz-content {
      min-height: 0;
      min-width: 0;
    }
  }
}
