neat icon indicating copy to clipboard operation
neat copied to clipboard

Remove span-column(12) from table-grid example

Open CWSites opened this issue 12 years ago • 7 comments

@include span-columns(12); shouldn't have a right-margin. We shouldn't have to include omega every time we want to use a full width column. I would have made the update myself and submitted a PR but I couldn't figure out how to update the code accordingly.

I'm guessing this hasn't been an issue before now because the margin doesn't break anything, however it does flow outside of the outer container.

screen shot 2014-08-05 at 3 17 09 pm

CWSites avatar Aug 05 '14 19:08 CWSites

There is a fill-parent() mixin (http://neat.bourbon.io/docs/#fill-parent) that is better than using the total columns. Try it and let us know what you think.

kaishin avatar Aug 08 '14 15:08 kaishin

@CWSites while it might be relatively simple to fix this isn't the right way we think you should be developing your site. span-columns also floats the element which is unnecessary code since it spans the whole parent. It's a better practice to not use span-columns and instead use fill-parent as @kaishin has suggested.

kylefiedler avatar Aug 08 '14 17:08 kylefiedler

I'm not sure what you mean. The point we are making is that in the default 12 column grid it's better to use fill-parent() than span-columns(12)

kylefiedler avatar Aug 08 '14 20:08 kylefiedler

Hey Matt, You're totally right. We shouldn't be promoting the use of span-columns(12) anywhere in our docs. Would you mind pointing out where you saw it so that we can correct that mistake?

kylefiedler avatar Aug 08 '14 22:08 kylefiedler

I've renamed this issue to better explain the problem. Thanks @CWSites for pointing this out.

kylefiedler avatar Aug 08 '14 22:08 kylefiedler

Done here: https://github.com/thoughtbot/neat/pull/257

bx2 avatar Oct 24 '14 15:10 bx2

Looks like this can be closed as fixed. I'm doing some gardening here :) /cc @tysongach

mehlah avatar Aug 14 '15 14:08 mehlah