%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/maraton/maraton.eco-n-tech.co.uk/wp-content/themes/maraton/blocks/HeaderBlock/
Upload File :
Create Path :
Current File : //home/maraton/maraton.eco-n-tech.co.uk/wp-content/themes/maraton/blocks/HeaderBlock/_style.scss

.admin-bar .s-header {
    height: calc(100vh - #{calc-rem(32)} - #{calc-rem(40)});
}

.header-white .s-header {
    color: $white;

    .s-header__content-arrow {
        svg path {
            fill: $white;
        }
    }
}

.s-header {
    padding: 0 calc-rem(20);
    margin: calc-rem(20) 0;
    height: calc(100vh - #{calc-rem(40)});
    min-height: 600px;
    position: relative;

    @include media-breakpoint-down(sm) {
        padding: 0;
        margin: 0;
        min-height: 650px;
    }

    @media (max-width: 400px) {
        min-height: inherit;
        height: initial;
    }

    &.default {
        .s-header--wrapper {
            position: relative;

            @include media-breakpoint-down(sm) {
                padding-bottom: calc-rem(150);
            }
        }
    }

    &--wrapper {
        padding-top: 75px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-inline: calc-rem(30);

        @media (max-width: 400px) {
            padding-bottom: calc-rem(150);
            min-height: 90vh;
        }
    }

    &--container {
        width: 100%;
        max-width: calc-rem(1000);
    }

    &__content {
        display: flex;
        flex-flow: wrap;
        align-items: center;
        margin-top: calc-rem(55);
        --animation-delay: 0.5s;

        @media (max-height: 600px) {
            margin-top: calc-rem(20);
        }

        &-arrow {
            animation: customJump 1s ease-in-out infinite;

            @include media-breakpoint-down(sm) {
                position: absolute;
                bottom: calc-rem(45);
            }

            svg {
                @media (max-width: 400px) {
                    transform: scale(0.75);
                }
            }
        }

        &-description {
            flex: 1;
            margin-left: calc-rem(50);
            white-space: break-spaces;
            font-size: calc-rem(20);
            line-height: calc-lh(20, 30);
            white-space: normal;

            @include media-breakpoint-down(sm) {
                margin-left: 0;
            }

            p {
                margin: 0;
            }
        }
    }

    &__socials {
        position: absolute;
        left: calc-rem(40);
        bottom: calc-rem(55);
        display: flex;
        flex-flow: column;
        gap: calc-rem(30);
        lign-items: center;

        @include media-breakpoint-down(xl) {
            display: none;
        }

        span {
            writing-mode: vertical-lr;
            transform: rotate(180deg);
            line-height: 1;
            font-size: calc-rem(16);
        }

        a {
            text-decoration: none;
            color: $black;
            transition: $transition_normal;

            &:hover {
                transform: scale(1.1);
            }
        }
    }

    h1 {
        font-weight: 600;
        --animate-delay: 0.5s;
        font-size: calc-rem(90);
        line-height: calc-lh(90, 110);
        font-family: $ofelia;
        margin-bottom: calc-rem(40);
        letter-spacing: calc-rem(-4.5);

        @include media-breakpoint-down(lg) {
            font-size: calc-rem(60);
            line-height: calc-lh(60, 80);
        }

        @include media-breakpoint-down(sm) {
            font-size: calc-rem(45);
            margin-bottom: calc-rem(30);
            hyphens: auto;
        }
    }

    // Image style
    &.image {
        color: $white;

        @include media-breakpoint-down(sm) {
            min-height: 550px;
        }

        .s-header--wrapper {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
        }

        .s-header__content-arrow {
            position: absolute;
            bottom: 9%;

            svg {
                path {
                    fill: $white;
                }
            }
        }

        .s-header__content {
            margin-top: 0;

            &-description,
            &-description p {
                margin-left: 0;
                font-weight: 600;
                font-size: calc-rem(45);
                letter-spacing: -2.25px;
                line-height: calc-lh(45, 58);
                font-family: $ofelia;

                @include media-breakpoint-up(xl) {
                    letter-spacing: -4.5px;
                    font-size: calc-rem(90);
                    line-height: calc-lh(90, 110);
                }

                @include media-breakpoint-down(sm) {
                    word-break: break-word;
                }
            }
        }

        p {
            font-weight: 400;
            font-size: calc-rem(20);
            letter-spacing: 4px;

            @include media-breakpoint-up(xl) {
                margin-bottom: calc-rem(50);
            }

            @include media-breakpoint-down(sm) {
                font-size: calc-rem(16);
            }
        }
    }
}

@keyframes customJump {
    0% {
        transform: translateY(calc-rem(-7.5));
    }

    50% {
        transform: translateY(calc-rem(7.5));
    }

    100% {
        transform: translateY(calc-rem(-7.5));
    }
}

Zerion Mini Shell 1.0