Hi all,
I’m trying to adjust the alignment of text/title overlaid on an image on my landing page. I can’t identify the code. I want to move all text and ‘New Arrivals’ button to the left.
I’ve pasted the code below. Grateful if anyone can be so kind as to help me out!
Thank you!
.slideshow-wrapper { position: relative; } .slideshow { position: unset; overflow: hidden; margin-bottom: 0; height: 100vh; -webkit-transition: height .6s cubic-bezier(.44,.13,.48,.87); -o-transition: height .6s cubic-bezier(.44,.13,.48,.87); transition: height .6s cubic-bezier(.44,.13,.48,.87); } @media only screen and (min-width:750px) { .slideshow { position: relative; } } .slideshow .slick-list,.slideshow .slick-track,.slideshow .slideshow__slide { height: 100%; } .slideshow .slick-dots { bottom: 30px; z-index: 1; } @media only screen and (max-width:749px) { .slideshow .slick-dots { bottom: 10px; } } .slideshow--small { height: 175px; } @media only screen and (min-width:750px) { .slideshow--small { height: 50vh; } } .slideshow--medium { height: 270px; } @media only screen and (min-width:750px) { .slideshow--medium { height:70vh; } } .slideshow--large { height: 375px; } @media only screen and (min-width:750px) { .slideshow--large { height: 80vh; } } .slideshow__slide { position: relative; overflow: hidden; } .slideshow__link { display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .slideshow__link:active,.slideshow__link:focus { opacity: 1; } @media only screen and (min-width:750px) { .slideshow__overlay::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: {{section.settings.bg_overlay}}; opacity: .4; z-index: 2; } .gradient_overlay:before{ background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); opacity: 1; } } .slideshow__image { -webkit-transition: opacity .8s cubic-bezier(.44,.13,.48,.87); -o-transition: opacity .8s cubic-bezier(.44,.13,.48,.87); transition: opacity .8s cubic-bezier(.44,.13,.48,.87); position: absolute; top: 0; left: 0; opacity: 0; height: 100%; width: 100%; background-repeat: no-repeat; background-size: cover; background-position: center center; background-color: transparent; z-index: 1; } .no-js .slideshow__image,.slick-initialized .slideshow__image { opacity: 1; } .slideshow__text-wrap { height: 100%; position: relative; } .slideshow__link .slideshow__text-wrap { cursor: inherit; } .slideshow__text-wrap--mobile { display: none; } @media only screen and (min-width:750px) { .slideshow__text-content { -webkit-transition: .6s cubic-bezier(.44,.13,.48,.87); -o-transition: .6s cubic-bezier(.44,.13,.48,.87); transition: .6s cubic-bezier(.44,.13,.48,.87); -webkit-transition-delay: .3s; -o-transition-delay: .3s; transition-delay: .3s; } } .slideshow__text-wrap--desktop .slideshow__text-content { position: absolute; width: 100%; top: 50%; opacity: 1; z-index: 2; padding: 0 50px; -ms-transform: translateY(-50%); -webkit-transform: translateY(-50%); transform: translateY(-50%); } .slideshow__text-wrap--desktop .slideshow__text-content li,.slideshow__text-wrap--desktop .slideshow__text-content .slideshow__btn-wrapper{ overflow: hidden; } .slideshow__text-wrap--desktop .slideshow__text-content li .slideshow__toptitle{ font-weight:500; letter-spacing: 0.3em; font-size: 16px; } .slideshow__text-wrap--desktop .slideshow__text-content li .slideshow__toptitle,.slideshow__text-wrap--desktop .slideshow__text-content li .slideshow__title,.slideshow__text-wrap--desktop .slideshow__text-content li .slideshow__subtitle ,.slideshow__text-wrap--desktop .slideshow__text-content .slideshow__btn{ transform: translateY(100%); } @media only screen and (min-width:750px) { .slideshow__text-content.slideshow__text-content--vertical-top { top: 120px; } .slideshow__text-content.slideshow__text-content--vertical-bottom { top: auto; bottom: 40px; } } .no-js .slideshow__text-content,.slick-initialized .slick-active .slideshow__text-content {} .no-js .slideshow__text-content,.slick-initialized .slick-active .slideshow__text-content li .slideshow__toptitle,.slick-initialized .slick-active .slideshow__text-content li .slideshow__title, .slick-initialized .slick-active .slideshow__text-content li .slideshow__subtitle,.slick-initialized .slick-active .slideshow__text-content .slideshow__btn{ transform: translateY(0); transition: transform 0.7s cubic-bezier(.29,.63,.44,1); transition-delay: .1s; } .slick-initialized .slick-active .slideshow__text-content li .slideshow__title{ transition-delay: .3s; } .slick-initialized .slick-active .slideshow__text-content li .slideshow__subtitle{ transition-delay: .4s; } .slick-initialized .slick-active .slideshow__text-content .slideshow__btn{ transition-delay: .5s; } .no-js .slideshow__text-content.slideshow__text-content--vertical-center,.slick-initialized .slick-active .slideshow__text-content.slideshow__text-content--vertical-center { /* -ms-transform: translateY(-50%); -webkit-transform: translateY(-50%); transform: translateY(-50%); */ } .slideshow__text-content::after { content: ''; content: ''; display: block; width: 40px; height: 40px; position: absolute; margin-left: -20px; margin-top: -20px; border-radius: 50%; border: 3px solid #fff; border-top-color: transparent; -webkit-animation: spin .65s infinite linear; animation: spin .65s infinite linear; opacity: 1; -webkit-transition: all 1s cubic-bezier(.29,.63,.44,1); -o-transition: all 1s cubic-bezier(.29,.63,.44,1); transition: all 1s cubic-bezier(.29,.63,.44,1); bottom: -55px; left: 50%; } @media only screen and (max-width:749px) { .slideshow__text-content::after { content: none; } } .no-js .slideshow__text-content::after,.slick-initialized .slideshow__text-content::after { opacity: 0; visibility: hidden; content: none; } @media (min-width:750px) { .slideshow__text-content--mobile { display: none!important; } } .slideshow__text-content--mobile .container{ padding: 30px; } .slideshow__arrows--mobile~.slideshow__text-content--mobile { padding-top: 1.7rem; } @media only screen and (min-width:750px) { .slideshow__arrows--mobile~.slideshow__text-content--mobile { padding-top: 0; } } @media only screen and (min-width:750px) { .slideshow__text-content--mobile { padding-top: 0; } .slideshow__text-content--mobile::after { display: none; } } @media (min-width:992px) { .slideshow__title { font-size: 70px; font-weight: 400; line-height:1; } .mega-subtitle{ line-height: 1.6; } } @media (min-width:1600px) { .slideshow__title { line-height: 1; font-weight: 400; font-size: 96px; } } @media only screen and (max-width:749px) { .slideshow__subtitle,.slideshow__title,.slideshow__toptitle { display: none; } } .slideshow__title--mobile { margin-bottom: 0; font-size: calc(var(--g-font-size) + 30px); font-weight: 400; } .slideshow__title--mobile~.slideshow__subtitle--mobile { margin-top: 7px; font-size: var(--g-font-size); } .slideshow__subtitle--mobile,.slideshow__title--mobile { display: none; color: #3d4246; } @media only screen and (max-width:749px) { .slideshow__subtitle--mobile,.slideshow__title--mobile,.slideshow__toptitle--mobile { display: block; } } .slideshow__btn-wrapper { border: none; background-color: transparent; } @media only screen and (min-width:750px) { .slideshow__btn-wrapper--push { margin-top: 50px; } } @media only screen and (max-width:749px) { .slideshow__btn { display: none; } } .slideshow__btn--mobile { display: none; margin: 1.3rem auto 0; } @media only screen and (max-width:749px) { .slideshow__btn--mobile { display: inline-block; } } .slideshow .slick-prev { left: 25px; } .slideshow .slick-next { right: 25px; } .slideshow .slick-arrow { width: 50px; height: 50px; border-radius: 100%; color: #fff; } .slideshow .slick-arrow:before { color: {{section.settings.color_arrow}}; } .slideshow .slick-dots li button{ border-color:{{section.settings.color_dot_nav}}; } .slideshow .slick-dots li::hover button{ background:{{section.settings.color_dot_active}}; border-color:{{section.settings.color_dot_active}}; } .slideshow .slick-dots li.slick-active button{ border-color:{{section.settings.color_dot_active}}; background:{{section.settings.color_dot_active}}; } @media (max-width:991px) { .slideshow .slick-arrow { display: none!important; } }{%- if section.settings.slideshow_height == ‘adapt’ -%}
{%- assign first_block = section.blocks[0] -%}
{%- if first_block.settings.image.aspect_ratio == blank -%}
{%- assign min_aspect_ratio = 2.0 -%}
{%- else -%}
{%- assign min_aspect_ratio = first_block.settings.image.aspect_ratio -%}
{%- endif -%}
{%- assign wrapper_height = 100 | divided_by: min_aspect_ratio -%}
{%- endif -%}
{%- for block in section.blocks -%}
{%- assign text_alignments = block.settings.text_alignment | split: ’ ’ -%}
{%- assign text_horizontal_alignment = text_alignments.first -%}
{%- assign text_vertical_alignment = text_alignments.last | strip -%}
-
{%- unless block.settings.slide_toptitle == blank -%}
-
{{ block.settings.slide_toptitle }}
{%- endunless -%}
{%- unless block.settings.slide_title == blank -%}
-
{{ block.settings.slide_title }}
{%- endunless -%}
{%- unless block.settings.subheading == blank -%}
- {{ block.settings.subheading }} {%- endunless -%}
{%- assign show_link_button = false -%}
{%- if block.settings.button_label != blank and block.settings.button_link != blank -%}
{%- assign show_link_button = true -%}
{%- endif -%}
{%- if show_link_button -%}
{{ block.settings.slide_toptitle }}
{%- endunless -%} {%- unless block.settings.slide_title == blank -%}{{ block.settings.slide_title }}
{%- endunless -%} {%- unless block.settings.subheading == blank -%} {{ block.settings.subheading }} {%- endunless -%}{%- if show_link_button -%}
.slideshow__btn{{block.id}}{ background-color:{{block.settings.bg_button}}; color:{{block.settings.color_button}}; } .slideshow__btn{{block.id}}:before{ background-color:{{block.settings.bg_button_hover}}; } .slideshow__btn{{block.id}}:hover{ color:{{block.settings.color_button_hover}}; } .slideshow__btn{{block.id}}:hover:before{ background-color:{{block.settings.bg_button_hover}}; } {{ block.settings.button_label | escape }} {%- endif -%}




