Sha256: 768ce369123d66b548c022031fa0cd2c15ab4520253a63d1b68cc074d8fb6a65
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
// // Non-semantic helper classes // @mixin html5-boilerplate-helpers { .ir { @include image-replacement; } .hidden { @include hidden; } .visuallyhidden { @include visually-hidden; } @include magnificent-clearfix; } // for image replacement @mixin image-replacement { display: block; text-indent: -999px; overflow:hidden; background-repeat: none; } // Hide for both screenreaders and browsers // css-discuss.incutio.com/wiki/Screenreader_Visibility @mixin hidden { display:none; visibility: hidden; } // Hide only visually, but have it available for screenreaders // www.webaim.org/techniques/css/invisiblecontent/ // Solution from: j.mp/visuallyhidden - Thanks Jonathan Neal! @mixin visually-hidden { position: absolute !important; clip: rect(1px 1px 1px 1px); // IE6, IE7 clip: rect(1px, 1px, 1px, 1px); } // Hide visually and from screenreaders, but maintain layout @mixin invisible { visibility: hidden; } // The Magnificent CLEARFIX @mixin magnificent-clearfix($classname: 'clearfix') { .#{$classname}:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .#{$classname} { zoom: 1; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
html5-boilerplate-0.1.2 | stylesheets/html5-boilerplate/_helpers.scss |
html5-boilerplate-0.1.1 | stylesheets/html5-boilerplate/_helpers.scss |