#app {
  .main-container {
    position: relative;

    height: 100%; // $contentHeight; // yanedit
    margin-top: 0; // yanedit
    margin-left: $sideBarWidth;

    transition: margin-left .28s;
  }
  .sidebarHide {
    margin-left: 0!important;
  }
  .sidebar-container {
    position: fixed;
    z-index: 1001;
    top: 72px;
    // top: $topBarHeight; // yanedit
    bottom: 0;
    left: 0;

    overflow: hidden;

    width: $sideBarWidth !important;
    height: 100%;
    // height: $contentHeight; // yanedit

    transition: width .28s;

    background-color: $menuBg;

    font-size: 0px;

    // 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: 0px;
    }

    .el-scrollbar {
      height: 95%;
      padding-bottom: 50px;
      // height: 100%;
    }

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

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      overflow: hidden;

      width: 100%;
    }

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

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

      border: none;
    }

    // menu hover
    .submenu-title-noDropdown, .el-submenu__title {
      &:hover {
        color: #0cffdf !important;
        background-color: $menuHover !important;
      }
    }

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

    & .nest-menu .el-submenu > .el-submenu__title, & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      // background-color: $subMenuBg !important;

      &:hover {
        background-color: $subMenuHover !important;
        color: #0cffdf !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }

    .main-container {
      margin-left: 54px;
    }

    .submenu-title-noDropdown {
      position: relative;

      padding: 0 !important;

      .el-tooltip {
        padding: 0 !important;

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

    .el-submenu {
      overflow: hidden;

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

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

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

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

            width: 0;
            height: 0;
          }
        }
      }
    }
  }

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

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      width: $sideBarWidth !important;

      transition: transform .28s;
    }

    &.hideSidebar {
      .sidebar-container {
        transition-duration: .3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
        pointer-events: none;
      }
    }
  }

  .withoutAnimation {
    .main-container, .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu > .el-submenu__title, .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      color: #0cffdf;
      background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    overflow-y: auto;

    max-height: 100vh;

    &::-webkit-scrollbar-track-piece {
      background: #D3DCE6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 20px;
      background: #99A9BF;
    }
  }
}

.sidebar-container .el-menu-item.is-active {
  color: #0cffdf !important;
  background-color: #2B5198 !important;
}
