It is not as cool as if it were implemented with flexbox but you know... backward compatibility.

Mike Aparicio said on August 10, 2014

I've been running into the same thing and have been experimenting with a more simple flexbox grid. Here's what I came up with so far: http://codepen.io/peruvianidol/pen/EwGxq

Jonathan Snook said on August 11, 2014

Our intention isn't to use the grid for full page layout, just the inner grid.

Jér?me Coupé said on August 11, 2014

Thanks for the clarification. Looking forward to see this in action. Loving the new Shopify, BTW.

Paul Howells said on August 11, 2014

Another way to reduce unused grid code (that can also be used with the approach in this article) is to use preprocessing (e.g. Less or Sass), define the .grid classes as mixins, and use the mixins within SMACSS layout selectors as needed.

The unused mixins won’t appear in the final CSS. The downside of course is – the ever present danger of using a mixin instead of a class – a larger CSS file due to repetition.

Martijn said on August 12, 2014

Unfortunately, this will only work on a handful of browsers, among which are NOT all the modern ones. Firefox still has some serious problems with the flexbox model, the biggest of which is that it can't wrap. So you'll always end up with a single row of cells, no matter what.

I believe Chrome and IE11 have much fewer problems, but I'm sure each has at least a few problems to work around.

Martijn said on August 12, 2014

...so if your goal is to make a webapp for Windows 8 Metro, or a webapp for any guaranteed-WebKit/Blink based platform, go right ahead :)

(trying to give my previous comment a bit of a positive wirl)

jerry said on August 15, 2014

As some others have already mentioned, I find it odd that you're using the flexbox model which has very limited compatibility. Is that not a concern?

Jonathan Snook said on August 15, 2014

As mentioned in the post, we support modern browsers that support flexbox and we're using it to solve very specific problems for which flexbox will work well for our needs. If you have different requirements and flexbox doesn't meet those requirements then use something else.

Paolo Chiodi said on August 17, 2014

I came across http://arnaudleray.github.io/pocketgrid/ and really liked the approach of not having a proper grid, but a way to lay out the elements in a grid while setting widths on the single elements.
I complemented this with a couple of sass functions that calculate the percentage width and margin based on the number of column to span and skip (and the container with, allowing for nested grid)
What is your thinking?

Toby Evans said on August 17, 2014

Firefox supported flex-wrap for a few versions now(29 I think).
I’ve been using flexbox successfully with IE10 up with very few problems.
The real issues are that there is no way to select edge elements. I’d like to see some psedo selectors like :start-edge, :end-edge, :first-row, :last-row - or something to that effect.

Chris Lake said on August 20, 2014

Having just gone through an intensive admin refresh based around Foundation's grid (http://foundation.zurb.com/grid.html), I'll be *very* interested to hear your thoughts after you've rolled it out across the site.... The "unforeseen issues" you mention imo being the deciding factor in judging the relative success of *any* approach.

DOGUKAN GUVEN NOMAK said on August 21, 2014

check out :) http://flexible.gs

Paul Lynn said on August 21, 2014

how about this? https://github.com/goodpixels/less-grid-system
i think its quite easy to use and doesn't need any classes in the markup.

Gluck666 said on November 03, 2014

Doesn't work in IE

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.
f2富二代官网入口