Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit před 3 roky
..
dist First Commit před 3 roky
lib First Commit před 3 roky
.babelrc First Commit před 3 roky
.eslintrc First Commit před 3 roky
LICENSE First Commit před 3 roky
changelog.md First Commit před 3 roky
karma.conf.js First Commit před 3 roky
package.json First Commit před 3 roky
readme.md First Commit před 3 roky
tests.html First Commit před 3 roky
tests.webpack.js First Commit před 3 roky
webpack.config.js First Commit před 3 roky

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