Created
September 13, 2018 08:47
-
-
Save victorloux/163a4101e15b0edd1af80b33f1aeeb03 to your computer and use it in GitHub Desktop.
Transition on focus outline style
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
a[href], | |
area[href], | |
input:not([disabled]), | |
select:not([disabled]), | |
textarea:not([disabled]), | |
button:not([disabled]), | |
iframe, | |
[tabindex], | |
[contentEditable=true] | |
{ | |
&:not([tabindex='-1']) | |
{ | |
outline: 0.16em solid transparent; | |
outline-offset: 0.6em; | |
transition: outline-offset 0.1s ease-in-out, outline-color 0.1s ease-in; | |
&:focus { | |
outline-color: rgba(60, 160, 250, 0.75); | |
outline-offset: 0.15em; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment