Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit il y a 3 ans
..
dist First Commit il y a 3 ans
lib First Commit il y a 3 ans
.babelrc First Commit il y a 3 ans
.eslintrc First Commit il y a 3 ans
LICENSE First Commit il y a 3 ans
changelog.md First Commit il y a 3 ans
karma.conf.js First Commit il y a 3 ans
package.json First Commit il y a 3 ans
readme.md First Commit il y a 3 ans
tests.html First Commit il y a 3 ans
tests.webpack.js First Commit il y a 3 ans
webpack.config.js First Commit il y a 3 ans

readme.md

Global Styles for JSS

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.

Gitter

Top level global declarations block

const styles = {
  '@global': {
    body: {
      color: 'green'
    },
    a: {
      textDecoration: 'underline'
    }
  }
}

Top level global prefix

const styles = {
  '@global body': {
    color: 'green'
  }
}

Nested global declarations block

const styles = {
  button: {
    float: 'left',
    '@global': {
      span: {color: 'red'}
    }
  }
}

Nested global prefix

const styles = {
  button: {
    float: 'left',
    '@global span': {color: 'red'}
  }
}

Issues

File a bug against cssinjs/jss prefixed with [jss-global].

Run tests

npm i
npm run test

License

MIT