@import './common/var.scss';
.es-button-group {
  display: flex;
  & > .el-dropdown {
    margin-left: 10px;
    & > .el-button:not(.el-button--text) {
      border-color: $--border-color-base;
      .el-badge {
        vertical-align: unset;
       
      }
    }
  }
}

.el-button-group {
  & > .el-button:not(.el-button--text) + .es-button:not(.el-button--text),
  & > .es-button:not(.el-button--text) + .el-button:not(.el-button--text),
  & > .es-button:not(.el-button--text) + .es-button:not(.el-button--text),
  & > .es-button:not(.el-button--text) + .es-selector,
  & > .es-button:not(.el-button--text) + .es-upload,
  & > .es-button:not(.el-button--text) + .el-dropdown {
    margin-left: 0;
  }
  & > .es-selector {
    float: left;
    &:first-child {
      & > .el-button {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        &.el-button--danger,
        &.el-button--info,
        &.el-button--primary,
        &.el-button--success,
        &.el-button--warning {
          border-right-color: rgba(255, 255, 255, 0.5);
        }
      }
    }
    &:not(:first-child):not(:last-child) {
      margin-left: 10px;
      & > .el-button {
        border-radius: 0;
        &.el-button--danger,
        &.el-button--info,
        &.el-button--primary,
        &.el-button--success,
        &.el-button--warning {
          border-left-color: rgba(255, 255, 255, 0.5);
          border-right-color: rgba(255, 255, 255, 0.5);
        }
      }
    }
    &:last-child {
      & > .el-button {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        &.el-button--danger,
        &.el-button--info,
        &.el-button--primary,
        &.el-button--success,
        &.el-button--warning {
          border-left-color: rgba(255, 255, 255, 0.5);
        }
      }
    }
    &:not(:last-child) {
      & > .el-button {
        margin-right: -1px;
      }
    }
    & + .el-button--text,
    & + .el-dropdown {
      margin-left: 10px;
    }
  }
  & > .es-upload {
    float: left;
    &:first-child {
      & > .el-upload--handle > .el-upload {
        & > .el-button {
          border-top-right-radius: 0;
          border-bottom-right-radius: 0;
          &.el-button--danger,
          &.el-button--info,
          &.el-button--primary,
          &.el-button--success,
          &.el-button--warning {
            border-right-color: rgba(255, 255, 255, 0.5);
          }
        }
      }
    }
    &:not(:first-child):not(:last-child) {
      margin-left: 10px;
      & > .el-upload--handle > .el-upload {
        & > .el-button {
          border-radius: 0;
          &.el-button--danger,
          &.el-button--info,
          &.el-button--primary,
          &.el-button--success,
          &.el-button--warning {
            border-left-color: rgba(255, 255, 255, 0.5);
            border-right-color: rgba(255, 255, 255, 0.5);
          }
        }
      }
    }
    &:last-child {
      & > .el-upload--handle > .el-upload {
        & > .el-button {
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
          &.el-button--danger,
          &.el-button--info,
          &.el-button--primary,
          &.el-button--success,
          &.el-button--warning {
            border-left-color: rgba(255, 255, 255, 0.5);
          }
        }
      }
    }
    &:not(:last-child) {
      & > .el-upload--handle > .el-upload {
        & > .el-button {
          margin-right: -1px;
        }
      }
    }
    & + .el-button--text,
    & + .el-dropdown {
      margin-left: 10px;
    }
  }
}
.es-dropdown-padding {
  padding: 0;
}
.es-dropdown-upload {
  & > .el-upload--handle {
    display: block;
    & > .el-upload {
      display: block;
      & > .el-button {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.75);
        padding: 6px 20px;
        line-height: 24px;
        border: 0;
        &:hover {
          color: #69c0ff;
        }
      }
    }
  }
}
.es-dropdown-selector {
  & > .el-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 20px;
    line-height: 24px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.75);
    border: 0;
    &:hover {
      color: #69c0ff;
    }
  }
}
