Sha256: 01a078275a579fbf8f78628f50f8bbcf57effa629180f49a56bd069f21e9f263

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

// Pagination
//
// Super lightweight (HTML-wise) blog pagination. `span`s are provide for when
// there are no more previous or next posts to show.

// <<<<< LINK
.pagination {
  width: calc(100% + 2rem);
  margin: 0 -1rem 1rem;
  color: $gray;
  text-align: center;

  > ul {
    list-style: none;
    padding: 0;
  }
}

// Pagination items can be `span`s or `a`s
.pagination-item {
  > * {
    display: block;
    padding: .25rem 1rem;
    border: solid $border-color;
    border-width: 1px 0;
  }

  > a, > a:hover, > a:focus {
    border-color: $border-color!important;
  }

  &:first-child > * {
    margin-bottom: -1px;
  }

  // Only provide a hover state for linked pagination items
  > a:hover, a:focus {
    background-color: #f5f5f5;
    border-bottom: 1px solid $border-color;
  }
}

@media (min-width: 23.5em) {
  .pagination {
    width: 100%;
    margin: 3rem 0;
  }

  .pagination-item {
    > * {
      float: left;
      width: 50%;
      border-width: 1px;
    }

    &:first-child > * {
      margin-bottom: 0;
      border-top-left-radius: 0.25rem;
      border-bottom-left-radius: 0.25rem;
    }
    &:last-child > * {
      margin-left: -1px;
      border-top-right-radius: 0.25rem;
      border-bottom-right-radius: 0.25rem;
    }
  }
}
// >>>>> LINK

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-7.3.0 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-7.2.0 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-7.1.1 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-7.1.0 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-7.0.1 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-7.0.0 _sass/pooleparty/_pagination.pre.scss