@charset 'UTF-8';

.pagination {
  align-items: center;
  color: #666;
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  justify-content: baseline;
  margin: 12px 0;

  @include breakpoint($md) {
    margin-left: auto;
    margin-right: auto;
    width: 48%;
  }
  
  > .next,
  > .previous,
  > .counter {
    flex-grow: 1;
    font-size: 1.2rem;
    width: 33.33%;
  }

  > .next,
  > .previous {
    > a {
      background: #fff;
      border: 1px solid #ececec;
      border-radius: .2rem;
      cursor: pointer;
      display: inline-block;
      height: 24px;
      line-height: 24px;
      margin: 12px;
      padding: 0 10px;
      transition: background .2s ease-in-out;

      &:hover {
        background: #f9f9f9;
      }
    }
  }
  
  > .counter {
    text-align: center;
  }
  
  > .next {
    text-align: right;
  }

  @include breakpoint($md) {
    .previous > a {
      margin-left: 0;
    }

    .next > a {
      margin-right: 0;
    }
  }
}
@charset 'UTF-8';

.pagination {
  align-items: center;
  color: #666;
  display: flex;
  flex-direction:row;
  flex-wrap: wrap;
  justify-content: baseline;
  margin: 12px 0;

  @include breakpoint($md) {
    margin-left: auto;
    margin-right: auto;
  }
  
  > .next,
  > .previous,
  > .counter {
    flex-grow: 1;
    font-size: 1.2rem;
    width: 33.33%;
  }

  > .next,
  > .previous {
    > a {
      background: #fff;
      border: 1px solid #ececec;
      border-radius: .2rem;
      cursor: pointer;
      display: inline-block;
      height: 24px;
      line-height: 24px;
      margin: 12px 0;
      padding: 0 10px;
      transition: background .2s ease-in-out;

      &:hover {
        background: #f9f9f9;
      }
    }
  }
  
  > .counter {
    text-align: center;
  }
  
  > .next {
    text-align: right;
  }

  @include breakpoint($md) {
    .previous > a {
      margin-left: 0;
    }

    .next > a {
      margin-right: 0;
    }
  }
}
Fix wrong screen size on medium resolution
Fix wrong screen size on medium resolution
