carlheyerdahl Posted February 9, 2021 Share Posted February 9, 2021 (edited) 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; } } } } Edited February 9, 2021 by carlheyerdahl Link to comment
tuanphan Posted February 13, 2021 Share Posted February 13, 2021 Can you add code again? Then we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment