Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 633 Bytes

array.md

File metadata and controls

45 lines (34 loc) · 633 Bytes

array Addon

This addon allows to specify multiple values for the same declaration property.

nano.put('.foo', {
    display: ['flex', '-webkit-flex']
});

Result:

.foo {
  display: flex;
  display: -webkit-flex;
}

It also allows to specify multiple CSS-like objects as an array, which will be merged.

nano.put('.bar', [
    {
        color: 'red'
    },
    {
        border: '1px solid red'
    }
]);

Result:

.bar {
  color: red;
  border: 1px solid red;
}

Installation

Simply install array addon. Read more about the Addon Installation.