Created
May 3, 2017 22:02
-
-
Save mushfiqweb/2af515f63d62384ec8e75608aae98069 to your computer and use it in GitHub Desktop.
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.addEventListener( 'focus', function(){ input.classList.add( 'has-focus' ); }); | |
| input.addEventListener( 'blur', function(){ input.classList.remove( 'has-focus' ); }); | |
| .inputfile:focus + label, | |
| .inputfile.has-focus + label { | |
| outline: 1px dotted #000; | |
| outline: -webkit-focus-ring-color auto 5px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment