Jump to content

Fix submit button styling on cover page form

Recommended Posts

I need help fixing my custom CSS that is no longer working properly for the form block on this page: https://stephanie-elizabeth.com/inner-sanctuary-guided-meditation

This is the code I have in place currently:

// lightbox form styling //
.form-wrapper {
  border: 2px solid #F4EEE8;
    padding: 20px;  
  background: #F4EEE8;
}

.form-wrapper .field-list .field .field-element {
  padding: 14px;
  background: #FFFEFA;
  border-radius: 0;
}

.form-wrapper .field-list .title {
  display: block;
  color: #4D4472;
}

.form-wrapper .field-list .field .caption {
  color: #4D4472;
}

.form-wrapper .field-list .description {
  font-style: italic;
  color: #4D4472;
}

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .lightbox-close {
    color: #4D4472;
}

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .form-wrapper .form-title {
  color: #A991AE;}

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .form-wrapper {
    color: #4D4472;
}


.form-wrapper input[type=submit] {
    background-color: #A991AE;
 font-family: Montserrat;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .3em;
  border-radius: 5em;
 }
  
.form-wrapper input[type=submit]:hover {box-shadow: 0px 2px 5px rgba(0,0,0,.3)}

 

This button looks the way it should:

image.png.e47771cb9e79fdcdbe739fd989877210.png

I want this "Get Access Now" submit button on the form to look the same as the "Download the Meditation" button above, and previously it did.  But for some reason the button background color is no longer displaying properly:

image.thumb.png.e748e76d3359cb06a02c1fa3691f74c4.png

What do I need to tweak to get this fixed?

Link to comment
  • Replies 7
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
On 2/11/2024 at 10:22 AM, tuanphan said:

Try this code to Custom CSS box

.sqs-slide-wrapper[data-slide-type="cover-page"] .sso-button-style-outline~.sqs-modal-lightbox .form-wrapper input[type=submit] {
    background-color: #a890ad !important;
}

 

Unfortunately this did not work either and the issue is still present.

Link to comment
On 2/29/2024 at 3:09 AM, sebriggs said:

Unfortunately this did not work either and the issue is still present.

I forgot, code in Cover Page, you need to add to Cover Page Header Code Injection, not Custom CSS

<style>
  .sqs-slide-wrapper[data-slide-type="cover-page"] .sso-button-style-outline~.sqs-modal-lightbox .form-wrapper input[type=submit] {
    background-color: #a890ad !important;
}
</style>

 

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

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.