Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for responsive line height + bonuses #20

Merged
merged 8 commits into from
Jun 17, 2016
Merged

Add support for responsive line height + bonuses #20

merged 8 commits into from
Jun 17, 2016

Conversation

perrin4869
Copy link
Contributor

Added support for responsive line-height, and refactored the code a bit to be more functional. Also, since it was so easy to do, I added responsive letter-spacing, just for the giggles :)

* @param {object} rule CSS rule to parse
*/
var fetchParams = function(rule, declName){
var params = R.clone(defaultParams[declName]);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only place Ramda is used? Pretty bulky dep just for a clone func, especially when we don't actually need a deep clone here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm... maybe replace with this then: https://github.com/pvorb/node-clone?

@madeleineostoja
Copy link
Owner

Made a couple of line comments, just small things. Otherwise looks good!

@perrin4869
Copy link
Contributor Author

made some changes according to your comments, for your consideration :)

@madeleineostoja
Copy link
Owner

Looks good! Object.assign isn't supported in node 0.12, but I'm happy to only support 4+ for this. I'll merge and update the Travis config accordingly. If we want 0.12 support in future there are plenty of assign polyfills out there we can mix in.

@madeleineostoja madeleineostoja merged commit b0da221 into madeleineostoja:master Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants