_pagination.scss 1.79 KB
.pagination {
    padding: 30px 0 50px;

    @media (min-width: 1200px) {
        border-top: 1px solid rgba(#9A9C9F, .2);
        padding: 30px 0 100px;
    }

    &__inner {
        display: flex;
        justify-content: center;
    }

    &__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid $main;
        border-radius: 10px;
        transition: .3s;

        svg {
            stroke: $main;
            transition: .3s;
        }

        &.disabled {
            pointer-events: none;
            opacity: .5;
        }

        &:hover {
            background-color: $main;
            svg {
                stroke: $white;
            }
        }
        
    }

    &__btn-prev {
        margin-right: 20px;

        @media (min-width: 1200px) {
            margin-right: 79px;
        }
    }

    &__btn-next {
        margin-left: 20px;

        @media (min-width: 1200px) {
            margin-left: 79px;
        }
        svg {
            transform: rotate(180deg);
        }
    }

    &__list {
        display: flex;
        align-items: center;
    }

    &__item {
        &:not(:last-child) {
            margin-right: 20px;
        }
    }

    &__link {
        color: #CDCECF;
        font-size: 16px;
        line-height: 20px;
        font-weight: 800;
        transition: .3s;

        &.active {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #D9EEFF;
            color: $blue;
            line-height: 30px;
            text-align: center;
        }

        &.more {
            color: $main;
        }

        &:hover {
            @media (min-width: 1200px) {
                color: $blue;
            }
        }
    }
}