//头部
.layout2-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  background-color: $themeColor;
  //logo
  .sidebar-logo-container {
    width: auto;
    padding-right: 16px;
    padding-left: 0;
  }
  // menu
  .navbar-menu {
    display: flex;
    justify-content: center;
    flex: 1;
  }
}

//布局
.layout2 {
  .app-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    //background: blue;
    background: $themeColor;
    .app-header {
      height: 60px;
      background: green;
    }
    .app-main {
      position: relative;
      height: calc(100% - 60px);
      background: #F0F2F5;
    }
  }
  .fixedHeader {
    .app-main {
      overflow-y: auto;
    }
    .app-header {
      position: relative;
      z-index: 1;
      box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    }
  }
  .needTagsView {
    .app-header {
      position: relative;
      height: 94px !important;
      box-shadow: none !important;
    }
    .app-main {
      height: calc(100% - 94px) !important;
    }
    &.fixedHeader .app-main {
      height: calc(100% - 94px);
    }
  }
}

//layout2 菜单颜色样式
.layout2 .el-menu {
  background-color: $themeColor;
  .el-menu-item,
  .el-submenu__title {
    color: rgba(255, 255, 255, 0.7);
    background-color: $themeColor;
    .el-submenu__icon-arrow {
      color: rgba(255, 255, 255, 0.7);
    }
    &:hover,
    &:focus {
      color: #fff;
      background-color: rgba(0, 0, 0, 0.1);
      .el-submenu__icon-arrow {
        color: #fff;
      }
    }
    &.is-active {
      color: #fff;
    }
  }
  .is-active .el-submenu__title {
    color: #fff;
    .el-submenu__icon-arrow {
      color: #fff;
    }
  }
  &.el-menu--horizontal > .el-menu-item {
    border: none;
    &.is-active {
      background-color: rgba(0, 0, 0, 0.15);
      //background-color: #409EFF;
    }
  }
  &.el-menu--horizontal > .el-submenu .el-submenu__title {
    border: none;
  }
  &.el-menu--horizontal > .el-submenu.is-active .el-submenu__title {
    background-color: rgba(0, 0, 0, 0.15);
    border: none;
    //background-color: #409EFF;
  }
  &.el-menu--popup .el-menu-item.is-active {
    //background-color: #409EFF;
    background-color: rgba(0, 0, 0, 0.15);
  }
  &.el-menu--popup .is-active .el-submenu__title {
    color: #fff;
  }
}
