Jump to content

Custom CSS Code Blur Form Lightbox Background

Recommended Posts

Posted

Hi,

I would like to have the frosted-glass blurry transparency I have on my site's header implemented elsewhere. I've been trying to get this to work on the Form Lightbox, but nothing seems to work for me.

Ideally, the user would hit "Feedback Form", Lightbox appears, and the rest of the site in the background blurs beautifully.

OR if it's not too crazy... to have the Lightbox appear, and the Lightbox itself is blurred, like the Lightbox is acting as a pane of frosted glass.

You can see the page I'm on about here: https://oddness.studio/wrap-1

I suck at CSS and struggling to figure it out. Anyone with suggestions will have my heart.

  • Replies 4
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hi,

Thank you so much for helping me out with this! Unfortunately, I added the code and haven't seen a difference.

Any ideas?

 

Screenshot 2023-08-15 at 16.25.02.png

Posted (edited)

@oddness Try this code:

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content {
    background: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

I think white text color inside your feedback form would look much better. Here's a code snippet to change the text color inside your feedback form to white.

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .form-wrapper {
	color: #fff !important;
}
.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .lightbox-close  {
	color: #fff !important;
}
.sqs-modal-lightbox .sqs-modal-lightbox-content .sqs-button-element--primary {
	color: #fff !important;
	padding-left: 0 !important;
}

Let me know how it goes. Thanks! 

Edited by Lesum

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Posted (edited)

This worked Beautifully.

However I noticed that the mobile version looks like this? 😞

Any ideas on how to fix this??

 

Screenshot 2023-08-18 at 11.44.12.png

Edited by oddness

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.