Created
May 6, 2016 13:22
-
-
Save 4gray/684cf38a4bebdecb0f444d37510bacb7 to your computer and use it in GitHub Desktop.
Disable object highlighting (CSS)
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
:not(input):not(textarea), | |
:not(input):not(textarea)::after, | |
:not(input):not(textarea)::before { | |
-webkit-user-select: none; | |
user-select: none; | |
cursor: default; | |
} | |
input, button, textarea, :focus { | |
outline: none; // You should add some other style for :focus to help UX/a11y | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment