.six-storage-sidenav {
  position: fixed;
  width: $sidenav-width;
  left: 0;
  top: 0;
  margin: 0;
  transform: translateX(-100%);
  height: 100%;
  height: calc(100% + 60px);
  height: -moz-calc(100%); //Temporary Firefox Fix
  padding-bottom: 60px;
  background-color: $sidenav-bg-color;
  z-index: 999;
  overflow-y: auto;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateX(-105%);

  @extend .six-storage-z-depth-1;

  // Right Align
  &.six-storage-right-aligned {
    right: 0;
    transform: translateX(105%);
    left: auto;
    transform: translateX(100%);
  }

  .six-storage-collapsible {
    margin: 0;
  }


  li {
    float: none;
    line-height: $sidenav-line-height;

    &.six-storage-active { background-color: rgba(0,0,0,.05); }
  }

  li > a {
    color: $sidenav-font-color;
    display: block;
    font-size: $sidenav-font-size;
    font-weight: 500;
    height: $sidenav-item-height;
    line-height: $sidenav-line-height;
    padding: 0 ($sidenav-padding * 2);

    &:hover { background-color: rgba(0,0,0,.05);}

    &.six-storage-btn, &.six-storage-btn-large, &.six-storage-btn-flat, &.six-storage-btn-floating {
      margin: 10px 15px;
    }

    &.six-storage-btn,
    &.six-storage-btn-large,
    &.six-storage-btn-floating { color: $button-raised-color; }
    &.six-storage-btn-flat { color: $button-flat-color; }

    &.six-storage-btn:hover,
    &.six-storage-btn-large:hover { background-color: lighten($button-raised-background, 5%); }
    &.six-storage-btn-floating:hover { background-color: $button-raised-background; }

    & > i,
    & > [class^="mdi-"], li > a > [class*="mdi-"],
    & > i.six-storage-material-icons {
      float: left;
      height: $sidenav-item-height;
      line-height: $sidenav-line-height;
      margin: 0 ($sidenav-padding * 2) 0 0;
      width: $sidenav-item-height / 2;
      color: rgba(0,0,0,.54);
    }
  }


  .six-storage-divider {
    margin: ($sidenav-padding / 2) 0 0 0;
  }

  .six-storage-subheader {
    &:hover {
      background-color: transparent;
    }

    cursor: initial;
    pointer-events: none;
    color: rgba(0,0,0,.54);
    font-size: $sidenav-font-size;
    font-weight: 500;
    line-height: $sidenav-line-height;
  }

  .six-storage-user-view {
    position: relative;
    padding: ($sidenav-padding * 2) ($sidenav-padding * 2) 0;
    margin-bottom: $sidenav-padding / 2;

    & > a {
      &:hover { background-color: transparent; }
      height: auto;
      padding: 0;
    }

    .background {
      overflow: hidden;
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: -1;
    }

    .six-storage-circle, .name, .email {
      display: block;
    }

    .six-storage-circle {
      height: 64px;
      width: 64px;
    }

    .name,
    .email {
      font-size: $sidenav-font-size;
      line-height: $sidenav-line-height / 2;
    }

    .name {
      margin-top: 16px;
      font-weight: 500;
    }

    .email {
      padding-bottom: 16px;
      font-weight: 400;
    }
  }
}


// Touch interaction
.six-storage-drag-target {
  // Right Align
  &.six-storage-right-aligned {
    right: 0;
  }

  height: 100%;
  width: 10px;
  position: fixed;
  top: 0;
  z-index: 998;
}


// Fixed Sidenav shown
.six-storage-sidenav.six-storage-sidenav-fixed {
  // Right Align
  &.six-storage-right-aligned {
    right: 0;
    left: auto;
  }

  left: 0;
  transform: translateX(0);
  position: fixed;
}

// Fixed Sidenav hide on smaller
@media #{$medium-and-down} {
  .six-storage-sidenav {
    &.six-storage-sidenav-fixed {
      transform: translateX(-105%);

      &.six-storage-right-aligned {
        transform: translateX(105%);
      }
    }

    > a {
      padding: 0 $sidenav-padding;
    }

    .six-storage-user-view {
      padding: $sidenav-padding $sidenav-padding 0;
    }
  }
}


.six-storage-sidenav .six-storage-collapsible-body > ul:not(.six-storage-collapsible) > li.six-storage-active,
.six-storage-sidenav.six-storage-sidenav-fixed .six-storage-collapsible-body > ul:not(.six-storage-collapsible) > li.six-storage-active {
  background-color: $primary-color;
  a {
    color: $sidenav-bg-color;
  }
}
.six-storage-sidenav .six-storage-collapsible-body {
  padding: 0;
}


.six-storage-sidenav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  height: 120vh;
  background-color: rgba(0,0,0,.5);
  z-index: 997;
  display: none;
}
