25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 3 yıl önce
..
dist First Commit 3 yıl önce
lib First Commit 3 yıl önce
.babelrc First Commit 3 yıl önce
.eslintrc First Commit 3 yıl önce
LICENSE First Commit 3 yıl önce
changelog.md First Commit 3 yıl önce
karma.conf.js First Commit 3 yıl önce
package.json First Commit 3 yıl önce
readme.md First Commit 3 yıl önce
tests.html First Commit 3 yıl önce
tests.webpack.js First Commit 3 yıl önce
webpack.config.js First Commit 3 yıl önce

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