Live data from Hacker News

Bootstrap 4 Alpha 6 Released

blog.getbootstrap.com

1–10 of 64 posts

Re: Bootstrap 4 Alpha 6 Released

#4
post #2

What is the best way to extend bootstrap without loosing an ability to update it in the future and also do not have a ton of duplicated code?

In my experience, it's really one or the other. There's unfortunately going to be a lot of duplicated overwriting code if you want to update it in the future. I'd love to know of better methods though.

Re: Bootstrap 4 Alpha 6 Released

#5
post #2

What is the best way to extend bootstrap without loosing an ability to update it in the future and also do not have a ton of duplicated code?

Use the Bootstrap Sass files. In particular, overwriting the variables as much as possible instead of just overriding the compiled css will give you flexibility, as they try to preserve those across versions. If you've minimized the amount of overriding css that you've written, then rewriting it will be easier.

Re: Bootstrap 4 Alpha 6 Released

#7
post #2

What is the best way to extend bootstrap without loosing an ability to update it in the future and also do not have a ton of duplicated code?

If you need to extend it, just extend it with your own includes. If you need to modify it, stick to editing variables. If you have both of those, then updating minor versions should be easy.

I tend to keep the source in the bower_components directory and copy/modify only the includes.

The issue is that the project is changing, you will have to wait for an RC if you really want stable code.

Re: Bootstrap 4 Alpha 6 Released

#8
> Automatic equal-width grid columns (e.g., two columns are automatically 50% wide)

This is not entirely accurate and I know it as the developer of Picnic CSS ( http://picnicss.com/ , which has been using flexbox for a while).

The columns will only be equal width with the same content or some smaller content, similarly to how table works. Case in point:

https://jsfiddle.net/q39rq6eu/

If the columns were equal-width, we'd see in the example that the one on the right starts in the middle of the screen.

Re: Bootstrap 4 Alpha 6 Released

#10

Another Alpha? Am I correct in feeling like the fanfare for BS4 was a little premature?

This is last alpha. Next release in pipeline will be first Beta.

Also I would cut BS folk some slack. They are maintaining most popular OS project on Github. The maintenance burden for previous release was unimaginable and terrific, effectively pulling them down until they decided to make harsh decision of ceasing work at Bootstrap 3 and focusing at BS4 exclusively.

Post reply on HN