|
|
3 år sedan | |
|---|---|---|
| .. | ||
| dist | 3 år sedan | |
| lib | 3 år sedan | |
| .babelrc | 3 år sedan | |
| .eslintrc | 3 år sedan | |
| LICENSE | 3 år sedan | |
| changelog.md | 3 år sedan | |
| karma.conf.js | 3 år sedan | |
| package.json | 3 år sedan | |
| readme.md | 3 år sedan | |
| tests.html | 3 år sedan | |
| tests.webpack.js | 3 år sedan | |
| webpack.config.js | 3 år sedan | |
If you want to write regular globally scoped CSS with JSS, this plugin is for you. Don’t use it if you can avoid it.
const styles = {
'@global': {
body: {
color: 'green'
},
a: {
textDecoration: 'underline'
}
}
}
const styles = {
'@global body': {
color: 'green'
}
}
const styles = {
button: {
float: 'left',
'@global': {
span: {color: 'red'}
}
}
}
const styles = {
button: {
float: 'left',
'@global span': {color: 'red'}
}
}
File a bug against cssinjs/jss prefixed with [jss-global].
npm i
npm run test
MIT