.pagination {
  text-align: center;
  position: relative;

  width: 80%;
  margin: 2.5rem auto;

  ul {
    display: block;
    margin: 0;
    padding: 0;

    li {
      display: inline-block;
      margin: 0 0.5rem;
      padding: 0;
      list-style: none;

      &:first-child {
        position: absolute;
        left: 0;
        margin: 0;
      }
      &:last-child {
        position: absolute;
        right: 0;
        margin: 0;
      }

      a, span {
        display: block;
        padding: 0.25rem 0.5rem;
        background: white;
        border: 1px solid darkgrey;
        border-radius: 4px;
        line-height: 1;
        vertical-align: bottom;
      }
      &.active > a,
      &.active > span {
          background: $lightest;
          color: $red;
        }

      a {
        text-decoration: none;

        &:hover,
        &:focus {
          background: $lightest;
          color: $red;
        }
      }
    }
  }
}


.pagination {
  text-align: center;
  position: relative;

  width: 80%;
  margin: 2.5rem auto;

  ul {
    display: block;
    margin: 0;
    padding: 0;

    li {
      display: inline-block;
      margin: 0 0.5rem;
      padding: 0;
      list-style: none;

      &:first-child {
        position: absolute;
        left: 0;
        margin: 0;
      }
      &:last-child {
        position: absolute;
        right: 0;
        margin: 0;
      }

      a, span {
        display: block;
        padding: 0.25rem 0.5rem;
        padding-top: 0.45rem;
        background: white;
        border: 1px solid darkgrey;
        border-radius: 4px;
        line-height: 1;
        vertical-align: bottom;
      }
      &.active > a,
      &.active > span {
          background: $lightest;
          color: $red;
        }

      a {
        text-decoration: none;

        &:hover,
        &:focus {
          background: $lightest;
          color: $red;
        }
      }
    }
  }
}


Make the pagination links have veritcally centered text
Make the pagination links have veritcally centered text
