-
Notifications
You must be signed in to change notification settings - Fork 262
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
Unfortunately nesting is not supported by styled-jsx #310
Comments
Just saw #190 but I think that the issue is still valid. |
You can use postcss in meanwhile |
styled-jsx is never going to support non standard CSS features, however soon (like this weekend) I will release a new version that introduces a plugin system which will allow to use SASS, PostCSS or really processing your styles as you please - I already wrote two sample plugins |
Thanks for the answer. I will try de sass plugin. |
https://github.com/giuseppeg/styled-jsx-plugin-postcss + postcss-cssnext = W3C spec nesting .foo {
& .bar {
background: blue;
}
} |
Still can't setup this >< created
Can you please tell me where am I wrong? |
module.exports = {
parser: 'sugarss',
plugins: {
'postcss-plugin': {}, // I suspect this should be 'styled-jsx-plugin-postcss': {}
'postcss-preset-env': {},
}
} tbh, I'm not sure. It's a pain to get setup and working right. I jumped to Emotion and haven't looked back. https://github.com/zeit/next.js/tree/canary/examples/with-emotion |
When I import bootstrap.css from node_modules It has error
I found that the error is from this style, It's from navbar bootstrap 4, How can I fix this?
|
Yes, the problem happens if you try to use an svg image as background. |
Hi there !
.a { p { color: red; } }
The code above is throwing the error: Unfortunately nesting is not supported by styled-jsx
Is any plan to support nesting in styled-jsx ? Or is there a workaround to fix this ?
Thanks !
The text was updated successfully, but these errors were encountered: