The problem with all of these responsive grid systems is that they are opinionated about how a component responds. Responsiveness is not a document level problem, it's a component level problem and each component has it's own concerns. One component might keep the 2up grid from desktop to mobile, another might collapse to single column half way, and so on. Having generic desktop and mobile class names ala bootstrap d…
The problem with all of these responsive grid systems is that it's so easy to do a grid in plain CSS with flexbox and media queries that they're close to zero added value in almost all cases.
Pills: A simple responsive CSS grid for humans
81–90 of 102 posts
Re: Pills: A simple responsive CSS grid for humans
#82Earlier quoted context omitted.
> Components are very dumb right now, we need smart components that understand their surroundings beyond the window. Then we will have truly portable components! This is the iceberg problem. Component based programming has been around since probably the 60's. The easy part is making components. The hard part is making them (and this is the Holy Grail), portable. Pipes and Filters in the Unix OS is a simple example of…
I think a lot of these grid systems and layout libraries are overkill, and in turn, make the designs they are being used for, more complicated than they need to be. Sure, it would be great to have a more component focused tool for FE development, but I think creating separate, fixed-width designs for tablet, phone, and desktop, with containers does the job fairly well. When the designs try to resize components for ev…
Re: Pills: A simple responsive CSS grid for humans
#83Earlier quoted context omitted.
Flexbox doesn't work in IE. It also doesn't solve the need for conventions around grid breakpoints, when e.g. working in a team. Doesn't come close to replacing Bootstrap 3 (and similar) grid systems IMO.
You are incorrect, flexbox works in IE10 and up. Works fine in Edge without any prefixes even.
Re: Pills: A simple responsive CSS grid for humans
#84I 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:…
Re: Pills: A simple responsive CSS grid for humans
#85Please explain to me: What happened to the philosophy behind http://csszengarden.com ? Back when CSS needed evangelizing, the main selling point was "never touch the DOM for styling". What went wrong?
When you have 5 front-end developer working on and off on a project, you can't simply throw media queries around.
Hence the adding of classes. With classes based grid system, I can setup my grid (as the front-end guy) and have the back end guys simply add the right class and the website will stay responsive.
That being said, the classes are only there for the skeleton of the website. The rest of it is going to be done via the CSS itself.
Let's use Zurb's Foundation as an exemple. I can have the entire skeleton of the website done using the classes. This allow everyone to share the same base and this makes sure that the website will always be responsive.
When I need to do some extra styling on the element itself where classes would not make sense (and would break the philosophy behind good CSS), I simply thrown in @include grid-column(4); in my Sass code. This way, I have all the power of the class based grid but only in the CSS and not in the markup. (this is equal to doing class="row-4")
Re: Pills: A simple responsive CSS grid for humans
#86Please explain to me: What happened to the philosophy behind http://csszengarden.com ? Back when CSS needed evangelizing, the main selling point was "never touch the DOM for styling". What went wrong?
Re: Pills: A simple responsive CSS grid for humans
#87Earlier quoted context omitted.
> Components are very dumb right now, we need smart components that understand their surroundings beyond the window. Then we will have truly portable components! This is the iceberg problem. Component based programming has been around since probably the 60's. The easy part is making components. The hard part is making them (and this is the Holy Grail), portable. Pipes and Filters in the Unix OS is a simple example of…
This is what I feel is missing from web components. Some sort of generic api for components to reason about their immediate environment. Similar to the Unix OS pipes and filter api that means every program understands how to get some information about the context that it is being run in. It's not difficult to imagine a calendar component that needs to visually display vastly differently depending on how much space it…
Maybe I'm being naive here, but isn't this solved really by getting the width of a block level element rendered by the Calendar component?
Yeah it does mean you need to get the width and then render everything else, but it's doable.
Re: Pills: A simple responsive CSS grid for humans
#88Why not go gridless? https://github.com/lucianmarin/gridless
Re: Pills: A simple responsive CSS grid for humans
#89so for instance:
.content {
@include box-size(3/4);
}
.sidebar {
@include box-size(1/4);
}
[1] https://github.com/donatj/SlenderGrid/blob/master/src/_slend...Re: Pills: A simple responsive CSS grid for humans
#90Earlier quoted context omitted.
The problem with all of these responsive grid systems is that it's so easy to do a grid in plain CSS with flexbox and media queries that they're close to zero added value in almost all cases.
Agreed, flexbox is one of the best things to happen to CSS in a very very long time.
It's sad really. Table-based layouts have been considered bad practice for years but CSS is only just now becoming a superset. That is if you're lucky enough to be free of old browsers. If you want everything to "just work" tables are still the practical choice to this day. Kudos to PG for sticking to what he learned in the 90's when he built HN.