@import "modules/pagination/variables";
@mixin travelog-pagination {
    .pagination {
        text-align: center;
        margin: 40px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination-item {
        // To ensure the top margin begins from the outer bounds of the contained pagination link
        line-height: 38px;
    }

    .pagination-link {
        padding: 15px;
        min-width: 35px;
        border-top: 1px solid $border-colour;
        text-transform: uppercase;
        color: rgba(0, 0, 0, 0.35);

        &:hover { 
            border-color: $link-colour-over;
            color: $link-colour-over; 
        }
    }

    .pagination-link--selected {
        font-weight: bold;
        border-color: $link-colour-over;
        color: $link-colour-over;
    }
}
@import "modules/pagination/variables";
@mixin travelog-pagination {
    .pagination {
        text-align: center;
        margin: 40px auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination-item {
        // To ensure the top margin begins from the outer bounds of the contained pagination link
        line-height: 38px;
    }

    .pagination-link {
        transition-property: padding;
        transition-duration: 0.3s;
        transition-timing-function: ease-in-out;
        padding: 15px;
        min-width: 35px;
        border-top: 1px solid $border-colour;
        text-transform: uppercase;
        color: rgba(0, 0, 0, 0.35);

        &:hover { 
            border-color: $link-colour-over;
            color: $link-colour-over; 
        }
    }

    .pagination-link--selected {
        font-weight: bold;
        border-color: $link-colour-over;
        color: $link-colour-over;
    }

    @media only screen and (max-width : 630px) {
        .pagination-link {
            padding: 15px 8px;
        }
    }

    @media only screen and (max-width : 495px) {
        .pagination {
            display: block;
            @include clearfix;
            border-bottom: 1px solid $border-colour;
        }

        .pagination-item {
            line-height: normal;

            &:first-of-type {
                a { border-right: 1px solid $border-colour; }
            }

            &:last-of-type {
                a { border-left: 1px solid $border-colour; }
            }
        }

        .pagination-link {
            clear: both;
            display: block;
            padding: 15px 8px;

            &:hover {
                background: #eee;
            }
        }

        .pagination-link--selected {
            background: #eee;
        }

        .pagination-link--non-numeric {
            clear: none;
            width: 50%;
            float: left;
        }
    }
}
Make pagination module (more) responsive
Make pagination module (more) responsive
