Sha256: d1822c75557db824fec36beec5945a8de1a70e5958f46e26326236f62a55e78d

Contents?: true

Size: 869 Bytes

Versions: 11

Compression:

Stored size: 869 Bytes

Contents

// stylelint-disable declaration-no-important

// Hide content visually while keeping it accessible to assistive technologies
//
// 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 visually-hidden() {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

// Use 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

@mixin visually-hidden-focusable() {
  &:not(:focus) {
    @include visually-hidden();
  }
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
infotorg-api-jekyll-theme-0.1.8 _sass/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.7 _sass/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.5 _sass/bootstrap/mixins/_visually-hidden.scss
bootstrap-5.0.0.beta1 assets/stylesheets/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.4 _sass/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.3 _sass/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.2 _sass/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.1 _sass/bootstrap/mixins/_visually-hidden.scss
infotorg-api-jekyll-theme-0.1.0 _sass/bootstrap/mixins/_visually-hidden.scss
bootstrap-5.0.0.alpha3 assets/stylesheets/bootstrap/mixins/_visually-hidden.scss
bootstrap-5.0.0.alpha2 assets/stylesheets/bootstrap/mixins/_visually-hidden.scss