File size: 799 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
import { style } from '@vanilla-extract/css'
import { vars } from './theme-contract.css'
export const visuallyHidden = style({
position: 'absolute',
border: 0,
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: 'hidden',
clip: 'rect(0, 0, 0, 0)',
whiteSpace: 'nowrap',
wordWrap: 'normal',
})
export const inlineLink = style({
position: 'relative',
textDecoration: 'none',
selectors: {
'&:after': {
position: 'absolute',
bottom: -1,
left: 0,
content: '',
width: '100%',
height: 2,
backgroundColor: vars.colors.red100,
'@media': {
'(prefers-reduced-motion: no-preference)': {
transition: 'width 200ms ease-out',
},
},
},
'&:hover:after': {
width: '0%',
},
},
})
|