mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
31 lines
699 B
JavaScript
31 lines
699 B
JavaScript
export default function () {
|
|
return function ({ addUtilities, variants }) {
|
|
addUtilities(
|
|
{
|
|
'.sr-only': {
|
|
position: 'absolute',
|
|
width: '1px',
|
|
height: '1px',
|
|
padding: '0',
|
|
margin: '-1px',
|
|
overflow: 'hidden',
|
|
clip: 'rect(0, 0, 0, 0)',
|
|
whiteSpace: 'nowrap',
|
|
borderWidth: '0',
|
|
},
|
|
'.not-sr-only': {
|
|
position: 'static',
|
|
width: 'auto',
|
|
height: 'auto',
|
|
padding: '0',
|
|
margin: '0',
|
|
overflow: 'visible',
|
|
clip: 'auto',
|
|
whiteSpace: 'normal',
|
|
},
|
|
},
|
|
variants('accessibility')
|
|
)
|
|
}
|
|
}
|