@import '_variables';
@import '_mixins';

.action-button {
  @include peertube-button-link;

  font-size: 15px;
  font-weight: $font-semibold;
  color: #585858;
  background-color: #E5E5E5;

  &:hover {
    background-color: #EFEFEF;
  }

  .icon {
    @include icon(21px);

    position: relative;
    top: -2px;

    &.icon-edit {
      background-image: url('../../../assets/images/global/edit-grey.svg');
    }

    &.icon-delete-grey {
      background-image: url('../../../assets/images/global/delete-grey.svg');
    }

    &.icon-im-with-her {
      background-image: url('../../../assets/images/global/im-with-her.svg');
    }

    &.icon-tick {
      background-image: url('../../../assets/images/global/tick.svg');
    }

    &.icon-cross {
      background-image: url('../../../assets/images/global/cross.svg');
    }
  }
}

// In a table, try to minimize the space taken by this button
@media screen and (max-width: 1400px) {
  :host-context(td) {
    .action-button {
      padding: 0 13px;
    }

    .button-label {
      display: none;
    }
  }
}
