Sha256: eb7f6e512be14d0877db39a406ad691c7704011807cdc235d6f8891927053b05
Contents?: true
Size: 1.79 KB
Versions: 3
Compression:
Stored size: 1.79 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 { 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
3 entries across 3 versions & 1 rubygems