/**
 * Copyright 2014 Vecna Technologies, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License.  You may
 * obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 */

.pagination {
  @extend %all;
  @extend %columns;
  margin: $gutter-width/2 0 $gutter-width;
  text-align: center;
}

  .pagination-link {
    display: inline-block;
    padding: 1ex 1em;
    border: solid 1px transparentize($link-default-color, 0.8);
    border-radius: 1px;
    text-decoration: none;

    &:hover {
      border-color: $link-hover-color;
      background: $link-hover-color;
      color: white;
    }

    &.pagination-link--current {
      border-color: $link-default-color;
      background: $link-default-color;
      color: #fff;
    }
  }

  .pagination-link--first:before, .pagination-link--prev:before, .pagination-link--next:after, .pagination-link--last:after {
    font-family: $icon-font;
  }

  .pagination-link--first:before {
    content: $icon-angle-left + $icon-angle-left + "  ";
  }

  .pagination-link--prev {
    margin-right: 1em;
  }

  .pagination-link--prev:before {
    content: $icon-angle-left + "  ";
  }

  .pagination-link--next {
    margin-left: 1em;
  }

  .pagination-link--next:after {
    content: " " + $icon-angle-right;
  }

  .pagination-link--last:after {
    content: " " + $icon-angle-right + $icon-angle-right;
  }