@import '../../assets/style/colors.scss';

.sidebar {
  position: relative;
  background: $background;
  color: $fontColorWhite;
  will-change: width;
  width: 40px;
  z-index: 0;
  height: calc(100vh - 90px);
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  .itemsContainer {
    background: $background;
    flex: 1 1 auto;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 8px;
    .item {
      padding: 10px 10px 10px 20px;
      color: $primary;
      cursor:pointer;
    }
  }
  .toggleIconContainer {
    position: relative;
    width: 100%;
    display: flex;
    height: 45px;
    border-bottom: 2px solid #d6d5d5;
    .toggleIcon {
      position: absolute;
      right: 0px;
      top: 3px;
      background: $background;
      padding: 4px 8px 4px 8px;
      font-size: 30px;
      color: #ccc;
      z-index: 999;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 2px;
      cursor: pointer;
      &:hover {
        color: #aaa;
      }
      &:active, &:focus {
        color: $primary;
      }
      &.arrowLeft {
        transform: rotate(-180deg);
        right: 12px;
      }
      transition: all ease-in-out 0.2s;
    }
  }

  &.open {
    width: 360px;
  }
}
