Sha256: 8356c8cd635f5f1f6bf332f30c83613da7e863fe8c1605884719604c357b1df9

Contents?: true

Size: 648 Bytes

Versions: 27

Compression:

Stored size: 648 Bytes

Contents

// Only display content to screen readers
//
// See: http://a11yproject.com/posts/how-to-hide-content/

@mixin sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate

@mixin sr-only-focusable {
  &:active,
  &:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
}

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
solidus_backend-2.1.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.0.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.4.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.3.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.0.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.4.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.1.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.1.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.0.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
on-standards-rails-2.0.0.pre.alpha.2 vendor/assets/stylesheets/on-standards/mixins/_screen-reader.scss
solidus_backend-2.1.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
on-standards-rails-2.0.0.pre.alpha.1 vendor/assets/stylesheets/on-standards/mixins/_screen-reader.scss
on-standards-rails-2.0.0.pre.alpha vendor/assets/stylesheets/on-standards/mixins/_screen-reader.scss
solidus_backend-2.0.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.4.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.0.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.4.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.0.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.4.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-1.3.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss