index.scss 1.17 KB
.main {
  display: grid;
  grid-template-columns: 297px 1fr;
  height: calc(100vh - 80px);
  .tabs {
    background: #202020;
    overflow-y: scroll;
    color: #fff;
    user-select: none;
    .title {
      border-bottom: 1px solid #FDFEFF;
      height: 49px;
      line-height: 49px;
      text-indent: 40px;
      font-size: 22px;
    }
    .tab {
      &-text {
        display: flex;
        align-items: center;
        padding-left: 20px;
        height: 50px;
        line-height: 50px;
        &:hover {
          cursor: pointer;
        }
        .icon {
          width: 7px;
          height: 12px;
          margin-right: 8px;
          transition: all .5s;
        }
      }
      .item-list {
        display: none;
      }
      .on {
        .icon {
          transform: rotate(90deg);
        }
      }
      .on~.item-list {
        display: block;
      }
      .item {
        height: 50px;
        line-height: 50px;
        padding-left: 60px;
        font-size: 14px;
        &:hover {
          cursor: pointer;
          background: #008BF4;
        }
      }
      .active {
        background: #008BF4;
      }
    }
  }
  .content {
    overflow-y: scroll;
  }
}