Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
6.0 kB
2
Indexable
<style>
    /* narrow -carousel*/
    .carousel {
        position: relative;
        margin: 40px auto 0 auto;
        max-width: 1000px;
    }

    .carousel>ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: 200ms opacity ease-in-out;
        transition-delay: 200ms;
        padding: 0 40px;
    }


    .slide[data-active] {
        opacity: 1;
        z-index: 1;
        transition-delay: 0ms;
    }

    .slide-btn {
        position: absolute;
        z-index: 2;
        background: #f2503a;
        border: none;
        font-size: 20px;
        padding: 5px 10px;
        border-radius: 0.25rem;
        cursor: pointer;
        color: #fff;
        opacity: 0.8;
    }

    .slide-btn:hover,
    .slide-btn:focus {
        opacity: 1;
    }


    .slide-btn.prev {
        left: 0px;
    }

    .slide-btn.next {
        right: 0px;
    }

    .slide-flex {
        display: flex;
        gap: 15px;
        padding: 10px;
    }

    .left-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 50%;
    }


    .left-content>img {
        width: auto;
        display: block;
        object-position: center;
        border-radius: 10px;
        aspect-ratio: 3/2;
    }

    .right-content {
        width: 50%;
        padding-left: 15px;
    }


    .right-content p {
        margin: 0;

        font-size: 16px;
    }

    .right-content h1 {
        margin: 0;
        font-size: 30px;
    }

    .slide-btn-text {
        display: flex;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        width: 120px;
        margin: 0 auto;
        background-color: #f2503a;
        color: #fff;
        outline: none;
        border: none;
        padding: 10px 15px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        margin-top: 10px;
    }

    /* Responsive Breakpoints */
    @media only screen and (max-width: 700px) {

        .slide-flex {
            flex-direction: column;
            align-items: center;
        }

        .right-content {
            width: 100%;
            text-align: center;
            padding: 0;
        }

        .left-content {
            width: 100%;
        }

        .slide {
            padding: 0 25px;
        }

        .carousel {
            margin-bottom: 250px;
        }
    }



    /* wide carousel ------------------------------------------->*/

    /* Google Fonts - Poppins */
    @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");


    .slide-container {
        max-width: 1000px;
        width: 100%;
        padding: 40px 0;
        position: relative;
        margin: 0 auto;
    }

    .slide-content {
        margin: 0 40px;
        overflow: hidden;
        border-radius: 10px;
    }

    .card {
        border-radius: 10px;
        width: 330px;
        overflow: hidden;
        text-align: center;
    }

    .card-btn {
        text-align: center;
        padding: 12px 15px;
        outline: none;
        border: none;
        color: #fff;
        border-radius: 5px;
        background-color: #f2503a;
        margin-top: 10px;
        font-weight: 900;
        font-size: 16px;
        cursor: pointer;
    }

    .image-container {
        width: 100%;
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        aspect-ratio: 3/2;
    }

    .image-container img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-image: linear-gradient(180deg, rgba(53, 55, 64, 0), #222 75%);
    }

    .swiper-title {
        text-align: center;
        color: #fff;
        padding: 5px;
    }

    .button {
        border: none;
        font-size: 16px;
        color: #fff;
        padding: 8px 16px;
        background-color: #4070f4;
        border-radius: 6px;
        margin: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .button:hover {
        background: #265df2;
    }

    #insert-carousel .swiper-navBtn {
        color: #6e93f7;
        transition: color 0.3s ease;
        top: 42% !important;
        display: flex !important;
    }

    .swiper-navBtn:hover {
        color: #4070f4;
    }

    .swiper-navBtn::before,
    .swiper-navBtn::after {
        font-size: 35px;
        color: #fff;
    }

    .swiper-button-next {
        right: 0 !important;
    }

    .swiper-button-prev {
        left: 0 !important;

    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        color: #fff;
    }

    .swiper-pagination-bullet {
        background-color: #6e93f7;
        opacity: 1;
    }

    .swiper-pagination-bullet-active {
        background-color: #4070f4;
    }

    .swiper-button-next {
        background-color: #f2503a;
        color: #fff;
        padding: 18px;
        border-radius: 5px;
        border: none;
    }

    .swiper-button-prev {
        background-color: #f2503a;
        color: #fff;
        padding: 18px;
        border-radius: 5px;
        border: none;
    }

    .swiper-button-next:after,
    .swiper-rtl .swiper-button-prev:after {
        content: ">" !important;
    }

    .swiper-button-prev:after,
    .swiper-rtl .swiper-button-next:after {
        content: "<" !important;
    }

    .swiper-pagination {
        display: none;
    }

    @media screen and (max-width: 768px) {
        .slide-content {
            margin: 0 10px;
        }
    }
</style>