bigbite / macy.js

http://macyjs.com/
MIT License
1.3k stars 156 forks source link

Responsive Margin #41

Closed CHEWX closed 5 years ago

CHEWX commented 6 years ago

Hi,

Usually when using Macy I'm using it in a responsive grid environment.

As such it would be good if you could parse percentage margins.

{
    x: '4%',
    y: 40 
}

Like the above for example.

Thanks.

jrmd commented 5 years ago

Hey @CHEWX ,

I have implemented the first version of this, currently custom units are only supported on the x property, due to how the height of the container is calculated.

In the future i'll work on reworking the how the height is calculated to add support for custom Y values

ghost commented 4 years ago

Any news on this?

jrmd commented 4 years ago

Any news on this?

Hey @dnnsjsk

As per my comment above; this was implemented for the x margin around a year ago :)