File size: 578 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 |
import { globalStyle, style } from '@vanilla-extract/css'
export const linkIcon = style({
position: 'absolute',
left: -24,
bottom: 2,
transform: 'translateY(-50%)',
opacity: 0,
'@media': {
'(prefers-reduced-motion: no-preference)': {
transition: 'opacity 200ms ease-out',
},
},
})
export const heading = style({
whiteSpace: 'pre-line',
position: 'relative',
})
globalStyle(`${heading} > a`, {
pointerEvents: 'auto',
textDecoration: 'none',
fontWeight: 'inherit',
})
globalStyle(`${heading}:hover > a + ${linkIcon}`, {
opacity: 1,
})
|