Live data from Hacker News

Bootstrap 3

getbootstrap.com

61–70 of 86 posts

Re: Bootstrap 3

#61

I don't think I get the new grid system. .col-12 .col-lg-8 What's going on here? If I were to guess, I'm assuming it's going to be 12 columns if its a mobile, 8 if a tablet or a desktop. In what situation would that be useful? It looks like you'd end up with some pretty complicated mark-up quickly like that.

In order to reduce complexity like this, you should avoid using Bootstrap classes in your HTML directly.

Instead, use semantic class names for your app and use the new &:extend() directive in LESS 1.4 or @extend in SASS (if you're using bootstrap-sass). You'll end up with much more readable HTML and CSS, and will insulate yourself from future changes in Bootstrap.

I do stuff like this in SASS

    %flash {
      @extend .container;
      @extend .alert;
      margin: 15px auto;
      border-radius: 0;
    
      .close { top: 0; }
    }
    
    .flash-success {
      @extend %flash;
      @extend .alert-success;
    
      .close {
        color: $successText;
        opacity: 1;
      }
    }

    .flash-error {
      @extend %flash;
      @extend .alert-error;
    
      .close {
        color: $errorText;
        opacity: 1;
      }
    }

Re: Bootstrap 3

#62

Is it just me or do flat styles actually have worse usability? There's absolutely no visual cue for what's clickable and what's not.

Aside from the clear color contrast, optional mouseover effects, and icons (down arrows in some cases).

I think this is the kind of change everyone loves to nitpick about, but that everyone adapts to.

Re: Bootstrap 3

#64
post #51

Earlier quoted context omitted.

If you're just using it for the minimal things, then you might look at the highly underrated Skeleton ( http://getskeleton.com ). It's got a reset, grid, forms and typography, but all are fairly minimalist, easy to override, etc. I'd recommend Foundation as an alternative too, but that one's already been suggested. It's also very good, but slightly heavier-weight than Skeleton.

is this still being developed? there hasn't been a new version out in more than a year

Fine question. It still works perfectly either way. As it stands, its minimalism doesn't need a whole lot of maintenance, but it may not be actively maintained any more.

Re: Bootstrap 3

#65

Is it just me or do flat styles actually have worse usability? There's absolutely no visual cue for what's clickable and what's not.

Yeah, I agree. A good case-in-point is the new button groups. Here is 2.3.2: http://getbootstrap.com/2.3.2/components.html#buttonGroups And here are groups in 3: http://getbootstrap.com/components/#btn-groups There _is_ a rollover state, but it doesn't really convey it is a button anymore.

And rollover doesn't work if you are mobile-first.

Re: Bootstrap 3

#66
Bug report:

  - open on iPad in landscape
  - navigate to a long doc page
  - scroll halfway down
  - rotate to portrait
Expected: content scaled to fit

Actual: content zooms way in, document scrolls several pages

  - rotate back to landscape
Expected: content returns to previous view

Actual: content zooms even further

Re: Bootstrap 3

#67

Bug report: - open on iPad in landscape - navigate to a long doc page - scroll halfway down - rotate to portrait Expected: content scaled to fit Actual: content zooms way in, document scrolls several pages - rotate back to landscape Expected: content returns to previous view Actual: content zooms even further

It's probably best if you submit bugs to their issue tracker: https://github.com/twbs/bootstrap/issues

Re: Bootstrap 3

#68
post #61

I don't think I get the new grid system. .col-12 .col-lg-8 What's going on here? If I were to guess, I'm assuming it's going to be 12 columns if its a mobile, 8 if a tablet or a desktop. In what situation would that be useful? It looks like you'd end up with some pretty complicated mark-up quickly like that.

In order to reduce complexity like this, you should avoid using Bootstrap classes in your HTML directly. Instead, use semantic class names for your app and use the new &:extend() directive in LESS 1.4 or @extend in SASS (if you're using bootstrap-sass). You'll end up with much more readable HTML and CSS, and will insulate yourself from future changes in Bootstrap. I do stuff like this in SASS %flash { @extend .contai…

I can see the benefits of using @extend to clean up the HTML, but wouldn't this pull the .container, .row, .span*, etc. CSS rules into each and every rule that extend from those? Wouldn't that have a hit on performance and file size?

Re: Bootstrap 3

#69

Is it just me or do flat styles actually have worse usability? There's absolutely no visual cue for what's clickable and what's not.

I didn't like the shading/3d effect of everything in v2 and the excessive roundness. I think this looks better. But yes, some light shading on the buttons would be nice.

Re: Bootstrap 3

#70
post #51

Earlier quoted context omitted.

If you're just using it for the minimal things, then you might look at the highly underrated Skeleton ( http://getskeleton.com ). It's got a reset, grid, forms and typography, but all are fairly minimalist, easy to override, etc. I'd recommend Foundation as an alternative too, but that one's already been suggested. It's also very good, but slightly heavier-weight than Skeleton.

is this still being developed? there hasn't been a new version out in more than a year

Check out the forks for more recent activity.

https://github.com/dmur/Skeleton https://github.com/nickpack/Ribs

Post reply on HN