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

@use "../functions" as *;
@use "../../../config" as *;
@use "../../../motion" as *;
@use "../../../theme" as *;
@use "../../../utilities/z-index" as *;

/// UI shell side nav
/// @access private
/// @group ui-shell
@mixin header-panel {
  //----------------------------------------------------------------------------
  // Header Panel
  //----------------------------------------------------------------------------
  .#{$prefix}--header-panel {
    position: fixed;
    z-index: z("header");
    top: mini-units(6);
    right: 0;
    bottom: 0;
    overflow: hidden;
    width: 0;
    border: none;
    background-color: $layer-primary;
    color: $text-body-secondary;
    transition: width $duration-fast-02 motion(exit, productive);
    will-change: width;
  }

  .#{$prefix}--header-panel--expanded {
    width: mini-units(32);
    border-right: 1px solid $border-subtle;
    border-left: 1px solid $border-subtle;
  }
}
