dwyl / tachyons-bootstrap

👢Bootstrap recreated using tachyons functional css
http://tachyons-bootstrap.dwyl.com
48 stars 4 forks source link

Implement offsetting section of grids #33

Open katbow opened 7 years ago

katbow commented 7 years ago

The only subsection that's not complete for grids is grid offsetting.

There are currently no percentage left (or right) margins in tachyons. The only other option would be to use columns and margins with rem units, however I didn't think this was a good alternative in this particular case. Seems like a better one to leave for now and come back to at another time!

What's the reasoning behind not including margins as percentages? I read this section of the docs:

As powers of two will always produce integers, there will be no problems with sub pixel rendering across browsers. Computers aren't that great at math and so decimals lead to inconsistencies across platforms. Inconsistencies should be avoided where possible.

I was thinking percentage margins would sometimes result in non-integer pixel values which causes problems hence not being included. Can you give more insight @mrmrs?