@import './../index.scss';

.eb-com-btn {
  display: inline-block;
  height: 36px;

  .eb-btn-conent {
    display: inline-flex;
    width: 36px;
    height: 100%;
    cursor: pointer;
    // background: $frame-main-bg;
    background: $btn-background-white;
    border: 1px solid $btn-border-e4e4e4;
    border-left: 0;
    border-radius: 4px;
    align-items: center;
    justify-content: center;

    &:first-child {
      border-left: 1px solid $btn-border-e4e4e4;
    }

    img {
      width: 20px;
      height: 20px;
    }

    &:hover {
      // background: $frame-disabled-color;
      background: $background-color-051c45;
    }

    &.eb-btn-conent-disabled {
      cursor: default;
      // background: $frame-disabled-color;
      background: $btn-disabled-background;
    }
  }

  .eb-btn-label {
    display: inline-flex;
    height: 100%;
    margin-left: 7px;
    font-size: 15px;
    // color: $frame-first-color;
    color: $font-color-black;
    vertical-align: top;
    align-items: center;
  }

  &.eb-batchbtn {
    &.eb-batchbtn-more {
      .eb-btn-conent {
        border-radius: 0 4px 4px 0;

        &:first-child {
          border-radius: 4px 0 0 4px;
        }
      }
    }
  }

  &.eb-push-btn {
    .eb-pushbtn-conent {
      position: relative;
      display: inline-flex;
      width: 53px;
      height: 100%;
      align-items: center;
      justify-content: center;
      padding-right: 16px;
      // background: $frame-main-bg;
      background: $btn-background-white;
      // border: 1px solid $frame-main-bordercolor;
      border: 1px solid $btn-border-e4e4e4;
      border-radius: 4px;
    }

    .eb-pushbtn-arrow {
      position: absolute;
      right: 0;
      display: flex;
      height: 100%;
      align-items: center;
      justify-content: center;
      // border-left: 1px solid #e4e4e4;
      border-left: 1px solid $btn-border-e4e4e4;
    }
  }
}

.eb-btn-popover-wrapper {
  min-width: 100px;
  min-height: 100px;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.08);
}

.eb-pushbtn-popover-wrapper.amos-popover {
  padding-top: 0;

  &::after {
    display: none;
  }
}

.eb-pushbtn-popover {
  background: white;
  // border: 1px solid #e7e7e7;
  border: 1px solid $border-color-e7e7e7;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.eb-pushbtn-menulist.ui-menu {
  min-width: 60px;
  padding: 3px 0;
  background: $firecard-menulist-background;

  li {
    display: flex;
    height: 28px;
    padding-left: 8px;
    font-size: 12px;
    line-height: 28px;
    // color: #333;
    color: $font-color-black;
    align-items: center;
    cursor: pointer;

    &:hover {
      // background: #e6f7ff;
      background: $firecard-menulist-background-hover;
    }

    img {
      width: 20px;
      height: 20px;
      margin-right: 5px;
    }
  }
}
