#app {
  .main-container {
    // min-height: 100%;
    position: relative;
    // width: 100%;
    // border: 1px solid red;
    height: calc(100% - 23px);
  }

  .sidebar-container {
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
    // 重置 element-plus 的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__view {
    //   padding-bottom: 200px !important;
    // }
    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

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

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

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

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

    .el-menu {
      border: none;
    }

    .is-active > .el-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      // justify-content: center !important;
    }
  }
  .openSidebar {
    .sidebar-container {
      width: 280px;
      transition: width 0.2s;
    }
    ::v-deep .el-sub-menu__title {
      align-items: center !important;
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 64px;
      transition: width 0.2s;
    }
    ::v-deep .el-menu-item {
      padding: 0 !important;
    }
    ::v-deep .el-sub-menu__title {
      padding: 0 !important;
    }
    // .main-container {
    //   margin-left: 0px;
    // }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }
}

.el-menu--vertical {
  .svg-icon {
    display: none !important;
  }
  .el-sub-menu__title {
    span {
      padding-left: 0 !important;
    }
  }
}
