25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
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