Jump to content

Box-shadow never shows up through custom CSS, almost all other properties do.

Recommended Posts

Posted

I use a good amount of custom CSS on my site, but box-shadow never comes through on my published page. I'm able to see it while editing and it all behaves exactly as expected. Then I save and go to my published site and any other changes I've made appear, except box-shadow.

 

Does anyone know why this happens? Curious if there's some error or if I'm just totally missing something important. I've also tried using !important and not using it and it still doesn't work.

 

I'm using the .plyr class selector to target my video in this instance, and everything shows except box-shadow.

.plyr {
  border-radius: 0.7em !important;
  box-shadow: 0px 50px 50px #00000050 !important;
}

.plyr:hover {
  box-shadow: 0px 3px 5px #00000050;
  translate: 0px -5px 0px;
  transition: ease 0.2s;
}

Would appreciate any help or insight into my issue here!

Posted

Can you share your website URL?

Try using this class instead of .plyr:

.sqs-video-wrapper

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 2 weeks later...
Posted
10 hours ago, RicheCreative said:

But I still have issues on other things like buttons or images.

Like what?

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Box shadows never show up in any browser when I'm on the actual website, however they are visible within the editor.

 

For example, on another site I use this custom css: 

.user-items-list-carousel__media-inner  {
  border-radius: 1em!important;
  box-shadow: #00000030 0px 10px 20px;
}

And each carousel photo looks like this in my editor preview:

image.thumb.png.fbbf2f6c9e69618ba9d0f87a6758f462.png

Which is exactly what I want it to look like.

 

However once I load it in chrome, chrome incognito mode, or safari in private browsing it looks like this:

image.thumb.png.3891562da7e86cc8076b4af6ce817daa.png

And inspect shows this:

image.png.7b209040ada96f7cb1ee5746cc57ffa5.png

Saying that it's an invalid property value.

 

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.