Jump to content

Code for displaying logos messes up the possibility to change colors in the theme editior.

Recommended Posts

The code I have used is to make logos black and white and show color on hover. But I got the feeling that there is something wrong with this code. Help would be greatly appriciated. 

 

.section-border{opacity:0!important;}
.page-section, .section-background{background:transparent!important;}
.site-wrapper{background: linear-gradient(220deg, #CEC3FF, #cec3ff 10%, #ffffff 50%)!important;}


.list-item-content {  margin-top:-58%;  background:linear-gradient(to bottom, rgba(0,0,0,0),rgba(0,0,0,0) 25%, 75%);   padding: 1rem;  transition: all 0.5s;  z-index:99;  opacity:0}

.list-item:hover .list-item-content { transition: all 1s; opacity:1}.list-item-content *{color:#FFF!important}

.list-item-media {transition: all 1s;filter:grayscale(1);}.list-item:hover  .list-item-media {transition: all 1s;filter:grayscale(0)!important;}

@media only screen and(max-width:640px){ .list-item-content { 
opacity:1!important;
margin-top:-60%; } 
.list-item-media{ filter:grayscale(0)!important;}
  .user-items-list-container {display: inline-block; margin: 0; float: left; display:flex; flex-direction: row; flex-wrap: nowrap; grid-auto-flow: column;}}

 

Link to comment
  • Replies 4
  • Views 868
  • Created
  • Last Reply

Top Posters In This Topic

Quote

messes up the possibility to change colors in the theme editior

In what way?

I can't see anything specifically wrong with your code, though it may be having broader effects than you are wanting?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Looks like the top of the code is changing the background colour of the page which will override what you set in site styles. It's not set to just your logo section.

Can you share a link to your set and let us know what you're trying to change?

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment

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.