Live data from Hacker News

Pills: A simple responsive CSS grid for humans

github.com

11–20 of 102 posts

Re: Pills: A simple responsive CSS grid for humans

#11
a css grid for humans... First thought flexbox for distributing people waiting for the subway.

On a more serious tought... the great thing about bootstrap whille I admit is sometimes a bit messy is the fact that you can use different sizes for different breakpoints which is something this method apparently does not allow.

Re: Pills: A simple responsive CSS grid for humans

#12
Really nice, though these days flexbox should kill libraries for that. Also I hate when you have fixed break points. Sometimes you need elements to be visible hidden on different screen width and frameworks like this limit the ability to change the breakpoints.

Take as an example the smashing magazine [1] and count the breakpoints there

[1] : https://www.smashingmagazine.com

Re: Pills: A simple responsive CSS grid for humans

#14

Whilst 'three' is better than 'col-3', it's still based on a 12-column way of thinking. Try Avalanche ( https://github.com/colourgarden/avalanche ) for a grid system based on percentages or fractions (you choose)

Pills also has support for fractions along with normal four columns like namespace.

Re: Pills: A simple responsive CSS grid for humans

#16
Well, usually grid systems are used for responsiveness and the ability to have a specific design for individual screen sizes. As far as I read through the docs, unlike bootstrap, this library does not allow to target specific screen sizes like xs,md,lg, etc...

Just pointing this out :D

Re: Pills: A simple responsive CSS grid for humans

#19
I created one grid system exactly like this [1] a couple of years ago as part of Picnic CSS [2].

However it was limiting in several factors, so I rewrote it from scratch as a flexbox solution, called it Flexpoint [3] and I love it. Now I need to integrate it back into Picnic.

For instance, can you change elements order? How do you account for an undetermined number of elements (same size, full width total)?

[1] http://web.archive.org/web/20150713011953/http://www.picnics...

[2] http://picnicss.com/

[3] http://francisco.io/flexpoint/

Re: Pills: A simple responsive CSS grid for humans

#20

At NextBigSound.com, we've found that a nestable fractional-based grid is generally easier, faster, and more flexible to work with than traditional N-column grids:

Pills also support fractional based grid like half, one-third or two-third like that.
Post reply on HN