add html5 invalid state for super fancy errors via browser
This commit is contained in:
parent
b6d50c892d
commit
7728f7b824
3 changed files with 25 additions and 1 deletions
12
bootstrap.css
vendored
12
bootstrap.css
vendored
|
|
@ -6,7 +6,7 @@
|
|||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||
* Date: Sat Jan 7 04:20:37 PST 2012
|
||||
* Date: Sat Jan 7 04:26:09 PST 2012
|
||||
*/
|
||||
html, body {
|
||||
margin: 0;
|
||||
|
|
@ -824,6 +824,16 @@ textarea[readonly] {
|
|||
background-color: #bcddbc;
|
||||
border-color: #468847;
|
||||
}
|
||||
input:invalid, textarea:invalid, select:invalid {
|
||||
color: #b94a48;
|
||||
border-color: #ee5f5b;
|
||||
}
|
||||
input:invalid:focus, textarea:invalid:focus, select:invalid:focus {
|
||||
border-color: #e9322d;
|
||||
-webkit-box-shadow: 0 0 6px #f8b9b7;
|
||||
-moz-box-shadow: 0 0 6px #f8b9b7;
|
||||
box-shadow: 0 0 6px #f8b9b7;
|
||||
}
|
||||
.form-actions {
|
||||
padding: 17px 20px 18px;
|
||||
margin-top: 18px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue