Sha256: bd339cdb1612a89ac85ac9669c0c971450d6478f548acb4ef49f56f0c4f14a38

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 KB

Contents

/**
 * @copyright   2010-2013, The Titon Project
 * @license     http://opensource.org/licenses/bsd-license.php
 * @link        http://titon.io
 */

@import "../common";

.#{$vendor-prefix}pagination {
    margin: $margin 0;

    ul, ol {
        @include reset-list;
        @include clear-fix;
    }

    li {
        position: relative;
        float: left;
        margin-right: $padding / 2;

        > a {
            display: block;
        }

        &.#{$state-is-prefix}active {
            z-index: 1;
        }
    }
}

//-------------------- Modifiers --------------------//

.#{$vendor-prefix}pagination--grouped {
    @extend .#{$vendor-prefix}pagination;

    li {
        margin-left: -1px;
        margin-right: 0;

        &:first-child { margin-left: 0; }

        &:hover,
        > a:hover { z-index: 1; }

        > a {
            margin: 0;
            border-radius: 0;
        }
    }

    &.#{$shape-round-class} {
        ul {
            border-radius: $round;
        }

        li:first-child > a {
            border-top-left-radius: $round;
            border-bottom-left-radius: $round;
        }

        li:last-child > a {
            border-top-right-radius: $round;
            border-bottom-right-radius: $round;
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
titon-toolkit-1.2.2 scss/toolkit/components/pagination.scss
titon-toolkit-1.2.1 scss/toolkit/components/pagination.scss
titon-toolkit-1.2.0 scss/toolkit/components/pagination.scss