Sha256: 8bbbcc93742e6418241b855e740bc67e24d122537d57bae12144e5473e741a69

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

@mixin clearfix {
  zoom: 1;
  
  &:before, &:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
  &:after { clear: both; }
}

@mixin html5-boilerplate-helpers {
  /**
   * Non-semantic helper classes: please define your styles before this section.
   */

  /* For image replacement */
  .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }

  /* 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; }

  /* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
     j.mp/bestclearfix */
  .clearfix { @include clearfix; }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
html5-starter-0.2.3b stylesheets/html5-boilerplate/_helpers.scss
html5-starter-0.2.2b stylesheets/html5-boilerplate/_helpers.scss
html5-starter-0.1.9b stylesheets/html5-boilerplate/_helpers.scss
html5-starter-0.1.8b stylesheets/html5-boilerplate/_helpers.scss