Created
July 22, 2012 17:05
-
-
Save aokolish/3160298 to your computer and use it in GitHub Desktop.
boostrap required input override to remove red
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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