// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP

.#{$grommet-namespace}sidebar {
  @include media-query(palm) {
    max-width: 100%;
    width: 100vw;
  }

  @include media-query(lap-and-up) {
    width: $sidebar-width;
  }
}

.#{$grommet-namespace}sidebar--fixed {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}

.#{$grommet-namespace}sidebar--xsmall {
  @include media-query(lap-and-up) {
    width: $sidebar-xsmall-width;
  }
}

.#{$grommet-namespace}sidebar--small {
  @include media-query(lap-and-up) {
    width: $sidebar-small-width;
  }
}

.#{$grommet-namespace}sidebar--large {
  @include media-query(lap-and-up) {
    width: $sidebar-large-width;
  }
}

.#{$grommet-namespace}sidebar--full {
  min-height: 100vh;

  // The following is needed for IE11 since it doesn't work with just min/max.
  .#{$grommet-namespace}sidebar--fixed {
    height: 100vh;
  }
}
