#app {
  .main-container {
    position: relative;
    min-height: 100%;
    margin-left: $sideBarWidth;
    transition: margin-left 0.28s;
  }

  .sidebar-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: $sideBarWidth !important;
    height: 100%;
    overflow: hidden;
    background-color: $menuBg;
    box-shadow: 0 0 10px #eeeeee;
    transition: width 0.28s;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      width: 100% !important;
      height: 100%;
      border: none;
    }

    .el-sub-menu__title,
    .el-menu-item {
      position: relative;
      margin: 36px 0 0 20px;
      width: 210px;
      height: 38px;
      line-height: 38px;
      border-radius: 5px;
      color: #657dbc;
      font-size: 16px;
      padding-left: 30px;
      span {
        color: $menuText;
      }
    }
    .el-sub-menu .el-sub-menu__icon-arrow {
      width: 20px;
    }
    .el-menu-item.is-active {
      background: $menuHover;
      color: #ffffff;
      span {
        color: $menuBg;
      }
      &:after {
        content: "\276F";
        position: absolute;
        right: 20px;
      }
    }

    //.el-menu-item {
    //  margin: 36px auto 0;
    //  width: 210px;
    //  height: 38px;
    //  line-height: 38px;
    //  border-radius: 5px;
    //  color: #657dbc;
    //  font-size: 16px;
    //  padding-left: 30px;
    //  span {
    //    color: $menuText;
    //  }
    //  &.is-active {
    //    background: $menuHover;
    //    color: #ffffff;
    //    span {
    //      color: $menuBg;
    //    }
    //  }
    //}
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
      .el-menu-item {
        width: 44px !important;
        padding: 0;
        margin: 0 auto;
        .el-menu-tooltip__trigger {
          padding: 0;
        }
      }
      .svg-icon {
        margin: 0 auto;
      }
    }
    .main-container {
      margin-left: 54px;
    }
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0;
    }
    .sidebar-container {
      width: $sideBarWidth !important;
      transition: transform 0.28s;
    }
    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }
  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}
