Sha256: 5c0309f76c7bce153811439ccbff8da9c8737602a5374a122359a74ae2a1a36c

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 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 {
  .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
  .clearfix { display: inline-block; }
  * html .clearfix { height: 1%; }  // Hides from IE-mac
  .clearfix { display: block; }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
html5-boilerplate-0.1.0 stylesheets/html5-boilerplate/_helpers.scss