issue with image with text overlay

Highlighted
Tourist
23 0 1

https://epilsense.com/

 

Here in the homepage when i access this page with mobile device i see all the text below the first image and when i access from my laptop the text is over the image.

 

I would be happy if i see the text over the image from mobile and laptop also.

 

Thanks

0 Likes
Highlighted
Shopify Partner
177 16 20

Hi, @archaon1989

Try using this CSS Style:

.caption{
    position: absolute;
    top: 50%;
    -ms-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

Paste that code at the bottom of your styles.scss, keep in mind that this code may work only with one banner.

Let's make the best store!
Contact us at: thepremierstores@gmail.com
0 Likes
Highlighted
Shopify Partner
37 1 3

If that is what you want find the .caption in the style sheet and replace its code with this:

 

.caption {
    width: 100%;
    position: static;
    top: 12%;
    padding: 0 5%;
    -ms-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, 0%);
}
0 Likes
Highlighted
Tourist
23 0 1
/* #Home page - image with text overlay
================================================== */

.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  {% if settings.image_loading_style != 'color' %}
    background-color: {{ settings.banner_placeholder_background_color }};
  {% endif %}

  @include respond-to('small-down') {
    max-height: inherit;
    background-color: transparent;
  }
  img {
    width: 100%;
    display: block;
  }
}

/* #Home page - video
================================================== */

this is what i have in styles css 

 

i tryed to substitute some values with ones you gave me but it doesn't work

0 Likes
Highlighted
Tourist
23 0 1

ps: before i wrote the issue in a wrong way: instead of over i used below

 

What i wanted to write is this:

I would be happy if i see the text over the image from mobile and laptop also.

0 Likes
Highlighted
Shopify Partner
37 1 3

Here you are then:

Copy this over what is there already - ive changed the position and added "top: 10%"

@media only screen and (max-width: 480px)
.caption {
    margin: 20px auto;
    font-size: 3vw;
    top: 10%;
    position: absolute;
    transform: none;
    width: 100%;
}
0 Likes
Highlighted
Tourist
23 0 1

it doesn't work. 

0 Likes
Shopify Partner
37 1 3

Did you replace the orginal code... Should work:

 

Screenshot (55).png

 

 

0 Likes
Highlighted
Tourist
23 0 1

Hello Tom,

 

if you ceck if from google browser from mobile it doesn't work, i tryed to substitute the code as you tol me but the store then is all messed up

 

here's the code where i can find many .caption in styles.scss:

.caption {
  width: 100%;
  position: absolute;
  {% if settings.header_background %}
    top: 50%;
  {% else %}
    top: 55%;
  {% endif %}
  padding: 0 5%;
  @include prefix(transform, translate(0,-50%), ms webkit spec);
  @include respond-to('medium-up') {
    max-width: 960px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  @include respond-to('large-up') {
    padding: 0 30px;
  }
  @include respond-to('medium-down') {
    width: 100%;
  }
  @include respond-to('small-down') {
    margin: 20px auto;
    font-size: 3vw;
    position: static;
    transform: none;
    width: 100%;
  }
  a {
    pointer-events: all;
  }
  &.position-center {
    left: 0;
    right: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    @include respond-to('medium-down') {
      width: 85%;
    }
    @include respond-to('small-down') {
      width: 100%;
    }
  }
  &.position-left {
    left: 0;
    right: 0;
    text-align: left;
  }
  &.position-right {
    left: 0;
    right: 0;
    text-align: right;
  }
  .pretext {
    color: {{ settings.banner_color }};
    font-family: {{ settings.slideshow_subtitle__font.family }}, {{ settings.slideshow_subtitle__font.fallback_families }};
    font-weight: {{ settings.slideshow_subtitle__font.weight }};
    text-transform: {{settings.slideshow_subtitle_font_style}};
    font-size: {{settings.slideshow_subtitle_size}}px;
    letter-spacing: {{settings.slideshow_subtitle_letter_spacing}}px;
    margin-bottom: 10px;
    {% if settings.slideshow_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}
    @include respond-to('small-down') {
      font-size: 1.4em;
      color: {{ settings.regular_color }};
      text-shadow: none;
    }
    @include respond-to('medium-down') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.5 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.2 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_subtitle_size}}px;
    }
  }
  .headline {
    color: {{ settings.banner_color }};
    font-family: {{ settings.slideshow_headline__font.family }}, {{ settings.slideshow_headline__font.fallback_families }};
    font-weight: {{ settings.slideshow_headline__font.weight }};
    font-style: {{ settings.slideshow_headline__font.style }};
    text-transform: {{ settings.slideshow_headline_font_style }};
    font-size: {{ settings.slideshow_headline_size }}px;
    letter-spacing: {{ settings.slideshow_headline_letter_spacing }}px;
    line-height: 1.4em;
    margin-bottom: 15px;
    {% if settings.slideshow_headline_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}

    @include respond-to('small-down') {
      font-size: 2.6em;
      color: {{ settings.regular_color }};
      text-shadow: none;
    }
    @include respond-to('medium-down') {
      font-size: {{settings.slideshow_headline_size | divided_by: 1.5 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_headline_size | divided_by: 1.2 }}px;
    }
    @include respond-to('large-up') {
      font-size: {{settings.slideshow_headline_size}}px;
    }
  }
  .subtitle {
    color: {{ settings.banner_color }};
    font-family: {{ settings.slideshow_subtitle__font.family }}, {{ settings.slideshow_subtitle__font.fallback_families }};
    font-weight: {{ settings.slideshow_subtitle__font.weight }};
    text-transform: {{settings.slideshow_subtitle_font_style}};
    font-style: {{settings.slideshow_subtitle_font_style}};
    font-size: {{settings.slideshow_subtitle_size}}px;
    letter-spacing: {{settings.slideshow_subtitle_letter_spacing}}px;
    position: relative;
    {% if settings.slideshow_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}

    @include respond-to('small-down') {
      font-size: 1.4em;
      color: {{ settings.regular_color }};
      text-shadow: none;
    }
    @include respond-to('medium-down') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.5 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.2 }}px;
    }
    @include respond-to('large-up') {
      font-size: {{settings.slideshow_subtitle_size}}px;
    }
  }
  .pretext:empty,
  .headline:empty,
  .subtitle:empty {
    display: none;
    &:before {
      height: 0;
    }
  }
}

.subtitle p a {
  pointer-events: all;
}

.caption-content {
  display: inline-block;
  float: none;
  max-width: 60%;
  font-size: 0;
  @include respond-to('medium-down'){
    max-width: 80%;
  }
  @include respond-to('small-down') {
    width: 100%;
    max-width: 100%;
  }
  .action_button {
    margin: 10px;
    @include respond-to('medium-down'){
      // tightens up stacked buttons on iPad
      margin: 5px;
    }
    @include respond-to('small-down') {
      font-size: 16px;
    }
  }
  &.align-center {
    text-align: center;
    @include respond-to('medium-down') {
      max-width: 80%;
    }
    @include respond-to('small-down') {
      width: 100%;
      max-width: 100%;
    }
  }
  &.align-left {
    text-align: left;
    &:first-child .action_button {
      margin-left: 0;
    }
    .subtitle:before {
      margin-left: 0;
    }
  }
  &.align-right {
    text-align: right;
    &:last-child .action_button {
      margin-right: 0;
    }
    .subtitle:before {
      margin-right: 0;
    }
  }
  &.caption-background-true {
    padding: 30px;
    @include respond-to('small-down') {
      padding: 0;
    }
  }
}

/* Transparency settings for each type of caption */

$backgroundTransparency: 0.6;

.caption-background-true {
  //fallback
  background-color: {{ settings.banner_background_color }};
}

.homepage-video {
  .caption-background-true {
    background-color: rgba({{ settings.banner_background_color }}, {% if settings.video_background_transparency == blank %} 1 {% else %} $backgroundTransparency {% endif %});
    @include respond-to('small-down') {
      background-color: transparent;
    }
  }
}

.caption-background-true {
  background-color: {{ settings.banner_background_color }};
  &.caption-transparency-true {
    background-color: rgba({{ settings.banner_background_color }}, $backgroundTransparency);
    @include respond-to('small-down') {
      background-color: transparent;
    }
  }
  @include respond-to('small-down') {
    background-color: transparent;
  }
}

a.highlight-false, input[type="button"].highlight-false,
a.highlight-true, input[type="button"].highlight-true,
a.continue-button {
  background-color: rgba(255,255,255,0);
  color: {{ settings.banner_button_color }};
  border: 1px solid {{ settings.banner_button_color }};
  transition: background-color 0.2s linear, color 0.2s linear;
  margin: 25px 0;

  &:hover {
    background-color: {{ settings.banner_button_color }};
    border-color: {{ settings.banner_button_color }};

    {% if settings.caption_background %}
      color: {{ settings.banner_background_color }};
    {% else %}
      @if (lightness({{ settings.banner_color }}) > 50) {
        color: #333;
      } @else {
        color: #fff;
      }
    {% endif %}
  }

  @include respond-to('small-down') {
    color: {{ settings.regular_color }};
    border-color: {{ settings.regular_color }};
    background-color: transparent;
    &:hover {
      border-color: {{ settings.regular_color }};
      background-color: {{ settings.regular_color }};
      @if (lightness({{ settings.regular_color }}) > 50) {
        color: #333;
      } @else {
        color: #fff;
      }
    }
  }
}

a.highlight-true, input[type="button"].highlight-true {
  background-color: {{ settings.banner_button_color }};
  border-color: {{ settings.banner_button_color }};

  {% if settings.caption_background %}
    color: {{ settings.banner_background_color }};
  {% else %}
    @if (lightness({{ settings.banner_button_color }}) > 50) {
      color: #333;
    } @else {
      color: #fff;
    }
  {% endif %}

  @include respond-to('small-down') {
    border-color: {{ settings.regular_color }};
    background-color: {{ settings.regular_color }};
    @if (lightness({{ settings.regular_color }}) > 50) {
      color: #333;
    } @else {
      color: #fff;
    }
  }
}

a.continue-button,
a.highlight-false--dark,
input[type="button"].highlight-false--dark {
  color: {{ settings.regular_color }};
  border-color: {{ settings.regular_color }};
  background-color: transparent;
  &:hover {
    border-color: {{ settings.regular_color }};
    background-color: {{ settings.regular_color }};
    @if (lightness({{ settings.regular_color }}) > 50) {
      color: #333;
    } @else {
      color: #fff;
    }
  }
}

/* Slideshow */

.homepage-slideshow {
  .gallery-cell:not(:first-child) {
    height: 0;
  }
}

.homepage-slideshow.flickity-enabled {
  .gallery-cell:not(:first-child) {
    height: auto;
  }
}

.homepage-slideshow {
  a.highlight-false, input[type="button"].highlight-false,
  a.highlight-true, input[type="button"].highlight-true {
    &:hover {
      {% if settings.slideshow_text_background %}
        color: {{ settings.banner_background_color }};
      {% else %}
        @if (lightness({{ settings.banner_color }}) > 50) {
          color: #333;
        } @else {
          color: #fff;
        }
      {% endif %}
    }
    @include respond-to('small-down') {
      color: {{ settings.regular_color }};
      border-color: {{ settings.regular_color }};
      background-color: transparent;
      &:hover {
        border-color: {{ settings.regular_color }};
        background-color: {{ settings.regular_color }};
        @if (lightness({{ settings.regular_color }}) > 50) {
          color: #333;
        } @else {
          color: #fff;
        }
      }
    }
  }

  a.highlight-true, input[type="button"].highlight-true {
    background-color: {{ settings.banner_color }};
    border-color: {{ settings.banner_color }};

    {% if settings.slideshow_text_background %}
      color: {{ settings.banner_background_color }};
    {% else %}
      @if (lightness({{ settings.banner_color }}) > 50) {
          color: #333;
      } @else {
        color: #fff;
      }
    {% endif %}

    @include respond-to('small-down') {
      border-color: {{ settings.regular_color }};
      background-color: {{ settings.regular_color }};
      @if (lightness({{ settings.regular_color }}) > 50) {
        color: #333;
      } @else {
        color: #fff;
      }
    }
  }
}

// Contact Section
.contact-form_position--right {
  float: right;
}


/* #Account
================================================== */

.account-header-logout {
  text-align: right;
  text-transform: uppercase;
}

.account-sidebar {
  border-right: 1px solid {{ settings.headline_border_color }};
  box-sizing: border-box;
  padding-right: 10px;
  @include respond-to('medium-down'){
    border: 0;
    padding-right: 0;
  }
}

.customers-addresses {
  .account-sidebar {
    border-right: 0;
    padding-right: 0;
  }
  .account-main {
    box-sizing: border-box;
    border-left: 1px solid {{ settings.headline_border_color }};
    padding-left: 20px;
    @include respond-to('medium-down'){
      border: 0;
      padding-left: 0;
    }
  }
}

.action_bottom .note {
  vertical-align: middle;
  line-height: 40px;
}

.address_title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.action_edit {
  background-color: {{ settings.btn_color }};
  border-color: {{ settings.btn_color }};
  a {
    color: {{ settings.btn_text_color }};
  }
  &:hover {
    background-color: {{ settings.btn_color }};
    border-color: {{ settings.btn_color }};
    a {
      color: {{ settings.btn_text_color }};
    }
  }
}

.action_delete {
  background-color: {{ settings.btn_text_color }};
  border-color: {{ settings.btn_color }};
  a {
    color: {{ settings.btn_color }};
  }
  &:hover {
    background-color: {{ settings.btn_color }};
    border-color: {{ settings.btn_color }};
    a {
      color: {{ settings.btn_text_color }};
    }
  }
}


/* #Home page - collection in detail
================================================== */

.collection-in-detail {
  .section {
    margin: 0;
  }
  .half {
    width: 50%;
    float: left;
    position: relative;
    @include respond-to('medium-down'){
      width: 100%;
    }
  }
  .product-details {
    padding: 40px 2rem;
  }

  .frontpage_product_stagger--true {
    .section:nth-child(even) .half {
      float: right;
    }
  }

  .product_gallery.multi-image {
    width: 100%;
    display: block;
    margin-bottom: 0;
  }
}

/* #Home page - text columns with images
================================================== */

.text-columns-with-images-section {
  .border-style--box {
    padding: 10%;
    border: 1px solid {{ settings.headline_border_color }};
  }
  .border-style--quote {
    padding-left: 20px;
    border-left: 1px solid {{ settings.headline_border_color }};
    margin-bottom: 10%;
  }
  .large_text {
    @include headline-style($font-size-column);
  }
  .text-column {
    margin-bottom: 25px;
  }
  a.continue-button {
    margin-top: 10px;
  }
  h2.title + .feature_divider {
    margin-bottom: 40px;
  }
}

/* OOTS Content Creator slideshow */
.flexslider {
  img {
    display: block;
    margin: 0 auto;
  }
}

/* #Home page - slideshow
================================================== */

.homepage-slideshow:hover .flickity-prev-next-button, .testimonial-section:hover .flickity-prev-next-button {
  opacity: 0.5;
}

.homepage-slideshow.text-animation--false .caption {
  opacity: 0;
  transition: opacity 0.3s linear;
}

.homepage-slideshow.text-animation--false.flickity-enabled .caption {
  opacity: 1;
}

.text-animation--true {
  .caption-content {
    opacity: 0;
    @include respond-to('small-down') {
      opacity: 1;
      animation-duration: 0s;
    }
  }
}

.homepage-slideshow,
.testimonial-section {
  position: relative;
  overflow: hidden;
  &.single-image {
    .flickity-prev-next-button {
      display: none;
    }
    .flickity-page-dots {
      display: none;
    }
  }
  .gallery-cell {
    width: 100%;
    {% if settings.image_loading_style != 'color' %}
      background-color: {{ settings.banner_placeholder_background_color }};
    {% endif %}
    @include respond-to('small-down') {
      background-color: transparent;
    }
    img {
      width: 100%;
      display: block;
    }
  }
  .flickity-prev-next-button {
    opacity: 0;
    width: 5%;
    height: 100%;
    border-radius: 0;
    @include respond-to('medium-up') {
      opacity: 0;
    }
  }
  .flickity-page-dots {
    bottom: 2em;
    display: none;
    @include respond-to('medium-up') {
      display: block;
    }
    .dot {
      height: 4px;
      width: 40px;
      margin: 0;
      border-radius: 0;
      background: {{ settings.arrow_color }}
    }
    @include respond-to('small-down') {
      display: block;
      bottom: 5px;
    }
  }
}

/* Home - product slider */

.js-product-slider {
  .product_clear {
    display: none;
  }
  .column.alpha, .columns.alpha {
    margin: 0 10px 0 20px;
  }
  .flickity-prev-next-button {
    border-radius: 0;
  }
}

/* #Home page - image with text
================================================== */

.image-with-text .featured-link--half a[href] img {
  box-shadow: #000 0em 0em 0em;
  transition: opacity 0.2s linear;
}

.image-with-text .featured-link--half:hover a[href] img.lazyloaded {
  opacity: 0.8;
}

.standard--width .image-with-text .featured-link--image,
.full-width--false.image-with-text .featured-link--image {
  background-color: transparent;
}

.featured-link--section {
  width: 100%;
  box-sizing: border-box;
  float: left;
  min-height: 100px;
  @include flexbox();
  @include flex-wrap(wrap);
}

.featured-link--half.featured-link__imageHalf {
  background-color: transparent;
  text-align: center;
  a {
    width:100%;
    display: block;
    img {
      width: 100%;
    }
  }
}

.featured-link--half {
  box-sizing: border-box;
  float: left;
  width: 50%;
  position: relative;
  text-align: center;
  display: table;
  @include flex(1 0 auto);
  @include flexbox();
  @include align-items(center);
  @include justify-content(center);
  background-color: {{settings.featured_links_background}};
  @include respond-to('small-down') {
    width: 100%;
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 100%;
        -ms-flex: 1 0 100%;
            flex: 1 0 100%;
  }
  .featured-link--wrap {
    width: 100%;
    height: 100%; /* Fix for SVG set at 2 images per row */
    @include flex(0 0 auto);
  }
  img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    @include respond-to('small-down') {
      width: 100%;
      max-width: auto;
    }
  }
  .info {
    display: inline-block;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    &.text-align--right {
      text-align: right;
      .description:before {
        margin-right: 0;
      }
    }
    &.text-align--left {
      text-align: left;
      .description:before {
        margin-left: 0;
      }
    }
    @include respond-to('small-down') {
      position: static;
      transform: translateY(0);
      -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
      padding: 2em 0;
    }
  }
  .collection_title {
    margin-bottom: 15px;
    display: block;
    color: set-text-color({{settings.featured_links_background}});
  }
  .description {
    position: relative;
    font-size: {{ settings.regular_font_size }}px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: set-text-color({{settings.featured_links_background}});
    @include respond-to('medium-down'){
     font-size: 2vw;
    }
    @include respond-to('small-down') {
     font-size: inherit;
    }
    @include respond-to('widescreen-up') {
      font-size: inherit;
    }
  }
  .button {
    height: auto;
    background-color: transparent;
    color: set-text-color({{settings.featured_links_background}});
    border: 1px solid set-text-color({{settings.featured_links_background}});
    transition: background-color 0.2s cubic-bezier(0.55, 0.09, 0.68, 0.53), color 0.3s linear, border 0.2s cubic-bezier(0.55, 0.09, 0.68, 0.53);
    line-height: 1.5;
    padding-top: 10px;
    padding-bottom: 10px;
    &:hover {
      background-color: set-text-color({{settings.featured_links_background}});
      color: {{settings.featured_links_background}};
      border: 1px solid set-text-color({{settings.featured_links_background}});
    }
  }
}

.image-align--right.featured_collections.across-1 .featured-link--section:nth-child(odd) {
  @include flex-direction(row-reverse);
  .featured-link--half {
    float: right;
  }
}

.image-align--left.featured_collections.across-1 .featured-link--section:nth-child(even) {
  @include flex-direction(row-reverse);
  .featured-link--half {
    float: right;
  }
}

.featured_collections.across-2 {
  @include flexbox();
  @include flex-wrap(wrap);
}

.image-align--left.featured_collections.across-2 {
  .featured-link--section {
    @include flex-direction(row);
    @include respond-to('medium-down'){
      &:nth-of-type(2n){
        @include flex-direction(row-reverse);
      }
    }
  }
  .featured-link--image:nth-of-type(4n+3) {
    @include flex-direction(row-reverse);
    @include respond-to('medium-down'){
      @include flex-direction(row);
    }
  }
  .featured-link--image:nth-of-type(4n+4) {
    @include flex-direction(row-reverse);
  }
}

.image-align--right.featured_collections.across-2 {
  .featured-link--section {
    @include flex-direction(row-reverse);
    @include respond-to('medium-down'){
      &:nth-of-type(2n){
        @include flex-direction(row);
      }
    }
  }
  .featured-link--image:nth-of-type(4n+3) {
    @include flex-direction(row);
    @include respond-to('medium-down'){
      @include flex-direction(row-reverse);
    }
  }
  .featured-link--image:nth-of-type(4n+4) {
    @include flex-direction(row);
  }
}

.featured_collections.across-2 {
  .featured-link--section {
    width: 50%;
    @include respond-to('medium-down') {
      width: 100%;
    }
  }
  .featured-link--half {
    @include respond-to('medium-down') {
      width: 50%;
    }
    @include respond-to('small-down') {
      width: 100%;
    }
  }
  .description {
    font-size: 1.2vw;
    @include respond-to('medium-down'){
     font-size: inherit;
    }
  }
  .button {
    font-size: 1.2vw;
    @include respond-to('small-down') {
      font-size: 14px;
    }
  }
  .featured-link--image:nth-of-type(2n+1) {
    clear: both;
  }
  .featured-link--image:nth-of-type(2n+2) .featured-link--half {
    float: left;
    @include respond-to('medium-down'){
      float: right;
    }
  }
  .featured-link--image:nth-of-type(3n+3) .featured-link--half {
    float: right;
    @include respond-to('medium-down'){
      float: left;
    }
  }
  .featured-link--image:nth-of-type(4n+4) .featured-link--half {
    float: right;
  }
}

/* #Home page - featured products
================================================== */

.featured-products-section {
  .product_gallery {
    margin-bottom: 0;
    padding-bottom: 0;
    img {
      width: 100%;
      vertical-align: bottom;
    }
  }
}

/* #Home page - featured promotions
================================================== */

.promo-animation--true {
  opacity: 0;
}

.featured-promotions {
  .feature-section {
    text-align: center;
    float: left;
    margin: 0 10px 10px;
    position: relative;
    @include respond-to('medium-down'){
      opacity: 1;
    }
    .link-promo {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: block;
    }
    .feature-inner {
      display: block;
      position: relative;
      overflow: hidden;
    }
    .feature-style--circle {
      border-radius: 50%;
      img {
        border-radius: 50%;
      }
    }
    .feature-style--rounded {
      border-radius: 10px;
      img {
        border-radius: 10px;
      }
    }
    .feature-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      transition: background-color 0.25s linear;
      @include respond-to('medium-down'){
        {% if settings.featured_promotions_mobile_background %}
          @include background-opacity({{ settings.featured_promotions_background }}, 0.5);
        {% endif %}
      }
    }
    .feature-wrap {
      @include vertical-alignment;
      position: absolute;
      width: 80%;
      margin: 0 auto;
      left: 0;
      right: 0;
      pointer-events: none;
    }
    .feature-details {
      display: none;
      opacity: 0;
      transition: opacity 0.3s linear;
      @include respond-to('medium-down'){
        opacity: 1;
        display: block !important;
      }
      &.reveal-details {
        opacity: 1;
      }
      .button {
        margin-top: 15px;
      }
    }
    .description {
      color: {{ settings.featured_promotions_color }};
      transition: all 0.3s linear;
      margin-bottom: 0;
    }
    .description a {
      pointer-events: auto;
    }
    &.title-overlay-true {
      .title {
        transition: all 0.3s linear;
        color: {{ settings.featured_promotions_color }};
        @include respond-to('medium-down'){
          margin-bottom: 10px;
        }
        &:after {
          content: '';
          display: block;
          height: 1px;
          width: 0;
          background: {{ settings.featured_promotions_color }};
          transition: width .5s ease, background-color .5s ease;
          margin: 10px auto auto auto;
          @include respond-to('medium-down'){
            display: none;
          }
        }
      }
    }
    &.title-overlay-false {
      .feature-wrap .title {
        display: none;
      }
    }
    &:hover .feature-overlay {
      @include background-opacity({{ settings.featured_promotions_background }}, 0.5);
      @include respond-to('medium-down'){
        {% unless settings.featured_promotions_mobile_background %}
          background: transparent;
        {% endunless %}
      }
    }
    &.title-overlay-true:hover .title:after {
      width: 50%;
      background: {{ settings.featured_promotions_color_hover }};
    }
    &.title-overlay-true:hover .title {
      color: {{ settings.featured_promotions_color_hover }};
    }
    &.title-overlay-true:hover .description {
      color: {{ settings.featured_promotions_color_hover }};
    }
    &.title-overlay-false:hover .description {
      color: {{ settings.featured_promotions_color_hover }};
    }
    img {
      width: 100%;
      display: block;
      box-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
    }
  }
}

$i: 1;
$delay: 0;
@while $i < 13 {
  .promo-#{$i} {
    -webkit-animation-delay: $delay + s;
    animation-delay: $delay + s;
  }
  $i: $i + 1;
  $delay: $delay + 0.3;
}

.featured-promotions.full-width--false {
  .promo-per-row-2 {
    .feature-section {
      width: calc(50% - 20px);
      @include respond-to('medium-down'){
        width: 100%;
        margin: 0 0 10px;
      }
      &:nth-child(2n+1){
        clear: both;
      }
    }
  }

  .promo-per-row-3 {
    .feature-section {
      width: calc(33.3333% - 20px);
      @include respond-to('medium-down'){
        width: 100%;
        margin: 0 0 10px;
      }
      &:nth-child(3n+1){
        clear: both;
      }
    }
  }

  .promo-per-row-4 {
    .feature-section {
      width: calc(25% - 20px);
      &:nth-child(4n+1){
        clear: both;
      }
      @include respond-to('medium-down') {
        width: calc(50% - 20px);
        &:nth-child(2n+1){
          clear: both;
        }
      }
      @include respond-to('small-down') {
        width: 100%;
        margin: 0 0 10px;
      }
    }
  }
}

.featured-promotions.full-width--true {
  padding-top: 0;
  .js-featured-promotions {
    @include flexbox();
    @include flex-wrap(wrap);
  }
  .promo-per-row-2 {
    .feature-section {
      width: 50%;
      margin: 0;
      @include respond-to('small-down') {
        width: 100%;
      }
    }
  }
  .promo-per-row-3 {
    .feature-section {
      width: 33.333333%;
      margin: 0;
      @include respond-to('medium-down') {
        width: 100%;
      }
    }
  }
  .promo-per-row-4 {
    .feature-section {
      width: 25%;
      margin: 0;
      @include respond-to('medium-down') {
        width: 50%;
      }
      @include respond-to('small-down') {
        width: 100%;
      }
    }
  }
}

/* #Home page - featured collection
================================================== */

.featured-collection__description.section {
  padding: 0 20px;
  margin: 20px 0;
}

.featured-collection__products.container {
  padding: 0;
}


/* #Home page - image with text overlay
================================================== */

.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  {% if settings.image_loading_style != 'color' %}
    background-color: {{ settings.banner_placeholder_background_color }};
  {% endif %}

  @include respond-to('small-down') {
    max-height: inherit;
    background-color: transparent;
  }
  img {
    width: 100%;
    display: block;
  }
}


/* #Home page - video
================================================== */

.block__featured_video,
.video-section {
  .caption {
    z-index: 30;
    pointer-events: none;
  }
  @include respond-to('small-down'){
    .caption .action_button {
      display: none;
    }
    .caption {
      margin: 0;
      height: 0;
    }
    .caption.caption--has-content {
      margin: 20px 0;
      height: auto;
    }
  }
}

.homepage-video {
  position: relative;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  {% if settings.image_loading_style != 'color' %}
    background-color: {{ settings.banner_placeholder_background_color }};
  {% endif %}
  @include respond-to('small-down') {
    background-color: transparent;
  }
  img {
    width: 100%;
    display: block;
  }
  iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
  }
  video {
    background-color: {{ settings.shop_bg_color }};
  }
  video[poster] {
    object-fit: cover;
  }
  video.video-autoplay--true.html-video {
    display: none;
  }
  .homepage-video--media {
    width: 100%;
    height: auto;
    padding-top: 0;
  }
  .placeholder-image--true a.video__play-button {
    pointer-events: none;
  }
  .caption.text-on-video {
    pointer-events: none;
  }
  @include respond-to('small-down') {
    .caption.text-on-video {
      position: absolute;
      @include prefix(transform, translateY(-50%), ms webkit spec);
      margin: 0;
      a.highlight-false {
        color: white;
        border-color: white;
      }
      .headline,
      .pretext,
      .subtitle {
        display: none;
      }
    }
  }
}

.homepage-video .mobile-video__buttons {
  display: block;
  text-align: center;
  top: 55%;
  @include prefix(transform, translateY(-50%), ms webkit spec);
  width: 100%;
  position: absolute;
  &.text-on-video { z-index: 20; }
  a.action_button {
    border-color: white;
    background-color: transparent;
    color: white;
  }
  @include respond-to('small-up') {
    display: none;
  }
}

.darken-video {
  display: block;
  background: rgba(0,0,0,0.3);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  pointer-events: none;
  z-index: 20;
}

/* #Page Banners
================================================== */

.page_banner {
  overflow: hidden;
  max-height: 100vh;
  {% if settings.header_background == false %}
    margin-top: 40px;
  {% endif %}
}

.caption.captionOverlay--true {
  max-width: 960px;
  left: 0;
  right: 0;
  margin: 0 auto;
  position: absolute;
  {% if settings.header_background %}
    top: 50%;
  {% else %}
    top: 55%;
  {% endif %}
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  z-index: 3;
  .headline, .subtitle {
    color: {{ settings.banner_color }};
    {% if settings.slideshow_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}
  }
  @include respond-to('medium-down'){
    top: 50%;
  }
}

.dark-overlay-true:after{
  content: '';
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}


/* #Font-Face
================================================== */
/*  This is the proper syntax for an @font-face file.
    Upload your font files to Assets and then
    copy your FontName into code below and remove
    comment brackets */

/*  @font-face {
      font-family: 'FontName';
      src: url('FontName.eot');
      src: url('FontName.eot?iefix') format('eot'),
           url('FontName.woff') format('woff'),
           url('FontName.ttf') format('truetype'),
           url('FontName.svg#webfontZam02nTh') format('svg');

could you tell me how to modify the tode?

 

Thanks

0 Likes
Highlighted
Tourist
23 0 1

Hello Tom,

 

if you ceck from chrome you will see that it doesn't work

 

i tryed to substitude the code as you told me but then the store is all messed up, then there are more than one .caption so maybe i have to substitute it in a different position

 

here's the code with all the .caption in styles.css:

.caption {
  width: 100%;
  position: absolute;
  {% if settings.header_background %}
    top: 50%;
  {% else %}
    top: 55%;
  {% endif %}
  padding: 0 5%;
  @include prefix(transform, translate(0,-50%), ms webkit spec);
  @include respond-to('medium-up') {
    max-width: 960px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  @include respond-to('large-up') {
    padding: 0 30px;
  }
  @include respond-to('medium-down') {
    width: 100%;
  }
  @include respond-to('small-down') {
    margin: 20px auto;
    font-size: 3vw;
    position: static;
    transform: none;
    width: 100%;
  }
  a {
    pointer-events: all;
  }
  &.position-center {
    left: 0;
    right: 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    @include respond-to('medium-down') {
      width: 85%;
    }
    @include respond-to('small-down') {
      width: 100%;
    }
  }
  &.position-left {
    left: 0;
    right: 0;
    text-align: left;
  }
  &.position-right {
    left: 0;
    right: 0;
    text-align: right;
  }
  .pretext {
    color: {{ settings.banner_color }};
    font-family: {{ settings.slideshow_subtitle__font.family }}, {{ settings.slideshow_subtitle__font.fallback_families }};
    font-weight: {{ settings.slideshow_subtitle__font.weight }};
    text-transform: {{settings.slideshow_subtitle_font_style}};
    font-size: {{settings.slideshow_subtitle_size}}px;
    letter-spacing: {{settings.slideshow_subtitle_letter_spacing}}px;
    margin-bottom: 10px;
    {% if settings.slideshow_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}
    @include respond-to('small-down') {
      font-size: 1.4em;
      color: {{ settings.regular_color }};
      text-shadow: none;
    }
    @include respond-to('medium-down') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.5 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.2 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_subtitle_size}}px;
    }
  }
  .headline {
    color: {{ settings.banner_color }};
    font-family: {{ settings.slideshow_headline__font.family }}, {{ settings.slideshow_headline__font.fallback_families }};
    font-weight: {{ settings.slideshow_headline__font.weight }};
    font-style: {{ settings.slideshow_headline__font.style }};
    text-transform: {{ settings.slideshow_headline_font_style }};
    font-size: {{ settings.slideshow_headline_size }}px;
    letter-spacing: {{ settings.slideshow_headline_letter_spacing }}px;
    line-height: 1.4em;
    margin-bottom: 15px;
    {% if settings.slideshow_headline_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}

    @include respond-to('small-down') {
      font-size: 2.6em;
      color: {{ settings.regular_color }};
      text-shadow: none;
    }
    @include respond-to('medium-down') {
      font-size: {{settings.slideshow_headline_size | divided_by: 1.5 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_headline_size | divided_by: 1.2 }}px;
    }
    @include respond-to('large-up') {
      font-size: {{settings.slideshow_headline_size}}px;
    }
  }
  .subtitle {
    color: {{ settings.banner_color }};
    font-family: {{ settings.slideshow_subtitle__font.family }}, {{ settings.slideshow_subtitle__font.fallback_families }};
    font-weight: {{ settings.slideshow_subtitle__font.weight }};
    text-transform: {{settings.slideshow_subtitle_font_style}};
    font-style: {{settings.slideshow_subtitle_font_style}};
    font-size: {{settings.slideshow_subtitle_size}}px;
    letter-spacing: {{settings.slideshow_subtitle_letter_spacing}}px;
    position: relative;
    {% if settings.slideshow_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}

    @include respond-to('small-down') {
      font-size: 1.4em;
      color: {{ settings.regular_color }};
      text-shadow: none;
    }
    @include respond-to('medium-down') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.5 }}px;
    }
    @include respond-to('medium-up') {
      font-size: {{settings.slideshow_subtitle_size | divided_by: 1.2 }}px;
    }
    @include respond-to('large-up') {
      font-size: {{settings.slideshow_subtitle_size}}px;
    }
  }
  .pretext:empty,
  .headline:empty,
  .subtitle:empty {
    display: none;
    &:before {
      height: 0;
    }
  }
}

.subtitle p a {
  pointer-events: all;
}

.caption-content {
  display: inline-block;
  float: none;
  max-width: 60%;
  font-size: 0;
  @include respond-to('medium-down'){
    max-width: 80%;
  }
  @include respond-to('small-down') {
    width: 100%;
    max-width: 100%;
  }
  .action_button {
    margin: 10px;
    @include respond-to('medium-down'){
      // tightens up stacked buttons on iPad
      margin: 5px;
    }
    @include respond-to('small-down') {
      font-size: 16px;
    }
  }
  &.align-center {
    text-align: center;
    @include respond-to('medium-down') {
      max-width: 80%;
    }
    @include respond-to('small-down') {
      width: 100%;
      max-width: 100%;
    }
  }
  &.align-left {
    text-align: left;
    &:first-child .action_button {
      margin-left: 0;
    }
    .subtitle:before {
      margin-left: 0;
    }
  }
  &.align-right {
    text-align: right;
    &:last-child .action_button {
      margin-right: 0;
    }
    .subtitle:before {
      margin-right: 0;
    }
  }
  &.caption-background-true {
    padding: 30px;
    @include respond-to('small-down') {
      padding: 0;
    }
  }
}

/* Transparency settings for each type of caption */

$backgroundTransparency: 0.6;

.caption-background-true {
  //fallback
  background-color: {{ settings.banner_background_color }};
}

.homepage-video {
  .caption-background-true {
    background-color: rgba({{ settings.banner_background_color }}, {% if settings.video_background_transparency == blank %} 1 {% else %} $backgroundTransparency {% endif %});
    @include respond-to('small-down') {
      background-color: transparent;
    }
  }
}

.caption-background-true {
  background-color: {{ settings.banner_background_color }};
  &.caption-transparency-true {
    background-color: rgba({{ settings.banner_background_color }}, $backgroundTransparency);
    @include respond-to('small-down') {
      background-color: transparent;
    }
  }
  @include respond-to('small-down') {
    background-color: transparent;
  }
}

a.highlight-false, input[type="button"].highlight-false,
a.highlight-true, input[type="button"].highlight-true,
a.continue-button {
  background-color: rgba(255,255,255,0);
  color: {{ settings.banner_button_color }};
  border: 1px solid {{ settings.banner_button_color }};
  transition: background-color 0.2s linear, color 0.2s linear;
  margin: 25px 0;

  &:hover {
    background-color: {{ settings.banner_button_color }};
    border-color: {{ settings.banner_button_color }};

    {% if settings.caption_background %}
      color: {{ settings.banner_background_color }};
    {% else %}
      @if (lightness({{ settings.banner_color }}) > 50) {
        color: #333;
      } @else {
        color: #fff;
      }
    {% endif %}
  }

  @include respond-to('small-down') {
    color: {{ settings.regular_color }};
    border-color: {{ settings.regular_color }};
    background-color: transparent;
    &:hover {
      border-color: {{ settings.regular_color }};
      background-color: {{ settings.regular_color }};
      @if (lightness({{ settings.regular_color }}) > 50) {
        color: #333;
      } @else {
        color: #fff;
      }
    }
  }
}

a.highlight-true, input[type="button"].highlight-true {
  background-color: {{ settings.banner_button_color }};
  border-color: {{ settings.banner_button_color }};

  {% if settings.caption_background %}
    color: {{ settings.banner_background_color }};
  {% else %}
    @if (lightness({{ settings.banner_button_color }}) > 50) {
      color: #333;
    } @else {
      color: #fff;
    }
  {% endif %}

  @include respond-to('small-down') {
    border-color: {{ settings.regular_color }};
    background-color: {{ settings.regular_color }};
    @if (lightness({{ settings.regular_color }}) > 50) {
      color: #333;
    } @else {
      color: #fff;
    }
  }
}

a.continue-button,
a.highlight-false--dark,
input[type="button"].highlight-false--dark {
  color: {{ settings.regular_color }};
  border-color: {{ settings.regular_color }};
  background-color: transparent;
  &:hover {
    border-color: {{ settings.regular_color }};
    background-color: {{ settings.regular_color }};
    @if (lightness({{ settings.regular_color }}) > 50) {
      color: #333;
    } @else {
      color: #fff;
    }
  }
}

/* Slideshow */

.homepage-slideshow {
  .gallery-cell:not(:first-child) {
    height: 0;
  }
}

.homepage-slideshow.flickity-enabled {
  .gallery-cell:not(:first-child) {
    height: auto;
  }
}

.homepage-slideshow {
  a.highlight-false, input[type="button"].highlight-false,
  a.highlight-true, input[type="button"].highlight-true {
    &:hover {
      {% if settings.slideshow_text_background %}
        color: {{ settings.banner_background_color }};
      {% else %}
        @if (lightness({{ settings.banner_color }}) > 50) {
          color: #333;
        } @else {
          color: #fff;
        }
      {% endif %}
    }
    @include respond-to('small-down') {
      color: {{ settings.regular_color }};
      border-color: {{ settings.regular_color }};
      background-color: transparent;
      &:hover {
        border-color: {{ settings.regular_color }};
        background-color: {{ settings.regular_color }};
        @if (lightness({{ settings.regular_color }}) > 50) {
          color: #333;
        } @else {
          color: #fff;
        }
      }
    }
  }

  a.highlight-true, input[type="button"].highlight-true {
    background-color: {{ settings.banner_color }};
    border-color: {{ settings.banner_color }};

    {% if settings.slideshow_text_background %}
      color: {{ settings.banner_background_color }};
    {% else %}
      @if (lightness({{ settings.banner_color }}) > 50) {
          color: #333;
      } @else {
        color: #fff;
      }
    {% endif %}

    @include respond-to('small-down') {
      border-color: {{ settings.regular_color }};
      background-color: {{ settings.regular_color }};
      @if (lightness({{ settings.regular_color }}) > 50) {
        color: #333;
      } @else {
        color: #fff;
      }
    }
  }
}

// Contact Section
.contact-form_position--right {
  float: right;
}


/* #Account
================================================== */

.account-header-logout {
  text-align: right;
  text-transform: uppercase;
}

.account-sidebar {
  border-right: 1px solid {{ settings.headline_border_color }};
  box-sizing: border-box;
  padding-right: 10px;
  @include respond-to('medium-down'){
    border: 0;
    padding-right: 0;
  }
}

.customers-addresses {
  .account-sidebar {
    border-right: 0;
    padding-right: 0;
  }
  .account-main {
    box-sizing: border-box;
    border-left: 1px solid {{ settings.headline_border_color }};
    padding-left: 20px;
    @include respond-to('medium-down'){
      border: 0;
      padding-left: 0;
    }
  }
}

.action_bottom .note {
  vertical-align: middle;
  line-height: 40px;
}

.address_title {
  margin-bottom: 0;
  padding-bottom: 0;
}

.action_edit {
  background-color: {{ settings.btn_color }};
  border-color: {{ settings.btn_color }};
  a {
    color: {{ settings.btn_text_color }};
  }
  &:hover {
    background-color: {{ settings.btn_color }};
    border-color: {{ settings.btn_color }};
    a {
      color: {{ settings.btn_text_color }};
    }
  }
}

.action_delete {
  background-color: {{ settings.btn_text_color }};
  border-color: {{ settings.btn_color }};
  a {
    color: {{ settings.btn_color }};
  }
  &:hover {
    background-color: {{ settings.btn_color }};
    border-color: {{ settings.btn_color }};
    a {
      color: {{ settings.btn_text_color }};
    }
  }
}


/* #Home page - collection in detail
================================================== */

.collection-in-detail {
  .section {
    margin: 0;
  }
  .half {
    width: 50%;
    float: left;
    position: relative;
    @include respond-to('medium-down'){
      width: 100%;
    }
  }
  .product-details {
    padding: 40px 2rem;
  }

  .frontpage_product_stagger--true {
    .section:nth-child(even) .half {
      float: right;
    }
  }

  .product_gallery.multi-image {
    width: 100%;
    display: block;
    margin-bottom: 0;
  }
}

/* #Home page - text columns with images
================================================== */

.text-columns-with-images-section {
  .border-style--box {
    padding: 10%;
    border: 1px solid {{ settings.headline_border_color }};
  }
  .border-style--quote {
    padding-left: 20px;
    border-left: 1px solid {{ settings.headline_border_color }};
    margin-bottom: 10%;
  }
  .large_text {
    @include headline-style($font-size-column);
  }
  .text-column {
    margin-bottom: 25px;
  }
  a.continue-button {
    margin-top: 10px;
  }
  h2.title + .feature_divider {
    margin-bottom: 40px;
  }
}

/* OOTS Content Creator slideshow */
.flexslider {
  img {
    display: block;
    margin: 0 auto;
  }
}

/* #Home page - slideshow
================================================== */

.homepage-slideshow:hover .flickity-prev-next-button, .testimonial-section:hover .flickity-prev-next-button {
  opacity: 0.5;
}

.homepage-slideshow.text-animation--false .caption {
  opacity: 0;
  transition: opacity 0.3s linear;
}

.homepage-slideshow.text-animation--false.flickity-enabled .caption {
  opacity: 1;
}

.text-animation--true {
  .caption-content {
    opacity: 0;
    @include respond-to('small-down') {
      opacity: 1;
      animation-duration: 0s;
    }
  }
}

.homepage-slideshow,
.testimonial-section {
  position: relative;
  overflow: hidden;
  &.single-image {
    .flickity-prev-next-button {
      display: none;
    }
    .flickity-page-dots {
      display: none;
    }
  }
  .gallery-cell {
    width: 100%;
    {% if settings.image_loading_style != 'color' %}
      background-color: {{ settings.banner_placeholder_background_color }};
    {% endif %}
    @include respond-to('small-down') {
      background-color: transparent;
    }
    img {
      width: 100%;
      display: block;
    }
  }
  .flickity-prev-next-button {
    opacity: 0;
    width: 5%;
    height: 100%;
    border-radius: 0;
    @include respond-to('medium-up') {
      opacity: 0;
    }
  }
  .flickity-page-dots {
    bottom: 2em;
    display: none;
    @include respond-to('medium-up') {
      display: block;
    }
    .dot {
      height: 4px;
      width: 40px;
      margin: 0;
      border-radius: 0;
      background: {{ settings.arrow_color }}
    }
    @include respond-to('small-down') {
      display: block;
      bottom: 5px;
    }
  }
}

/* Home - product slider */

.js-product-slider {
  .product_clear {
    display: none;
  }
  .column.alpha, .columns.alpha {
    margin: 0 10px 0 20px;
  }
  .flickity-prev-next-button {
    border-radius: 0;
  }
}

/* #Home page - image with text
================================================== */

.image-with-text .featured-link--half a[href] img {
  box-shadow: #000 0em 0em 0em;
  transition: opacity 0.2s linear;
}

.image-with-text .featured-link--half:hover a[href] img.lazyloaded {
  opacity: 0.8;
}

.standard--width .image-with-text .featured-link--image,
.full-width--false.image-with-text .featured-link--image {
  background-color: transparent;
}

.featured-link--section {
  width: 100%;
  box-sizing: border-box;
  float: left;
  min-height: 100px;
  @include flexbox();
  @include flex-wrap(wrap);
}

.featured-link--half.featured-link__imageHalf {
  background-color: transparent;
  text-align: center;
  a {
    width:100%;
    display: block;
    img {
      width: 100%;
    }
  }
}

.featured-link--half {
  box-sizing: border-box;
  float: left;
  width: 50%;
  position: relative;
  text-align: center;
  display: table;
  @include flex(1 0 auto);
  @include flexbox();
  @include align-items(center);
  @include justify-content(center);
  background-color: {{settings.featured_links_background}};
  @include respond-to('small-down') {
    width: 100%;
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 100%;
        -ms-flex: 1 0 100%;
            flex: 1 0 100%;
  }
  .featured-link--wrap {
    width: 100%;
    height: 100%; /* Fix for SVG set at 2 images per row */
    @include flex(0 0 auto);
  }
  img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    @include respond-to('small-down') {
      width: 100%;
      max-width: auto;
    }
  }
  .info {
    display: inline-block;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    &.text-align--right {
      text-align: right;
      .description:before {
        margin-right: 0;
      }
    }
    &.text-align--left {
      text-align: left;
      .description:before {
        margin-left: 0;
      }
    }
    @include respond-to('small-down') {
      position: static;
      transform: translateY(0);
      -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
      padding: 2em 0;
    }
  }
  .collection_title {
    margin-bottom: 15px;
    display: block;
    color: set-text-color({{settings.featured_links_background}});
  }
  .description {
    position: relative;
    font-size: {{ settings.regular_font_size }}px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: set-text-color({{settings.featured_links_background}});
    @include respond-to('medium-down'){
     font-size: 2vw;
    }
    @include respond-to('small-down') {
     font-size: inherit;
    }
    @include respond-to('widescreen-up') {
      font-size: inherit;
    }
  }
  .button {
    height: auto;
    background-color: transparent;
    color: set-text-color({{settings.featured_links_background}});
    border: 1px solid set-text-color({{settings.featured_links_background}});
    transition: background-color 0.2s cubic-bezier(0.55, 0.09, 0.68, 0.53), color 0.3s linear, border 0.2s cubic-bezier(0.55, 0.09, 0.68, 0.53);
    line-height: 1.5;
    padding-top: 10px;
    padding-bottom: 10px;
    &:hover {
      background-color: set-text-color({{settings.featured_links_background}});
      color: {{settings.featured_links_background}};
      border: 1px solid set-text-color({{settings.featured_links_background}});
    }
  }
}

.image-align--right.featured_collections.across-1 .featured-link--section:nth-child(odd) {
  @include flex-direction(row-reverse);
  .featured-link--half {
    float: right;
  }
}

.image-align--left.featured_collections.across-1 .featured-link--section:nth-child(even) {
  @include flex-direction(row-reverse);
  .featured-link--half {
    float: right;
  }
}

.featured_collections.across-2 {
  @include flexbox();
  @include flex-wrap(wrap);
}

.image-align--left.featured_collections.across-2 {
  .featured-link--section {
    @include flex-direction(row);
    @include respond-to('medium-down'){
      &:nth-of-type(2n){
        @include flex-direction(row-reverse);
      }
    }
  }
  .featured-link--image:nth-of-type(4n+3) {
    @include flex-direction(row-reverse);
    @include respond-to('medium-down'){
      @include flex-direction(row);
    }
  }
  .featured-link--image:nth-of-type(4n+4) {
    @include flex-direction(row-reverse);
  }
}

.image-align--right.featured_collections.across-2 {
  .featured-link--section {
    @include flex-direction(row-reverse);
    @include respond-to('medium-down'){
      &:nth-of-type(2n){
        @include flex-direction(row);
      }
    }
  }
  .featured-link--image:nth-of-type(4n+3) {
    @include flex-direction(row);
    @include respond-to('medium-down'){
      @include flex-direction(row-reverse);
    }
  }
  .featured-link--image:nth-of-type(4n+4) {
    @include flex-direction(row);
  }
}

.featured_collections.across-2 {
  .featured-link--section {
    width: 50%;
    @include respond-to('medium-down') {
      width: 100%;
    }
  }
  .featured-link--half {
    @include respond-to('medium-down') {
      width: 50%;
    }
    @include respond-to('small-down') {
      width: 100%;
    }
  }
  .description {
    font-size: 1.2vw;
    @include respond-to('medium-down'){
     font-size: inherit;
    }
  }
  .button {
    font-size: 1.2vw;
    @include respond-to('small-down') {
      font-size: 14px;
    }
  }
  .featured-link--image:nth-of-type(2n+1) {
    clear: both;
  }
  .featured-link--image:nth-of-type(2n+2) .featured-link--half {
    float: left;
    @include respond-to('medium-down'){
      float: right;
    }
  }
  .featured-link--image:nth-of-type(3n+3) .featured-link--half {
    float: right;
    @include respond-to('medium-down'){
      float: left;
    }
  }
  .featured-link--image:nth-of-type(4n+4) .featured-link--half {
    float: right;
  }
}

/* #Home page - featured products
================================================== */

.featured-products-section {
  .product_gallery {
    margin-bottom: 0;
    padding-bottom: 0;
    img {
      width: 100%;
      vertical-align: bottom;
    }
  }
}

/* #Home page - featured promotions
================================================== */

.promo-animation--true {
  opacity: 0;
}

.featured-promotions {
  .feature-section {
    text-align: center;
    float: left;
    margin: 0 10px 10px;
    position: relative;
    @include respond-to('medium-down'){
      opacity: 1;
    }
    .link-promo {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: block;
    }
    .feature-inner {
      display: block;
      position: relative;
      overflow: hidden;
    }
    .feature-style--circle {
      border-radius: 50%;
      img {
        border-radius: 50%;
      }
    }
    .feature-style--rounded {
      border-radius: 10px;
      img {
        border-radius: 10px;
      }
    }
    .feature-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      transition: background-color 0.25s linear;
      @include respond-to('medium-down'){
        {% if settings.featured_promotions_mobile_background %}
          @include background-opacity({{ settings.featured_promotions_background }}, 0.5);
        {% endif %}
      }
    }
    .feature-wrap {
      @include vertical-alignment;
      position: absolute;
      width: 80%;
      margin: 0 auto;
      left: 0;
      right: 0;
      pointer-events: none;
    }
    .feature-details {
      display: none;
      opacity: 0;
      transition: opacity 0.3s linear;
      @include respond-to('medium-down'){
        opacity: 1;
        display: block !important;
      }
      &.reveal-details {
        opacity: 1;
      }
      .button {
        margin-top: 15px;
      }
    }
    .description {
      color: {{ settings.featured_promotions_color }};
      transition: all 0.3s linear;
      margin-bottom: 0;
    }
    .description a {
      pointer-events: auto;
    }
    &.title-overlay-true {
      .title {
        transition: all 0.3s linear;
        color: {{ settings.featured_promotions_color }};
        @include respond-to('medium-down'){
          margin-bottom: 10px;
        }
        &:after {
          content: '';
          display: block;
          height: 1px;
          width: 0;
          background: {{ settings.featured_promotions_color }};
          transition: width .5s ease, background-color .5s ease;
          margin: 10px auto auto auto;
          @include respond-to('medium-down'){
            display: none;
          }
        }
      }
    }
    &.title-overlay-false {
      .feature-wrap .title {
        display: none;
      }
    }
    &:hover .feature-overlay {
      @include background-opacity({{ settings.featured_promotions_background }}, 0.5);
      @include respond-to('medium-down'){
        {% unless settings.featured_promotions_mobile_background %}
          background: transparent;
        {% endunless %}
      }
    }
    &.title-overlay-true:hover .title:after {
      width: 50%;
      background: {{ settings.featured_promotions_color_hover }};
    }
    &.title-overlay-true:hover .title {
      color: {{ settings.featured_promotions_color_hover }};
    }
    &.title-overlay-true:hover .description {
      color: {{ settings.featured_promotions_color_hover }};
    }
    &.title-overlay-false:hover .description {
      color: {{ settings.featured_promotions_color_hover }};
    }
    img {
      width: 100%;
      display: block;
      box-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
    }
  }
}

$i: 1;
$delay: 0;
@while $i < 13 {
  .promo-#{$i} {
    -webkit-animation-delay: $delay + s;
    animation-delay: $delay + s;
  }
  $i: $i + 1;
  $delay: $delay + 0.3;
}

.featured-promotions.full-width--false {
  .promo-per-row-2 {
    .feature-section {
      width: calc(50% - 20px);
      @include respond-to('medium-down'){
        width: 100%;
        margin: 0 0 10px;
      }
      &:nth-child(2n+1){
        clear: both;
      }
    }
  }

  .promo-per-row-3 {
    .feature-section {
      width: calc(33.3333% - 20px);
      @include respond-to('medium-down'){
        width: 100%;
        margin: 0 0 10px;
      }
      &:nth-child(3n+1){
        clear: both;
      }
    }
  }

  .promo-per-row-4 {
    .feature-section {
      width: calc(25% - 20px);
      &:nth-child(4n+1){
        clear: both;
      }
      @include respond-to('medium-down') {
        width: calc(50% - 20px);
        &:nth-child(2n+1){
          clear: both;
        }
      }
      @include respond-to('small-down') {
        width: 100%;
        margin: 0 0 10px;
      }
    }
  }
}

.featured-promotions.full-width--true {
  padding-top: 0;
  .js-featured-promotions {
    @include flexbox();
    @include flex-wrap(wrap);
  }
  .promo-per-row-2 {
    .feature-section {
      width: 50%;
      margin: 0;
      @include respond-to('small-down') {
        width: 100%;
      }
    }
  }
  .promo-per-row-3 {
    .feature-section {
      width: 33.333333%;
      margin: 0;
      @include respond-to('medium-down') {
        width: 100%;
      }
    }
  }
  .promo-per-row-4 {
    .feature-section {
      width: 25%;
      margin: 0;
      @include respond-to('medium-down') {
        width: 50%;
      }
      @include respond-to('small-down') {
        width: 100%;
      }
    }
  }
}

/* #Home page - featured collection
================================================== */

.featured-collection__description.section {
  padding: 0 20px;
  margin: 20px 0;
}

.featured-collection__products.container {
  padding: 0;
}


/* #Home page - image with text overlay
================================================== */

.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  {% if settings.image_loading_style != 'color' %}
    background-color: {{ settings.banner_placeholder_background_color }};
  {% endif %}

  @include respond-to('small-down') {
    max-height: inherit;
    background-color: transparent;
  }
  img {
    width: 100%;
    display: block;
  }
}


/* #Home page - video
================================================== */

.block__featured_video,
.video-section {
  .caption {
    z-index: 30;
    pointer-events: none;
  }
  @include respond-to('small-down'){
    .caption .action_button {
      display: none;
    }
    .caption {
      margin: 0;
      height: 0;
    }
    .caption.caption--has-content {
      margin: 20px 0;
      height: auto;
    }
  }
}

.homepage-video {
  position: relative;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  {% if settings.image_loading_style != 'color' %}
    background-color: {{ settings.banner_placeholder_background_color }};
  {% endif %}
  @include respond-to('small-down') {
    background-color: transparent;
  }
  img {
    width: 100%;
    display: block;
  }
  iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
  }
  video {
    background-color: {{ settings.shop_bg_color }};
  }
  video[poster] {
    object-fit: cover;
  }
  video.video-autoplay--true.html-video {
    display: none;
  }
  .homepage-video--media {
    width: 100%;
    height: auto;
    padding-top: 0;
  }
  .placeholder-image--true a.video__play-button {
    pointer-events: none;
  }
  .caption.text-on-video {
    pointer-events: none;
  }
  @include respond-to('small-down') {
    .caption.text-on-video {
      position: absolute;
      @include prefix(transform, translateY(-50%), ms webkit spec);
      margin: 0;
      a.highlight-false {
        color: white;
        border-color: white;
      }
      .headline,
      .pretext,
      .subtitle {
        display: none;
      }
    }
  }
}

.homepage-video .mobile-video__buttons {
  display: block;
  text-align: center;
  top: 55%;
  @include prefix(transform, translateY(-50%), ms webkit spec);
  width: 100%;
  position: absolute;
  &.text-on-video { z-index: 20; }
  a.action_button {
    border-color: white;
    background-color: transparent;
    color: white;
  }
  @include respond-to('small-up') {
    display: none;
  }
}

.darken-video {
  display: block;
  background: rgba(0,0,0,0.3);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  pointer-events: none;
  z-index: 20;
}

/* #Page Banners
================================================== */

.page_banner {
  overflow: hidden;
  max-height: 100vh;
  {% if settings.header_background == false %}
    margin-top: 40px;
  {% endif %}
}

.caption.captionOverlay--true {
  max-width: 960px;
  left: 0;
  right: 0;
  margin: 0 auto;
  position: absolute;
  {% if settings.header_background %}
    top: 50%;
  {% else %}
    top: 55%;
  {% endif %}
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  z-index: 3;
  .headline, .subtitle {
    color: {{ settings.banner_color }};
    {% if settings.slideshow_shadow != blank %}
      text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    {% endif %}
  }
  @include respond-to('medium-down'){
    top: 50%;
  }
}

.dark-overlay-true:after{
  content: '';
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}


/* #Font-Face
================================================== */
/*  This is the proper syntax for an @font-face file.
    Upload your font files to Assets and then
    copy your FontName into code below and remove
    comment brackets */

/*  @font-face {
      font-family: 'FontName';
      src: url('FontName.eot');
      src: url('FontName.eot?iefix') format('eot'),
           url('FontName.woff') format('woff'),
           url('FontName.ttf') format('truetype'),
           url('FontName.svg#webfontZam02nTh') format('svg');

So it will be easyer for you to spot the right place where to substitute it

 

Thanks

0 Likes