• File: _feature.scss
  • Full Path: /home/monpetu/www/leoreno.fr/wp-content/themes/buildexo/assets/scss/components/_feature.scss
  • Date Modified: 10/29/2024 2:43 PM
  • File size: 11.12 KB
  • MIME-type: text/plain
  • Charset: utf-8
.feature {
    z-index: 1;
    &__img {
        .image {
            img {
                @include border-radius(30px);
            }
            &--1 {
                margin-left: 105px;
                @include respond(xs) {
                    margin-left: 0;
                }
            }
            &--2 {
                margin-top: -102px;
                @include respond(xs) {
                    margin-top: 10px;
                }
            }
            &--3 {
                margin-left: 258px;
                margin-top: -102px;
                @include respond(xs) {
                    margin-left: 0;
                    margin-top: 10px;
                }
            }
        }
    }
    &__content {
        padding-left: 38px;
        @include respond(xs) {
            padding-left: 0;
        }
        h2 {
            font-size: 35px;
            font-weight: 800;
            margin-bottom: 20px;
            @include respond(lg) {
                font-size: 22px;
            }
        }
        p {
            margin-bottom: 27px;
        }
    }
    &__list {
        li {
            font-size: 17px;
            font-weight: 600;
            list-style: none;
            &:not(:last-child) {
                margin-bottom: 10px;
            }
            img {
                margin-right: 10px;
            }
        }
    }
    &__shape {
        .shape {
            position: absolute;
            bottom: 0;
            z-index: -1;
            max-width: 200px;
            @include respond(laptop) {
                max-width: 200px;
            }
            @include respond(md) {
                max-width: 120px;
            }
            &--1 {
                left: 0;
            }
            &--2 {
                right: 0;
            }
        }
    }
    &__pt-280 {
        padding-top: 280px;
    }
}

// feature tab
.feature-tab {
    &__content {
        position: relative;
        min-height: 680px;
        @include respond(lg) {
            min-height: 530px;
        }
        @include respond(xs) {
            min-height: 900px;
        }
        .tab-pane {
           
        }
    }
    &__img {
        max-width: 391px;
        width: 100%;
        max-height: 432px;
        height: 100%;
        margin: 16px;
        opacity: 0;
        visibility: hidden;
        position: relative;
        @include transition(0s);
        @include respond(lg) {
            max-width: 300px;
        }
        img {
            height: 100%;
            object-fit: cover;
        }
        &::before {
            position: absolute;
            top: -20px;
            left: -20px;
            right: -20px;
            bottom: -20px;
            border: 2px dashed #e7e5e5;
            content: "";
            @include border-radius(7px 7px 60% 60%/7px 7px 40% 40%);
            @include respond(md) {
                top: -10px;
                left: -10px;
                right: -10px;
                bottom: -10px;
            }
        }
        &--1 {
            @include transform(translateY(23%));
            bottom: -30px;
            
            opacity: 0;
            @include respond(xs) {
                bottom: 0;
                @include transform(translateY(0));
            }
            img {
                @include border-radius(55% 57% 7px 7px/51% 51% 7px 7px);
            }
            &::before {
                @include border-radius(55% 57% 7px 7px/51% 51% 7px 7px);
            }
        }
        &--2 {
            max-height: 619px;
            height: 100%;
            margin-left: 20px;
            top: -30px;
            @include transition(0s);
            @include border-radius(7px 7px 60% 60%/7px 7px 40% 40%);
            img {
                @include border-radius(7px 7px 60% 60%/7px 7px 40% 40%);
            }
        }
    }
    &__content &__tab-item {
        display: block;
        opacity: 0;
        visibility: hidden;
        &.active {
            opacity: 1;
            visibility: visible;
            .feature-tab__img {
                opacity: 1;
                visibility: visible;
            }
            .feature-tab__img--1 {
                opacity: 1;
                bottom: 0;
                @include transition(.5s);
                margin-bottom: 40px;
            }
            .feature-tab__img--2 {
                opacity: 1;
                top: 0;
                @include transition(.5s);
            }
            .feature-tab__video--animation {
                opacity: 1;
                @include transition(.5s);
                @include transform(translateY(0));
                transition-delay: .1s;
            }
        }
    }
    &__item {
        position: absolute;
        right: 0;
    }
    &__video {
        position: absolute;
        bottom: -57px;
        left: -50px;
        width: 132px;
        height: 132px;
        @include border-radius(50%);
        background-color: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 27px;
        color: var(--color-primary);
        box-shadow: 0px 30px 160px 0px rgba(0, 0, 0, 0.1);
        @include respond(xs) {
            left: 0;
            bottom: 0;
        }
        i {
            margin-left: 10px;
        }
        span {
            position: absolute;
            top: 50%;
            left: 50%;
            @include transform(translate(-50%, -50%));
            width: 100%;
            text-align: center;
            img {
                animation: spin 12s infinite linear;
                -webkit-animation: spin 12s infinite linear;
            }
        }
        &:hover {
            color: var(--color-primary);
        }
        &--animation {
            @include transform(translateY(20px));
            opacity: 0;
        }
    }
    &__title {
        margin-bottom: -145px;
        @include respond(lg) {
            margin-bottom: -80px;
        }
        @include respond(xs) {
            margin-bottom: 40px;
        }
    }
    &__tabs {
        flex-direction: column;
        li {
            &:not(:last-child) {
                margin-bottom: 32px;
                @include respond(lg) {
                    margin-bottom: 20px;
                }
            }
            .nav-link {
                padding: 0;
                font-size: 24px;
                font-weight: 600;
                font-weight: 600;
                color: #373737;
                position: relative;
                @include transition(.3s);
                @include respond(lg) {
                    font-size: 19px;
                }
                &:hover,
                &.active {
                    padding-left: 23px;
                    color: var(--color-primary);
                }
                &:hover:before,
                &.active::before {
                    @include transform(translateY(-50%) scale(1));
                    opacity: 1;
                    transition-delay: .1s;
                }
                &::before {
                    @include border-radius(20px);
                    width: 12px;
                    height: 19px;
                    background-color: var(--color-primary);
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 0;
                    @include transform(translateY(-50%) scale(.5));
                    opacity: 0;
                    @include transition(.3s);
                }
                &.active {
                    background: none;
                    color: var(--color-primary);
                }
            }
        }
    }
    &__left {
        padding-bottom: 100px;
        @include respond(xs) {
            padding-bottom: 50px;
        }
    }
}

.feature-wrap {
	padding-left: 30px;
}

.feature-pt {
    padding-top: 230px;
}
.feature-price {
    &__img {
        clip-path: polygon(0 100%, 0 0, calc(100% - 34px) 0, 100% 100%);
    }
    &__holder {
        background-color: var(--color-primary);
        min-height: 234px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 50px;
        clip-path: polygon(34px 100%, 0 0, 100% 0, 100% 100%);
        margin-left: -20px;
        h3 {
            font-size: 30px;
            font-weight: 800;
            color: var(--color-white);
        }
        span {
            font-size: 17px;
            display: inline-block;
            color: var(--color-white);
            line-height: 1;
        }
        h2 {
            font-size: 65px;
            font-weight: 800;
            color: var(--color-white);
            line-height: 1.2;
            margin-bottom: 8px;
        }
        a {
            color: var(--color-white);
            font-size: 18px;
            font-weight: 800;
            i {
                font-size: 13px;
                padding-left: 8px;
            }
            &:hover {
                text-decoration: underline;
            }
        }
    }
}
.feature-list {
    li {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-white);
        &:not(:last-child) {
            margin-right: 27px;
        }
        i {
            font-size: 15px;
            margin-right: 8px;
            color: var(--color-primary);
        }
    }
}
.feature-area-wrap {
    margin-left: -20px;
    @include respond(md) {
        margin-left: 0;
    }
}
.feature-tab-wrap {
    .nav-tabs {
        border: 0;
        margin-bottom: 40px;
        margin-top: -20px;
        .nav-item {
            margin-top: 20px;
            .nav-link {
                font-size: 16px;
                color: var(--color-white);
                padding: 0;
                border: 0;
                padding: 0 16px;
                @include border-radius(0);
                position: relative;
                font-weight: 600;
                &::before {
                    position: absolute;
                    bottom: -6px;
                    left: 0;
                    height: 6px;
                    width: 100%;
                    background-color: var(--color-primary);
                    content: "";
                    opacity: 0;
                    @include transition(.3s);
                }
                &.active {
                    color: var(--color-white);
                    background-color: #292828;
                    &::before {
                        opacity: 1;
                    }
                }
            }
        }
    }
    .tab-content {
        font-size: 18px;
        color: #bbbbbb;
        line-height: 30px;
    }
}


.feature-content {
    .feature-price {
        @include respond(xs) {
            flex-wrap: wrap;
        }
    }
    .feature-price__holder {
        clip-path: none;
        margin-left: 0;
    }
}