Created
May 24, 2013 19:37
-
-
Save trumball/5645980 to your computer and use it in GitHub Desktop.
CSS3 Glowing Inputs
I really enjoy this basic custom CSS3 class because of how it overwrites the default browser behavior. Users of Chrome & Safari know about annoying input outlines in forms. Adding these properties into your stylesheet will setup a whole new design for basic input elements.
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
input[type=text], textarea { | |
-webkit-transition: all 0.30s ease-in-out; | |
-moz-transition: all 0.30s ease-in-out; | |
-ms-transition: all 0.30s ease-in-out; | |
-o-transition: all 0.30s ease-in-out; | |
outline: none; | |
padding: 3px 0px 3px 3px; | |
margin: 5px 1px 3px 0px; | |
border: 1px solid #ddd; | |
} | |
input[type=text]:focus, textarea:focus { | |
box-shadow: 0 0 5px rgba(81, 203, 238, 1); | |
padding: 3px 0px 3px 3px; | |
margin: 5px 1px 3px 0px; | |
border: 1px solid rgba(81, 203, 238, 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment