jss-props-sort
JSS plugin that ensures style properties extend each other instead of override
Last updated 9 years ago by kof .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jss-props-sort 
SYNC missed versions from official npm registry.

JSS plugin that ensures style properties extend each other instead of override

Gitter

Inspired by React Native. When using this plugin, more specific properties will not be overwritten by less specific.

Usage example

const styles = {
  container: {
    'border-left': '1px solid red',
    border: '3px solid green'
  }
})

Compiles to:

.jss-jkh4234 {
  border: 3px solid green;
  border-left: 1px solid red;
}

Demo

Simple

Run tests

npm i
npm run test

License

MIT

Current Tags

  • 6.0.0                                ...           latest (7 years ago)

13 Versions

  • 6.0.0                                ...           7 years ago
  • 5.0.0                                ...           7 years ago
  • 4.0.0                                ...           8 years ago
  • 3.0.0                                ...           8 years ago
  • 2.0.2                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 4
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (13)

© 2010 - cnpmjs.org x YWFE | Home | YWFE