Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the screen-xs breakpoint deprecated? #14504

Closed
ericfreese opened this issue Sep 1, 2014 · 2 comments
Closed

Why is the screen-xs breakpoint deprecated? #14504

ericfreese opened this issue Sep 1, 2014 · 2 comments
Labels

Comments

@ericfreese
Copy link

Hi all,

First off, thanks for all your hard work on this project. It kicks ass.

This is my first time using bootstrap more extensively on a larger project, and I'm confused as to why the screen-xs breakpoint has been deprecated, and the xs breakpoint has been defined as everything less than 768px.

I was taking a look at #12913, and I don't know the history here, but at first glance it looks like the underlying problem was that there wasn't a way to specify default "mobile-first" behavior, since the xs breakpoint was between 480px and 767px. There was nothing for < 480px, so the xs breakpoint was changed to be just < 768px.

Image of Yaktocat

But I have run into several cases where I'd love to use the xs breakpoint. Basically, I'd like to say .make-xs-column(6), and have it wrap the columns when < 480 but go side by side at 480 and up.

Again, I don't know the history here, but it seems to me a better solution would be to add another set of mixins and helper classes to specify the default "mobile-first" behavior. Something like:

.my-row {
  .make-row;
}

.my-row-item {
  .make-column(6);    // Default is 6 cols
  .make-xs-column(3); // 3 cols at >= 480px
  .make-md-column(2); // 2 cols at >= 768px
}

Would it be crazy to make the xs breakpoint act like the sm, md, and lg breakpoints (i.e. xs >= 480px) and add another set of helpers (e.g. .col-6, .visible-block, .make-column(8)) to handle the >= 0px default behavior?

Thanks

@cvrebert cvrebert added the css label Sep 1, 2014
@cvrebert
Copy link
Collaborator

cvrebert commented Sep 1, 2014

Sounds like you really just want an "XXS" 480px grid breakpoint; that's already currently planned for Bootstrap v4. We can't add it in v3 due to backward compatibility concerns.
Approximate duplicate of #10203.
See also f9e98a1.

@cvrebert cvrebert closed this as completed Sep 1, 2014
@ericfreese
Copy link
Author

Thanks. #10203 is exactly what I was thinking. I'll wait for v4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants