Financial-Times / o-grid

Responsive grid system
http://registry.origami.ft.com/components/o-grid
93 stars 14 forks source link

[do not merge] Exercise: add outer margins #106

Closed kaelig closed 9 years ago

kaelig commented 9 years ago

Because o-grid is pretty complex, I built an exercise for you @AlbertoElias, so that you can understand the code of o-grid.

At the moment, outer margins (space on the left and right of a o-grid-container) are the same as gutters: 10px < M, and 20px on layouts >= M.

It works exactly like for gutters.

This branch contains a few tests. To make them pass here is what is needed:

ps: not sure that should be merged when you're done, since it's not something anybody needed. But after doing this exercise you should know all the secrets behind the grid!

kaelig commented 9 years ago

Oops this is a PR onto the wrong branch. See #106 instead