Jump to content

Custom CSS only showing up while the Editor is open

Recommended Posts

Site URL: https://dogfish-rhubarb-3kts.squarespace.com/

 I am having a similar problem with change showing when the CSS editor is live, but not on the actual page. I am trying to customize a button so it is just text, no outline or background, and no background color on hover or click. It works great when the editor is live but otherwise it still flashes a white background on hover/click: 

This is the code I have added to the Design/Custom CSS editor:
 

.sqs-block-button .sqs-block-button-element--large {
   border: 0;
   color: black;
   }

.sqs-block-button .sqs-block-button-element--large:hover {
 background-color: #ffffff00!important;
      opacity: 1 !important;
   color: #fefefe !important;
   
}

.sqs-block-button .sqs-block-button-element--large {
   padding: 4rem !important;
      }

If anyone could advise what I did wrong I would really appreciate it. If it helps to check it out on the site you can check it out here. The very first section has one of the buttons with the issue ("Oculus Quest 2").

https://dogfish-rhubarb-3kts.squarespace.com/

password:  havealook

Thanks!
Brett

Hover_Editor_Active.jpg

Hover_Editor_Closed.jpg

Link to comment

your code conflict together

try this new code

.sqs-block-button .sqs-block-button-element--large {
    border: 0 !important;
    color: #000 !important;
}

.sqs-block-button .sqs-block-button-element--large:hover {
    background-color: #fff !important;
    opacity: 1 !important;
    color: black !important
}

.sqs-block-button .sqs-block-button-element--large {
    padding: 4rem !important;
}

image.thumb.png.b8a94b69c7210564af388e5007e1355d.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

@tuanphan Thank you! That didn't quite get it - made the type go black and the background white on hover, but I played with it and got it working as I was hoping for. Used this code: 

.sqs-block-button .sqs-block-button-element--large {
    border: 0 !important;
    color: white !important;
}

.sqs-block-button .sqs-block-button-element--large:hover {
    background-color: #ffffff00 !important;
    opacity: 1 !important;
    color: #ededed !important
}

.sqs-block-button .sqs-block-button-element--large {
    padding: 4rem !important;
  color: white;
  
}

I really appreciate the help with it.

/b

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.