Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 3 роки тому
..
dist First Commit 3 роки тому
lib First Commit 3 роки тому
.babelrc First Commit 3 роки тому
.eslintrc First Commit 3 роки тому
LICENSE First Commit 3 роки тому
changelog.md First Commit 3 роки тому
karma.conf.js First Commit 3 роки тому
package.json First Commit 3 роки тому
readme.md First Commit 3 роки тому
tests.html First Commit 3 роки тому
tests.webpack.js First Commit 3 роки тому
webpack.config.js First Commit 3 роки тому

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