|
|
před 3 roky | |
|---|---|---|
| .. | ||
| dist | před 3 roky | |
| lib | před 3 roky | |
| .babelrc | před 3 roky | |
| .eslintrc | před 3 roky | |
| LICENSE | před 3 roky | |
| changelog.md | před 3 roky | |
| karma.conf.js | před 3 roky | |
| package.json | před 3 roky | |
| readme.md | před 3 roky | |
| tests.html | před 3 roky | |
| tests.webpack.js | před 3 roky | |
| webpack.config.js | před 3 roky | |
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