|
|
пре 3 година | |
|---|---|---|
| .. | ||
| dist | пре 3 година | |
| lib | пре 3 година | |
| .babelrc | пре 3 година | |
| .eslintrc | пре 3 година | |
| LICENSE | пре 3 година | |
| changelog.md | пре 3 година | |
| karma.conf.js | пре 3 година | |
| package.json | пре 3 година | |
| readme.md | пре 3 година | |
| tests.html | пре 3 година | |
| tests.webpack.js | пре 3 година | |
| webpack.config.js | пре 3 година | |
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