You can not select more than 25 topics 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