daneden / Toast

🍞 A highly-customizable, responsive (S)CSS grid
http://daneden.github.io/Toast
MIT License
2k stars 271 forks source link

calculated width + gutter width #27

Closed michaelreynolds closed 9 years ago

michaelreynolds commented 10 years ago

Hi Dan,

Just a suggestion here. I started using your older grid, converting it to SASS and but then I decided that set percentages wouldn't work with gutters so I made a function to calculate widths. If you want to swap out your width percentage calculations for each unit so that gutters can be set even in percentages, check this out.

https://gist.github.com/10905171

daneden commented 9 years ago

Not sure what difference this is making. With box-sizing: border-box, you can use percentage-width gutters, and I can’t see how percentage(1 / 2) is different to the function you’re using.