kspace-bludit-theme/scss/utils/_a11y.scss
2024-04-10 20:58:16 +02:00

69 lines
No EOL
1.1 KiB
SCSS

.screen-reader-text, .sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
opacity: 0;
transition-delay: .8s;
transition-property: opacity;
transition-duration: 0.2s;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
a.sr-hover {
position: relative;
overflow: visible;
}
.sr-hover:hover .sr-only {
position: absolute;
display: block;
width: auto;
height: auto;
clip: auto;
overflow: visible;
background-color: rgba(0, 0, 0, 0.8);
border-radius: 6px;
top: 110%;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
padding: 3px 9px;
margin: 0px;
font-size: 1rem;
z-index: 10;
border: 1px solid rgba(255,255,255,0.3);
opacity: 1;
}
.article img::before {
content:"alt";
}
.skip {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
.skip:focus-within {
position: static;
width: auto;
height: auto;
}