We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In general it works, however some values are incorrectly post-fixed with "px".
const style = Stilr.create({ header: { 'z-index': 9999 } });
This style will be converted to:
.header{z-index:9999px}
The text was updated successfully, but these errors were encountered:
This would actually be a react issue since Stilr uses React's own css handler (https://github.com/facebook/react/blob/master/src/renderers/dom/shared/CSSPropertyOperations.js) internally to convert js objects to css strings.
Also, I would always recommend using camelCase. Since it's the normal way to interact with style properties in plain old javascript. e.g.
document.querySelector('.button').style.zIndex = 9999; // or document.querySelector('.foo').style.backgroundColor = 'tomato';
...and it saves you 3 key strokes ;)
Sorry, something went wrong.
No branches or pull requests
In general it works, however some values are incorrectly post-fixed with "px".
This style will be converted to:
The text was updated successfully, but these errors were encountered: