//
// Popovers Mixins
// --------------------------------------------------

@mixin popover-list-group() {
  margin-bottom: 0;
  font-family: $font-family-base;

  @include list-group-transparent();

  &:not(:last-child) {
    margin-bottom: $popover-padding;
  }

  .list-group-item {
    padding: 0 $popover-padding;

    @include text-overflow();
    @include border-radius($border-radius-new-medium !important);
    @include themes(color, color-new-body-dark);

    .list-group-item-icon {
      margin-right: $grid-unit-x * 2;
      padding-right: 0;

      @include themes(color, color-new-body-light);
    }

    &:hover {
      @include themes(color, color-new-heading);
      @include themes(background-color, color-new-bg);

      .list-group-item-icon {
        @include themes(color, color-new-heading);
      }
    }
  }

  + .list-group {
    position: relative;
    padding-top: $popover-padding;

    &:before {
      content: "";
      position: absolute;
      top: 0;
      height: 1px;
      left: 0;
      right: 0;

      @include themes(background-color, popover-inner-border-color);
    }
  }
}
