sudara/alonetone

View on GitHub
app/assets/stylesheets/components/pagination.scss

Summary

Maintainability
Test Coverage
.mini_paginator {
    &.top_paginator {
        margin-bottom: 12px;
    }
    &.bottom_paginator {
        margin-top: 12px;
    }
    position: relative;
    height: 32px;
    @include samo-shadow-and-radius();
    background-color: $mini-paginator-background;
    box-shadow: none;
    .pagination {
        display: flex;
        flex-direction: row;
        width: 100%;
         > * {
            display: block;
        }
        position: relative;
        display: block;
        float: right;
        height: 32px;
        text-align: right;
        em, span {
            float: left;
            padding: 10px 10px;
            line-height: 14px;
            font-size: 12px;
            color: $pagy-link-text;
        }
        em {
            font-weight: bold;
            font-style: normal;
        }
        em, a:hover, span.current {
            text-decoration: none;
            color: $pagy-link-text-active;
        }
        span.gap {
            padding: 10px 0;
        }
        span.disabled {
            opacity: .5;
        }
        a, a:visited {
            font-size: 12px;
            line-height: 14px;
            display: block;
            float: left;
            height: 12px;
            color: $pagy-link-text;
        }
        .active {
            font-weight: bold;
            color: $pagy-link-text-active;
        }
    }
}