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

Drop offsets and push/pull for new order variants #22942

Merged
merged 8 commits into from
Jun 30, 2017
Merged

Drop offsets and push/pull for new order variants #22942

merged 8 commits into from
Jun 30, 2017

Conversation

mdo
Copy link
Member

@mdo mdo commented Jun 30, 2017

This PR drops a few grid classes and replaces most of their functionality with a new set of classes. Instead of .push-/.pull, we have .order-{1-12} and .offset-s have been removed. The former are made duplicate by the order classes when combined with our move to flexbox, so we save some file size there. The latter can be largely replaced with margin utilities like .mr-auto and .ml-auto, as the new docs here show.

@mdo mdo added this to the v4.0.0-beta milestone Jun 30, 2017
}
@for $i from 1 through $columns {
.order#{$infix}-#{$i} {
order: $i

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaration should be terminated by a semicolon

}
@for $i from 1 through $columns {
.order#{$infix}-#{$i} {
order: $i

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaration should be terminated by a semicolon

@mdo mdo merged commit 7eafb16 into v4-dev Jun 30, 2017
@mdo mdo deleted the grid-order branch June 30, 2017 18:44
@mdo mdo mentioned this pull request Jun 30, 2017
alanorth added a commit to alanorth/hugo-theme-bootstrap4-blog that referenced this pull request Aug 13, 2017
Bootstrap 4.0 Beta 1 dropped the offset classes in favor of margin
classes. We need to use `ml-auto` instead of `offset-sm-1` here to
get the same effect.

See: twbs/bootstrap#22942
See: twbs/bootstrap#23388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants