Skip to content

Instantly share code, notes, and snippets.

@aokolish
Created July 22, 2012 17:05
Show Gist options
  • Save aokolish/3160298 to your computer and use it in GitHub Desktop.
Save aokolish/3160298 to your computer and use it in GitHub Desktop.
boostrap required input override to remove red
//make an 'invalid', required input look like a normal form field
//with plain bootstrap, this field shows up as red before the user has submitted the form
//ideally,it would not be considered :invalid until after the form has been submitted
//alas, this is not currently the case
input:focus:required:invalid, textarea:focus:required:invalid, select:focus:required:invalid {
color: #555;
border-color: $inputBorder;
&:focus {
border-color: rgba(82,168,236,.8);
@include box-shadow(#{inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment