Sha256: 3213cfeb12c4fa2d4d4e15c6ada00602d02ada43342d621975338f18b1dd8dad

Contents?: true

Size: 1.91 KB

Versions: 17

Compression:

Stored size: 1.91 KB

Contents

// Copyright (c) 2017 Florian Klampfer <https://qwtel.com/>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

// <<< LINK
.pagination {
  @extend .color-transition;
  width: calc(100% + 2rem);
  margin: 0 -1rem 1rem;
  color: var(--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 var(--border-color);
    border-width: 1px 0;
    transition: border-color 1s ease;
  }

  > a, > a:hover, > a:focus {
    border-color: var(--border-color)!important;
    text-decoration: none;
  }

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

  // Only provide a hover state for linked pagination items
  > a:hover, > a:focus {
    background-color: var(--gray-bg);
    border-bottom: 1px solid var(--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

17 entries across 17 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-9.2.1 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.2.0 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.9 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.8 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.7 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.6 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.5 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.4 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.3 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.2 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.1 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.1.0 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.0.4 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.0.3 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.0.2 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.0.1 _sass/pooleparty/_pagination.pre.scss
jekyll-theme-hydejack-9.0.0 _sass/pooleparty/_pagination.pre.scss