Sha256: f8f39a92017024f15328d73e456cefdd39cd9fb5b7fec4b2792275bd01818ad1

Contents?: true

Size: 648 Bytes

Versions: 22

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 https://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

22 entries across 22 versions & 4 rubygems

Version Path
solidus_backend-2.3.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.2.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
card-1.92.2 mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_screen-reader.scss
card-1.92.1 mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_screen-reader.scss
card-1.92 mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_screen-reader.scss
card-1.91 mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_screen-reader.scss
solidus_backend-2.3.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.3.0.rc3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.3.0.rc2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.3.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.3.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.2.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.2.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.2.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-2.2.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
optimacms-0.3.9 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.8 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.7 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.6 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.5 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss