// _pagination.scss

/*FOR PAGINATION LIMIT*/
.pagination-panel ul.pagination {
    height: auto;
    margin: 0;

    li {
        display: none; 
        float: left;

        &.active,
        &.show,
        &.next-arrow,
        &.prev-arrow,
        &.first,
        &.last,
        &.ellipses {
            display: block;
        }

    }

}

/***Pagination Link Styling****/
%paginationLink {
    @include background(linear-gradient(to bottom, rgba(255, 255, 255, 0.5), $mouse), linear-gradient($white, $white));
    box-shadow: none;
    border: 1px solid $koala;
    color: $rhino;
}

ul.pagination {

    list-style: none;

    li {

        > a,
        > span {
            @extend %paginationLink;

            border-radius: $border-radius-base;
            font-size: $font-size-small;
            font-weight: $font-weight-bold;
            display: list-item;
            margin-left: 10px;
            padding: 9px 15px;
            text-align: center;
            text-transform: uppercase;
            vertical-align: middle;
            white-space: pre-wrap;

            &:focus {
                @extend %paginationLink;
            }
            
            &:hover {
                @include background(linear-gradient(to bottom, rgba(255, 255, 255, 0.5), $gray-lightest), linear-gradient($white, $white));
                box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
                border-color: $timberwolf;
                color: $gorilla;
            }

        }

        &.prev-arrow,
        &.next-arrow, {

            > a,
            > span {

                &:before {
                    content: " ";
                    display: inline;
                }

            }

        }

        &.active {

            > a,
            > span,
            > a:hover,
            > span:hover,
            > a:focus,
            > span:focus {
                background: $mouse;
                box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.2), inset 0 0 5px 0 rgba(0, 0, 0, 0.2);
                border-color: $timberwolf;
                color: $gorilla;
            } 

        }

        &.disabled {

            > a,
            > span,
            > a:hover,
            > span:hover,
            > a:focus,
            > span:focus {

                @extend %paginationLink;

            }

        }

    }

}
