Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responsive value under css property #91

Open
wypratama opened this issue Apr 27, 2023 · 1 comment
Open

responsive value under css property #91

wypratama opened this issue Apr 27, 2023 · 1 comment

Comments

@wypratama
Copy link

Can pinceau set a responsive value under css property? I believe most css in js able to set responsive value something like this but I'm not sure if this supported by pinceau:

css({
'div': {
  color: {
    sm: 'black',
    md: 'red',
  },
}})

i tried something like this in pinceau but it doesn't seem to work. do I need to change some setting or do I implement it wrong? or is it simply not a supported feature in pinceau?

css({
'div': {
  color: {
    '@sm': 'black',
    '@md': 'red',
  },
}})
@SGAMERyu
Copy link
Contributor

you can see document from https://pinceau.dev/configuration/media-queries
It seems that the media query with a single property is more concise than the media query without object properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants