Created
January 10, 2012 15:56
-
-
Save gavinblair/1589740 to your computer and use it in GitHub Desktop.
hidden
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
/* from HTML5 Boilerplate http://html5boilerplate.com/ */ | |
/* For image replacement */ | |
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; } | |
.ir br { display: none; } | |
/* Hide for both screenreaders and browsers: | |
css-discuss.incutio.com/wiki/Screenreader_Visibility */ | |
.hidden { display: none; visibility: hidden; } | |
/* Hide only visually, but have it available for screenreaders: by Jon Neal. | |
www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */ | |
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } | |
/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: drupal.org/node/897638 */ | |
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; } | |
/* Hide visually and from screenreaders, but maintain layout */ | |
.invisible { visibility: hidden; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment