_slider.scss 2.89 KB
.slider {
    padding: 60px 0;

    @media (min-width: 1200px) {
        padding: 100px 0;
    }

    &__wrap {
        position: relative;

        .swiper-pagination {
            position: static;
            bottom: 0;

            .swiper-pagination-bullet {
                margin: 0 5px;
            }
        }

        .swiper-pagination-bullet {
            width: 30px;
            height: 4px;
            margin: 0 5px;
            border-radius: 5px;
            background-color: #F2F2F3;
            opacity: 1;
            transition: .3s;

            @media (min-width: 1200px) {
                width: 40px;
            }

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

        .swiper-pagination-bullet-active {
            background-color: $blue;
        }
    }

    &__top {
        display: flex;
        flex-direction: column;

        @media (min-width: 1200px) {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
        }
    }

    &__title {

        @media (min-width: 1200px) {
            margin: 0px 30px 0px 0px;
        }
    }

    &__more {
        margin: 16px 0 0 0;
        color: #4B4E53;
        font-size: 16px;
        line-height: 22px;
        font-weight: 500;
        white-space: nowrap;
        border-bottom: 1px solid $blue;
        transition: .3s;

        @media (min-width: 1200px) {
            margin: 0 30px 10px auto;
        }

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

    &__control {
        display: none;

        @media (min-width: 1200px) {
            display: flex;
        }

        .swiper-button-prev,
        .swiper-button-next {
            position: static;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 1px solid $main;
            margin: 0;
            transition: .3s;

            &:after {
                display: none;
            }

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

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

                svg {
                    @media (min-width: 1200px) {
                        stroke: $white;
                    }
                }
            }
        }

        .swiper-button-prev {
            margin-right: 10px;
        }

        .swiper-button-next {
            svg {
                transform: rotate(180deg);
            }
        }
    }

    &__swiper {
        padding: 40px 0 45px;
        // overflow: visible;

        @media (min-width: 1200px) {
            padding: 60px 0 54px;
        }

        .swiper-slide {
            height: auto;
        }

    }

}