Created
August 30, 2011 04:02
-
-
Save zaki/1180154 to your computer and use it in GitHub Desktop.
Twitter Bootstrap HTML5 email tag addition
This file contains 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
input[type=email] | |
{ | |
display: inline-block; | |
width: 210px; | |
padding: 4px; | |
font-size: 13px; | |
line-height: 18px; | |
height: 18px; | |
color: #808080; | |
border: 1px solid #ccc; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
} | |
input[type=email] | |
{ | |
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s; | |
-moz-transition: border linear 0.2s, box-shadow linear 0.2s; | |
transition: border linear 0.2s, box-shadow linear 0.2s; | |
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); | |
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); | |
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); | |
} | |
input[type=email]:focus | |
{ | |
outline: none; | |
border-color: rgba(82, 168, 236, 0.8); | |
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6); | |
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6); | |
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6); | |
} | |
form div.error input[type=email] | |
{ | |
border-color: #c87872; | |
-webkit-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25); | |
-moz-box-shadow: 0 0 3px rgba(171, 41, 32, 0.25); | |
box-shadow: 0 0 3px rgba(171, 41, 32, 0.25); | |
} | |
form div.error input[type=email]:focus | |
{ | |
border-color: #b9554d; | |
-webkit-box-shadow: 0 0 6px rgba(171, 41, 32, 0.5); | |
-moz-box-shadow: 0 0 6px rgba(171, 41, 32, 0.5); | |
box-shadow: 0 0 6px rgba(171, 41, 32, 0.5); | |
} | |
.inline-inputs span, .inline-inputs input[type=email] | |
{ | |
display: inline-block; | |
} | |
.input-append input[type=email] | |
{ | |
-webkit-border-radius: 0 3px 3px 0; | |
-moz-border-radius: 0 3px 3px 0; | |
border-radius: 0 3px 3px 0; | |
} | |
.input-append input[type=email] | |
{ | |
float: left; | |
-webkit-border-radius: 3px 0 0 3px; | |
-moz-border-radius: 3px 0 0 3px; | |
border-radius: 3px 0 0 3px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment