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

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