hacker.tours-website/themes/zen/assets/sass/components/visually-hidden/_visually-hidden.scss

17 lines
324 B
SCSS
Raw Normal View History

2024-06-13 22:14:05 +02:00
// Visually hidden
//
// Make an element visually hidden, but accessible to screen readers, etc.
.visually-hidden,
%visually-hidden {
&:not(:focus, :active) {
position: absolute;
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
width: 1px;
overflow: hidden;
white-space: nowrap;
}
}