Live data from Hacker News

From Bootstrap to CSS Grid

open.nytimes.com

61–70 of 104 posts

Re: From Bootstrap to CSS Grid

#61

I recently converted my blog to CSS grid. In the past I would have lazily used bootstrap as I've used that for over three years and know the grid inside out. It was a touch intimidating at first. No framework! But it is really quite expressive. It took me 12 lines of CSS to get a traditional blog layout that collapsed on mobiles.

Do you have a link? I am thinking about converting my blog to CSS-Grid, but would like some inspiration.

Re: From Bootstrap to CSS Grid

#62

What are the preferred solutions for people that are forced to support IE11? I've seen fallback CSS and JavaScript polyfills used.

Here's a simple approach: https://www.smashingmagazine.com/2017/06/building-production... "Rather than using fallbacks and shims to ensure a design and layout look the same across all browsers, we’d provide the mobile vertical single-column layout to all browsers and then serve up advanced functionality to those browsers and viewport widths that can take advantage of them."

+1 This is a great solution that doesn't take a huge amount of time to implement. Esp if you only use CSS Grid for 2d layouts and use flex for which has decent IE11 support for laying out components (where mobile is often just stacked 100% width components).

A good way to bring a client round is to explain that the time saved on making IE11 pixel perfect is better spent adding features elsewhere.

Re: From Bootstrap to CSS Grid

#63

Earlier quoted context omitted.

What I think goes unrecognized in the design community is what a tremendous skill it is to be able to put together really disparately styled and designed UX elements into a cohesive whole. Pre Bootstrap / Material / whatever - I'd end up with designs that were just incoherent. You'd look at a modal, or a file upload or something and none of them individually were that awful, but as a whole they didn't fit together.

How often can you use Bootstrap components unaltered? I'm either working on things where aesthetics are important enough that I'd have to write custom CSS for every component, or where aesthetics are so unimportant that stylistic coherence is irrelevant. When I use things like Bootstrap it's as a scaffolding in the early stages of development before I write enough of my own CSS. Eventually then I've restyled all the…

Isn't that the whole point of Bootstrap? It "bootstraps" your design to get you to a minimum coherent design with the least amount of fuss, and then allows (some would say forces) you to build on top it to customise as you see fit.

Re: From Bootstrap to CSS Grid

#64
post #28

Can someone illuminate me as to what are some of the reasons that would make someone style with CSS Grid with a Fallback to Bootstrap? Considering you are already writing Bootstrap due to compatibility concerns why not just keep using that? I feel like adding another dependency like this would just create a risk of having design differences pop up over time. Mind you, I don't hate CSS Grid. I really enjoyed learning…

Grids don’t support transition animations yet. One of the reasons I “downgraded” to bootstrap.

Re: From Bootstrap to CSS Grid

#66
post #25

It's about time the web got a decent layout system. Every UI toolkit that I know of (wxWidgets, Tcl/Tk, Qt) has some form of layout mechanism (box layout, grid layout, etc), and they'd had it for years/decades. On the web though, people have been hacking around this omission for ages with tables and assorted "grid" systems (pure css, bootstrap, etc). The needs for layout management was there for as long as I can reme…

Because Web browsers originally operated under a document-focused paradigm rather than an application-focused paradigm. (The CSS box model spec makes much more sense if you dig through it with this in mind.) Even after Javascript came out, there wasn't really a notion of a Web application in the modern sense- if you wanted to deliver rich content, the primary way to do it was via Flash or Java applets. I would hazard…

The question is why it was deemed necessary to morph the document-centric Web into a Frankenplatform, and for what price. The complexity of CSS has already driven Opera (who once employed the original inventor of CSS) out of the business of producing a web renderer.

Re: From Bootstrap to CSS Grid

#67
post #25

Earlier quoted context omitted.

Because Web browsers originally operated under a document-focused paradigm rather than an application-focused paradigm. (The CSS box model spec makes much more sense if you dig through it with this in mind.) Even after Javascript came out, there wasn't really a notion of a Web application in the modern sense- if you wanted to deliver rich content, the primary way to do it was via Flash or Java applets. I would hazard…

The question is why it was deemed necessary to morph the document-centric Web into a Frankenplatform, and for what price. The complexity of CSS has already driven Opera (who once employed the original inventor of CSS) out of the business of producing a web renderer.

Because there is demand for on-demand, networked applications.

Re: From Bootstrap to CSS Grid

#68

I recently converted my blog to CSS grid. In the past I would have lazily used bootstrap as I've used that for over three years and know the grid inside out. It was a touch intimidating at first. No framework! But it is really quite expressive. It took me 12 lines of CSS to get a traditional blog layout that collapsed on mobiles.

Do you have a link? I am thinking about converting my blog to CSS-Grid, but would like some inspiration.

It is a touch hacky but here it is: https://grillopress.github.io

Code here:

https://github.com/GrilloPress/grillopress.github.io?files=1

The idea behind my blog is every major article I style slightly differently.

Have an upcoming design kanban one where I've played about a bit more with grids to create the boards

Re: From Bootstrap to CSS Grid

#69

It's about time the web got a decent layout system. Every UI toolkit that I know of (wxWidgets, Tcl/Tk, Qt) has some form of layout mechanism (box layout, grid layout, etc), and they'd had it for years/decades. On the web though, people have been hacking around this omission for ages with tables and assorted "grid" systems (pure css, bootstrap, etc). The needs for layout management was there for as long as I can reme…

Web development is just starting to catch up to where we were fifteen years ago. Things like type safety, unit testing, and dependency management are still fairly new on the Javascript side of the house, and I'd argue that Maven is lightyears ahead of NPM or pack or gulp or whatever the fuck the kids are using these days. The UI side is even worse. When you compare $todays_web_framework to QT or Swing, it's like drop…

We intentionally moved from Qt to Electron for desktop app development. Electron apps look better generally and are far easier to maintain than Qt-based apps. CSS has its warts but it's very expressive these days. Don't even get me started on Swing versus React. A decent set of React components are more declarative, easier to maintain, and faster to develop with than Swing. You also have powerful testing tools in React like Jest snapshots and Enzyme, which allow you to inspect and test the output of your UI in ways that are not straightforward with Swing.

Re: From Bootstrap to CSS Grid

#70
post #34
post #28

Can someone illuminate me as to what are some of the reasons that would make someone style with CSS Grid with a Fallback to Bootstrap? Considering you are already writing Bootstrap due to compatibility concerns why not just keep using that? I feel like adding another dependency like this would just create a risk of having design differences pop up over time. Mind you, I don't hate CSS Grid. I really enjoyed learning…

> Can someone illuminate me as to what are some of the reasons that would make someone style with CSS Grid with a Fallback to Bootstrap? Generous interpretation: graceful upgrade when CSS grid has sufficient browser support. Realistic interpretation: to work with the 'new hot' and not the 'old stodgy'

It's not just "the new hot". Using pure CSS over a JS + CSS library like bootstrap has performance implications for your code. Besides avoiding yet another dependency, native CSS grid renders faster. Also, CSS grid being a native feature, you can use those skills in any project, anywhere, even one that isn't using Bootstrap.
Post reply on HN