stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.75k stars 253 forks source link

How can I combine selectors? #1041

Closed dgknca closed 2 years ago

dgknca commented 2 years ago

Hi. I searched the whole document but is it possible to do this?

'&:before, &after': {
    content: '',
    position: 'absolute',
    top: 0,
    left: 0,
    width: '100%',
    height: '100%',
  },

it renders only the :before selector. And this doesn't work as well:

'&:after',
'&:before': {
    content: '',
    position: 'absolute',
    top: 0,
    left: 0,
    width: '100%',
    height: '100%',
  },

is there a way to do this without spreading a common style object?

dgknca commented 2 years ago

typo 🤦‍♂️