Jump to content

Can anyone help me figure out why this code is not changing the title text color?

Recommended Posts

Site URL: https://carlheyerdahlphotography.com/#recent-work

I am trying to implement this custom CSS to move the summary content titles over the images with a dimming effect. It all works except the text color does not change to white, but rather stays as the site wide color that I use for when it is below the image. This is the code block I am using. 

 

#block-yui_3_17_2_1_1554844439456_8066 {

  @media screen and (min-width:800px){

  .summary-item {

    position: relative;

 

    img {

      transition: all .5s ease!important;

    }

 

    .summary-content {

      position: absolute;

      color: #fff!important;

      top: 50%;

      left: 50%;

      opacity: 0;

      pointer-events: none;

      transition: all .5s ease;

      transform: translate(-50%, -50%);

      -webkit-transform: translate(-50%, -50%);

      -ms-transform: translate(-50%, -50%);

      -moz-transform: translate(-50%, -50%);

    }

    .summary-title, .summary-metadata--primary, .summary-metadata--secondary, .summary-excerpt   {

      color: #fff!important;

    }

  }

  .summary-item:hover {

    img {

      -webkit-filter: brightness(50%);

      filter: brightness(50%);

    }

 

    .summary-content {

      opacity: 1;

    }

  }

}

}

Screen Shot 2021-02-09 at 1.34.57 PM.png

Edited by carlheyerdahl
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.