@import './vars';

.vtj-apps {
  display: flex;
  height: 100%;

  &__header {
    width: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid $--vtj-border-color;
    text-align: center;
    color: $--vtj-color;
    flex-shrink: 0;
  }

  &__panels {
    flex-grow: 1;
    overflow: hidden;
  }

  &__icon {
    padding: 8px 0;
    cursor: pointer;
    font-size: 20px;
    border-left: 2px solid transparent;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    &:first-child {
      border-top: 1px solid transparent;
    }
    i {
      margin-left: -2px;
    }
    &:hover {
      color: $--vtj-primary-color;
    }
    &.is-active {
      color: $--vtj-primary-color;
    }
    &.is-open {
      border-left: 2px solid $--vtj-primary-color;
      background-color: #fff;
      margin-right: -1px;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
      &:first-child {
        border-top: 1px solid transparent;
      }

      i {
        margin-left: -3px;
      }
    }
  }
}
