Last active
December 20, 2015 20:48
-
-
Save bbrochier/6192610 to your computer and use it in GitHub Desktop.
Glowing focus on form input
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
// Glowing focus on form input --------------------- | |
input[type=text], input[type=email], textarea { | |
transition: all 0.30s ease-in-out; | |
-webkit-transition: all 0.30s ease-in-out; | |
-moz-transition: all 0.30s ease-in-out; | |
outline:none; | |
} | |
input[type=text]:focus, input[type=email]:focus, textarea:focus { | |
box-shadow: 0 0 5px rgba(190, 27, 28, 1); | |
-webkit-box-shadow: 0 0 5px rgba(190, 27, 28, 1); | |
-moz-box-shadow: 0 0 5px rgba(190, 27, 28, 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment