// Implementation specification in https://github.com/FezVrasta/bootstrap-material-design/issues/822

// Drawer.
.uex-layout-sidebar {
  position: absolute;
  z-index: 5; // over a header and content
  box-sizing: border-box;
  display: flex;
  width: $uex-layout-sidebar-width;
  height: 100%;

  flex-direction: column;
  flex-wrap: nowrap;

  max-height: 100%;
  overflow: visible;
  overflow-y: auto;
  font-size: 1.4rem;
  background: $uex-layout-sidebar-bg-color;

  // Transform offscreen.
  transition: transform;
  will-change: transform;
  transform-style: preserve-3d;
  box-shadow: $uex-layout-sidebar-box-shadow;
  @include material-animation-default();

  > * {
    flex-shrink: 0;
  }

  // Placement of common components within the sidebar
  //  You might say this is opinionated - feedback welcome.
  > header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;

    .navbar-brand {
      padding-left: 1.5rem;
      font-size: 1.25rem;
    }
  }

  > .list-group {
    padding-top: 1rem;

    .list-group-item {
      padding-right: 2.5rem;
      padding-left: 2.5rem;
      font-size: 1.4rem;
      font-weight: $font-weight-active;
    }
  }
}

//----------------
// Sizing and positioning below here

// for left or right sidebars, setup widths, heights and positions
@include uex-layout-sidebar-out($uex-layout-sidebar-width);

@include uex-layout-sidebar-in-up($uex-layout-sidebar-width);

@include uex-layout-sidebar-overlay-down();

@import "sidebar/avatar";
@import "sidebar/brand";
