That said: no idea what's in Bootstrap 2. Someone got a concise summary?
That said: no idea what's in Bootstrap 2. Someone got a concise summary?
Here's my quick (and probably incomplete) list:
- new 12 column grid
- responsive layout
- tons of new JS plugins
- stacked forms are now the default
- lots of new 'controls', like split buttons, new tabs, toolbars, highly styled radio buttons and check boxes.
- icons(!)
I have this sneaking suspicion that even if Zurb does a 'good' job, unless it's way better, they're never going to get the publicity these guys do, and thus won't have quite the same feedback loop.
Button groups. Toolbars. Icons sprites. Progress bars. Checkboxes and radios as buttons. More appropriate terminology (Tooltips instead of Twispies). Some retouches on styling and class naming. An overall increase of functionality for most of the existing stuff.
It's definitely a worthwhile upgrade, and it seems to be all added functionality, not a lot of semantic changes.
I just converted a ton of stuff (like last week), so it's pretty fresh in my mind. I feel like I should have checked the wip branch first, but this has really become my favorite kit. I've been about 95% YUI and the remainder OOCSS, and Bootstrap is the fastest concept-to-reality I've used.
I'm not too worried about upgrading if there are some compelling reasons to do so.
What's the win going from 16 to 12 columns?
It's a headache, but as I was saying, it's so much quicker to work with than many of the others that I might just dedicate some time to do the work and get on board.
[edit] Essentially it's more expressive. Another commenter correctly mentioned that it could have the same advantages above for a responsive design. 12-columns allow for greater freedom of expression at all display sizes.
Was wondering that too. First thing that comes to mind is that 12 columnn is more flexible for responsive layouts, which is another big addition in v2.
For example, since 12 is divisible by 3, it's easier to create a responsive site with 3 vertical sections that collapse into a single vertical section on mobile devices. (Like the Less Framework's mobile layout: http://lessframework.com/. Not the best example, I know I've seen a better one, but can't find it atm, but that gives the general idea.).
Don't know for sure if that's the reason, though.
You basically can divide it in half (6 columns each), in thirds (four columns each) in fourth (three columns each), in 6th (two columns each and in all 12 plus of course spanning the entirety.
16 gives you only 1, half,
.span3
= render :partial => "col1"
.span3
= render :partial => "col2"
.span3
= render :partial => "col3"
.span3
= render :partial => "col4"
Or, to do 3-col: .span4
= render :partial => "col1"
.span4
= render :partial => "col2"
.span4
= render :partial => "col3"
Nothing in the partial needs to especially care about the grid (as long as its simple) --- but if it wanted to, it could nest columns. #sidebar {
.makeColumn(4);
}
#main_pane {
.makeColumn(8);
}
#sidebar
= render :partial => 'common/sidebar'
#main_pane
= yieldWant something on your page to be 3 columns wide? <div class="span3">...</div>
Want to make it 4 columns wide instead? <div class="span4">...</div>
Basically you need look at your design in order to determine what would make most sense.
A very popular choice is to divide it into three equal sizes and then have one of them be the right or left column, while the two others combine to form the other column.
So you end up with two columns one for content and one for navigation (typical blog look)
Grids can obviously also be much more complicated as those used in photoshop, 3dmax, word or windows/osx.
If you want to get really into grids I can recommend probably the best book written about them.
Josef Muller Brockman Grid Systems
http://www.amazon.com/Systems-Graphic-Systeme-Visuele-Gestal...
The Grid Systems book that was recommended earlier is a better bet if you're a typographer or graphic designer, and particularly if you're thinking about designing novel grid systems. But you're not doing that. The Bootstrap grid is trivial and does not require any background in design to use.
I mean I am a designer but still taught myself programming and is generally interested in technology.
Understanding design better will make you a better programmer IMHO.
_Elements of Typography_ (which also has some coverage of grids, along with meter systems), yes. _Elements_ is a buy-immediately book (and a joy to read).
Although, nothing beats Brockmann's Grid Systems book mentioned earlier.
http://www.amazon.com/Ordering-Disorder-Principles-Design-Vo...
I have use for both.
- Responsive design using media queries
- CSS Progress bars
- A few new javascript plugins (Carousel, Typehead)
- Icons
The documentation is online here in case you missed the link the article : http://markdotto.com/bs2/docs/index.html
Maybe someone has a better summary