@import "../variables";
@import "../mixins/display";

// CRUK pager styles.
.cr-simple-pager {
  @include clearfix();
  position: relative;
  padding-left: 0;
  margin: 20px 0;
  text-align: center;
  list-style: none;

  &__icon {
    @extend .cr-i;

    position: relative;
    top: 1.5px;

    @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
      top: -0.5px;
    }
  }

  &__previous {
    float: left;

    .cr-simple-pager__icon {
      @extend .cr-i--chevron-left;

      margin-right: 3px;
    }

    &.disabled {
      display: none;
    }
  }

  &__next {
    float: right;

    .cr-simple-pager__icon {
      @extend .cr-i--chevron-right;

      margin-left: 3px;
    }
  }

  &__link {
    @include card-boxing;
    display: inline-block;
    height: 40px;
    padding: 9px 14px;
    color: $WHITE;
    cursor: pointer;
    background-color: $brand-primary;
    line-height: 1.4rem;

    &:focus,
    &:hover {
      background-color: $SCAMPI;
      color: $WHITE;
      text-decoration: none;
    }
  }

  &__current {
    @extend .text-center;

    position: absolute;
    left: 50%;
    width: 130px;
    margin-left: -65px;
  }

  &__indicator {
    display: inline-block;
    height: 40px;
    padding: 9px 14px;
    font-size: $font-size;
    color: $text-color;
    cursor: text;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .glyphicon {
    font-size: $font-size-small;
  }
}
