Jump to content

Change color of contact form boxes (Mentor)

Go to solution Solved by tuanphan,

Recommended Posts

Hi everyone,

am working on a site with a dark blue background using the Mentor template (which should be Brine template family) and for some illogical reason the text inside the boxes in the contact form is linked to the body text colour of my site. Which means that if the text is white, the text inside the contact form will also be white.

I tried to work around the issue by changing the color of the boxes themselves, but it seems like the custom CSS just doesn't respond to my commands.

.form-wrapper .field-list .field .field-element{
background: transparent; border_bottom: 2px solid white!important
}

As you can imagine, the previous code I tried for changing the color of the boxes was this one:

.form-wrapper .field-list .field .field-element{color: #101e2b;}

Any help with the code I need to enter would be really appreciated.

Thanks,
Jacopo

Link to comment
On 5/6/2023 at 4:28 AM, tuanphan said:

Like this?

.field input, .field texarea, .field select {
    background: transparent;
    border-bottom: 2px solid white !important;
}

image.thumb.png.ae8ce170ab50299ab7deecc104fd8228.png

Yes, that's it! Only change I made was "textarea" since there was a typo, but thank you so much!

Link to comment
  • Solution
On 5/8/2023 at 4:43 PM, Cajak said:

Yes, that's it! Only change I made was "textarea" since there was a typo, but thank you so much!

Use this new code, the current code affects on checkbox box

.field input:not([type="checkbox"]), .field textarea, .field select {
    background: transparent;
    border-bottom: 2px solid #fff !important;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.