Sha256: 7f7b9d9fb66a996b642f704cfa4d4074d5f2d04c0078564b0c1ddfec9f79667e

Contents?: true

Size: 680 Bytes

Versions: 4

Compression:

Stored size: 680 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

4 entries across 4 versions & 1 rubygems

Version Path
optimacms-0.3.12 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.11 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.4 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss
optimacms-0.3.3 app/assets/stylesheets/bootstrap4/mixins/_screen-reader.scss