Jump to content

How do I stylize a password protected page? Specifically the password input box.

Recommended Posts

Site URL: https://www.kellyna.co/projects

I have my portfolio under password protection and I can't seem to figure out how to change the colors of the text input box. How do I change:

  • the box outline color (it shows up as white when selected)
  • the placeholder text color, font, and size
  • and the arrow color?

Note that I don't have code injection on my plan.

Thank you!

Link to comment
  • Replies 1
  • Views 332
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

All code add to Settings > Advanced > Code Injection > Lock Screen or Lock Page

#1. Placeholder

<style>
input[type="password"]::placeholder {
    background-color: red !important;
    color: white !important;
    font-size: 30px;
    padding-top: 10px !important;
    padding-left: 20px;
    padding-right: 30px;
    padding-bottom: 50px !important;
}
</style>

#2. Box outline

<style>
  /* Password field border */
input[type="password"] {
    border: 3px solid green;
}
</style>

#3. Arrow

<style>
  /* Submit arrow icon */
.arrow-icon .icon-wrapper {
    opacity: 1 !important;
    fill: violet !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.