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 4 年之前
..
dist First Commit 4 年之前
lib First Commit 4 年之前
.babelrc First Commit 4 年之前
.eslintrc First Commit 4 年之前
LICENSE First Commit 4 年之前
changelog.md First Commit 4 年之前
karma.conf.js First Commit 4 年之前
package.json First Commit 4 年之前
readme.md First Commit 4 年之前
tests.html First Commit 4 年之前
tests.webpack.js First Commit 4 年之前
webpack.config.js First Commit 4 年之前

readme.md

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