@mixin toggle-button($--color-header) {
  height: 35px;
  font-size: 18px;
  line-height: 35px;
  margin-left: 10px;
  color: #fff;
  border-radius: 5px;
  background-color: $--color-header;
  padding: 0 10px;
  cursor: pointer;
}

@mixin sidebar-container($bg, $color, $--color-header, $content-bg, $--color-text) {
  background-color: $bg;
  .sidebar-container-header {
    color: $color;
    padding: 10px 0;
    border-bottom: 2px solid $--color-header;
    .pic-box {
      width: 46px;
      height: 46px;
      overflow: hidden;
      .logo {
        width: 46px;
        height: 46px;
        filter: drop-shadow(120px 0px #fff);
        transform: translateX(-120px);
      }
    }
    .ftl-pic-box {
      height: 46px;
      display: flex;
      justify-content: center;
      align-items: center;
      .logo {
        width: 46px;
        height: 30px;
      }
    }
  }
  .el-menu-vertical-demo {
    padding: 10px;
  }
  .el-menu {
    background-color: $bg;
    border: none;
    .el-menu--horizontal {
      border: none;
      margin-bottom: 5px;
    }
    .custom-menu-item {
      position: relative;
      min-width: auto !important;
      height: 38px;
      line-height: 38px;
      margin-bottom: 7px;
      background-color: initial !important;
      color: #fff !important;
      overflow: hidden;
      border-radius: 10px;
      &:focus,
      &:hover,
      &.is-active {
        background-color: $--color-header !important;
      }
      i {
        color: #fff;
      }
    }
    .el-submenu {
      color: #fff !important;
      margin-bottom: 10px;
      &.is-opened {
        background: $--color-header;
        border-radius: 10px;
        .el-menu {
          background-color: $content-bg;
          border-bottom-left-radius: 10px;
          border-bottom-right-radius: 10px;
        }
      }
      &:focus,
      &:hover,
      &.is-active {
        & > .el-submenu__title {
          background-color: $--color-header !important;
        }
      }
      .el-submenu__title {
        position: relative;
        min-width: auto !important;
        height: 38px;
        line-height: 38px;
        border-radius: 10px;
        background-color: initial !important;
        color: #fff !important;
        overflow: hidden;
        .el-icon-arrow-down:before {
          color: #fff !important;
        }
        i {
          color: #fff;
        }
      }
      .el-menu-item {
        position: relative;
        min-width: auto !important;
        height: 38px;
        line-height: 38px;
        margin-bottom: 7px;
        background-color: transparent !important;
        color: #fff !important;
        padding: 0 35px !important;
        &:focus,
        &:hover,
        &.is-active {
          color: $--color-text !important;
          i {
            color: $--color-text !important;
          }
        }
        &:last-child {
          margin-bottom: 0;
        }
      }
    }
    &.el-menu--collapse {
      .el-submenu {
        .el-submenu__title {
          display: flex;
          justify-content: center;
          align-items: center;
          i {
            margin-right: 0 !important;
          }
        }
      }
    }
  }
}

@mixin el-menu--vertical($bg, $--color-header, $--color-text) {
  .el-menu {
    background: $bg !important;
    .el-menu-item {
      color: #fff !important;
      &:focus,
      &:hover {
        background: none !important;
        color: $--color-text !important;
        i {
          color: $--color-text !important;
        }
      }
      i {
        color: #fff;
      }
    }
    .el-submenu__title {
      color: #fff !important;
      i {
        color: #fff;
      }
      &:hover {
        background: none !important;
        color: $--color-text !important;
        i {
          color: $--color-text !important;
        }
      }
    }
  }
}

@mixin el-dialog($--color-header) {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: auto;
  .el-dialog__header {
    padding: 20px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    background-color: #293948;
    border-bottom: 5px solid $--color-header;
  }
  .el-dialog__title {
    font-size: 20px;
    color: #fff;
  }
  .el-dialog__headerbtn {
    padding: 0;
    background: 0 0;
    border: none;
    outline: 0;
    cursor: pointer;
    font-size: 16px;
    top: 15px;
    .el-dialog__close {
      width: 26px;
      height: 26px;
      line-height: 26px;
      font-size: 14px;
      text-align: center;
      border: 1px solid #fff;
      border-radius: 50%;
      color: #fff;
      &:active {
        border-style: none !important;
      }
      &:hover {
        color: #fff;
      }
      &:focus {
        outline: none !important;
      }
    }
  }
}
