Sha256: 944fa02b4c51b742b613c416cd3409dd35deaea02b76a82479a3cfe800a4d7c7

Contents?: true

Size: 826 Bytes

Versions: 161

Compression:

Stored size: 826 Bytes

Contents

// Only display content to screen readers
//
// See: https://www.a11yproject.com/posts/2013-01-11-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;
  margin: -1px; // Fix for https://github.com/twbs/bootstrap/issues/25686
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  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;
  }
}

Version data entries

161 entries across 161 versions & 8 rubygems

Version Path
jekyll-theme-centos-0.6.13 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.12 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.11 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.10 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.9 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.8 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.7 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.6 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.5 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.4 _sass/bootstrap/mixins/_screen-reader.scss
owasp-td-jekyll-0.2.0 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.3 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.2 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.1 _sass/bootstrap/mixins/_screen-reader.scss
owasp-td-jekyll-0.1.3 _sass/bootstrap/mixins/_screen-reader.scss
owasp-td-jekyll-0.1.2 _sass/bootstrap/mixins/_screen-reader.scss
owasp-td-jekyll-0.1.1 _sass/bootstrap/mixins/_screen-reader.scss
owasp-td-jekyll-0.1.0 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-centos-0.6.0 _sass/bootstrap/mixins/_screen-reader.scss
jekyll-theme-clean-blog-4.0.12 assets/vendor/bootstrap/scss/mixins/_screen-reader.scss