Sha256: 29bf1405b995a5667446e0004b62510e6145a72844b8eed1db9eb3bc7cecb23d

Contents?: true

Size: 778 Bytes

Versions: 205

Compression:

Stored size: 778 Bytes

Contents

// Only display content to screen readers
//
// See: http://a11yproject.com/posts/how-to-hide-content/
// See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/

@mixin sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  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;
    overflow: visible;
    clip: auto;
    white-space: normal;
    clip-path: none;
  }
}

Version data entries

205 entries across 205 versions & 14 rubygems

Version Path
solidus_backend-4.4.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.4.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.4.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.3.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.2.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.1.5 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.3.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.3.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.1.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.3.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.3.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.2.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.1.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.0.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-3.4.6 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.0.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.1.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.2.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-3.4.5 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss
solidus_backend-4.2.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss