
| Current Path : /var/www/html/atstandard/styles/uikit/components/mixins/utility/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/atstandard/styles/uikit/components/mixins/utility/_show-hide.scss |
// Hide content but maintain accessibility
@mixin visually-hidden {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
width: 1px;
padding: 0;
word-wrap: normal;
font: 0/0 a;
}
// Turns off the element-invisible effect
@mixin visually-hidden-off {
position: static !important;
clip: auto;
overflow: visible;
height: auto;
width: auto;
font-family: inherit;
}
// Visually hidden but focus-able, e.g. skip links
@mixin visually-hidden-focusable {
@extend visually-hidden;
&.focusable {
&:active,
&:focus {
@include visually-hidden-off;
}
}
}
// Shift content off screen, can be useful when you really need to do this.
@mixin offscreen {
position: absolute;
top: -99999em;
width: 1px;
height: 1px;
overflow: hidden;
outline: 0;
}