Skip to content

Instantly share code, notes, and snippets.

@atelierbram
Created January 18, 2014 21:19
Show Gist options
  • Save atelierbram/8496622 to your computer and use it in GitHub Desktop.
Save atelierbram/8496622 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.visuallyhidden,
.mobile-navigation-trigger b {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
* example of usage:
* <button class="mobile-navigation-trigger">
* <b class="visually-hidden">Open the navigation</b>
* <img src="img/mobile-navigation-icon.svg">
* </button>
*/
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
// https://raw.github.com/h5bp/html5-boilerplate/master/css/main.css
.visuallyhidden,
%visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
* example of usage:
* <button class="mobile-navigation-trigger">
* <b class="visually-hidden">Open the navigation</b>
* <img src="img/mobile-navigation-icon.svg">
* </button>
*/
.mobile-navigation-trigger b {
@extend %visuallyhidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment