@import "./variables";
#app {
  // 主体区域
  .main-container {
    min-width: 1000px;
    width: calc(100% - 180px);
    position: relative;
    min-height: 100%;
    transition: all ease-in 0s;
    overflow: hidden;
  }
  // 侧边栏
  .sidebar-container {
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    width: 180px;
    transition: all ease-in 0s;
    height: 100%;
    // height: calc(100% - 80px);
    font-size: 0;
    z-index: 2;
    overflow: hidden;
    background-color: #fff !important;
    //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;
    }
    .el-scrollbar {
      height: calc(100vh - 100px);
    }
    .is-horizontal {
      display: none;
    }
    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .svg-icon {
      margin-right: 16px;
    }
    .logo-container {
      height: 61px;
      background-color: $menu_logo_bg!important;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 10px 0;
      border-bottom: 1px solid #e9eef3;
      .logo-img {
        width: 100px;
        margin-top: 26px;
        margin-left: 20px;
      }
      .logo-title{
        width: 100%;
        border-radius: 3px;
        font-size: 15px;
        color: #333;
        // color: #fff;
        font-weight: bold;
        background-color: transparent;
        text-align: center;
        margin-top: 10px;
      }
      &.collapse {
        .logo-tip { display: none }
        .logo-img {
          margin-left: 5px;
        }
      }
    }
    & .el-scrollbar__view>.el-menu {
    //  margin-top: 80px;
    }
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
      background-color: #fff !important;
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 36px !important;
    }
    .main-container {
      width: calc(100% - 36px) !important;
      // margin-left: 36px;
    }
    .submenu-title-noDropdown {
      padding-left: 10px !important;
      position: relative;
      .el-tooltip {
        padding: 0 10px !important;
      }
    }
    .el-submenu {
      overflow: hidden;
      &>.el-submenu__title {
        padding-left: 10px !important;
        .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;
          }
        }
      }
    }
  }
  .sidebar-container .menu-wrapper:not(.nest-menu) > a .el-menu-item {
    background-color: #fff !important;
    &:hover {
      background-color: $menu_item_hover_bg !important;
      color: #4561EE !important;
    }
  }
  .sidebar-container .el-submenu>.el-submenu__title {
    color: $menu_text !important;
    background-color:#ffffff !important;
    &:hover {
      background-color: $menu_item_hover_bg !important;
      color: #4561EE !important;
    }
  }
  .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
  .sidebar-container .el-menu-item {
    color: $menu_text !important;
    min-width: 180px !important;
    background-color: #fff !important;
    &:hover {
      background-color: $menu_item_hover_bg !important;
      color: #4561EE !important;
    }
    &.is-active {
      color: #4561EE !important;
      background-color: #f2f5f7 !important;
    }
  }
  .el-menu--collapse .el-menu .el-submenu {
    min-width: 180px !important;
  }

  //适配移动端
  .mobile {
    .main-container {
      margin-left: 0px;
    }
    .sidebar-container {
      transition: transform .28s;
      width: 180px !important;
    }
    &.hideSidebar {
      .sidebar-container {
        transition-duration: 0.3s;
        transform: translate3d(-180px, 0, 0);
      }
    }
  }
  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

.el-menu--vertical .el-menu .el-submenu__title,
.el-menu--vertical .el-menu .el-menu-item {
  background-color: #fff !important;
  color: $menu_text !important;
  &:hover {
    background-color: $menu_item_hover_bg !important;
  }
  &.is-active {
    color: #4561EE !important;
  }
}
