Last active
December 17, 2015 14:39
-
-
Save SteAllan/5625811 to your computer and use it in GitHub Desktop.
Hide elements from screen readers and/or everyone else.
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
| // Hide elements from visual users but not from screen readers | |
| .visually-hidden, | |
| %visually-hidden { | |
| position: absolute !important; | |
| clip: rect(1px, 1px, 1px, 1px); | |
| padding:0 !important; | |
| border:0 !important; | |
| height: 1px !important; | |
| width: 1px !important; | |
| overflow: hidden; | |
| @if $ltie9 == true { | |
| clip: rect(1px 1px 1px 1px); // IE6, IE7 (deprecated syntax) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment