_alert.scss
6 years ago
_background-variant.scss
6 years ago
_badge.scss
6 years ago
_border-radius.scss
6 years ago
_box-shadow.scss
6 years ago
_breakpoints.scss
6 years ago
_buttons.scss
6 years ago
_caret.scss
6 years ago
_clearfix.scss
6 years ago
_deprecate.scss
6 years ago
_float.scss
6 years ago
_forms.scss
6 years ago
_gradients.scss
6 years ago
_grid-framework.scss
6 years ago
_grid.scss
6 years ago
_hover.scss
6 years ago
_image.scss
6 years ago
_list-group.scss
6 years ago
_lists.scss
6 years ago
_nav-divider.scss
6 years ago
_pagination.scss
6 years ago
_reset-text.scss
6 years ago
_resize.scss
6 years ago
_screen-reader.scss
6 years ago
_size.scss
6 years ago
_table-row.scss
6 years ago
_text-emphasis.scss
6 years ago
_text-hide.scss
6 years ago
_text-truncate.scss
6 years ago
_transition.scss
6 years ago
_visibility.scss
6 years ago
_screen-reader.scss
34 lines
| 1 | // Only display content to screen readers |
| 2 | // |
| 3 | // See: https://a11yproject.com/posts/how-to-hide-content/ |
| 4 | // See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/ |
| 5 | |
| 6 | @mixin sr-only { |
| 7 | position: absolute; |
| 8 | width: 1px; |
| 9 | height: 1px; |
| 10 | padding: 0; |
| 11 | overflow: hidden; |
| 12 | clip: rect(0, 0, 0, 0); |
| 13 | white-space: nowrap; |
| 14 | border: 0; |
| 15 | } |
| 16 | |
| 17 | // Use in conjunction with .sr-only to only display content when it's focused. |
| 18 | // |
| 19 | // Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 |
| 20 | // |
| 21 | // Credit: HTML5 Boilerplate |
| 22 | |
| 23 | @mixin sr-only-focusable { |
| 24 | &:active, |
| 25 | &:focus { |
| 26 | position: static; |
| 27 | width: auto; |
| 28 | height: auto; |
| 29 | overflow: visible; |
| 30 | clip: auto; |
| 31 | white-space: normal; |
| 32 | } |
| 33 | } |
| 34 |