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

Add order first to grid #24202

Merged
merged 7 commits into from
Oct 3, 2017
Merged

Add order first to grid #24202

merged 7 commits into from
Oct 3, 2017

Conversation

lukefrake
Copy link
Contributor

@lukefrake lukefrake commented Oct 2, 2017

Fix : #23400

@@ -46,6 +46,10 @@
}
}

.order#{$infix}-first{
order: -1;

Choose a reason for hiding this comment

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

Line should be indented 8 spaces, but was indented 9 spaces

@@ -46,6 +46,10 @@
}
}

.order#{$infix}-first{

Choose a reason for hiding this comment

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

Opening curly brace { should be preceded by one space

@@ -46,6 +46,10 @@
}
}

.order#{$infix}-first {
order: -1;

Choose a reason for hiding this comment

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

Line should be indented 8 spaces, but was indented 10 spaces

@XhmikosR XhmikosR requested a review from mdo October 2, 2017 09:20
@@ -515,7 +515,7 @@ In addition to column clearing at responsive breakpoints, you may need to reset

### Order classes

Use `.order-` classes for controlling the **visual order** of your content. These classes are responsive, so you can set the `order` by breakpoint (e.g., `.order-1.order-md-2`). Includes support for `1` through `12` across all five grid tiers.
Use `.order-` classes for controlling the **visual order** of your content. These classes are responsive, so you can set the `order` by breakpoint (e.g., `.order-1.order-md-2`). Includes support for `1` through `12` across all five grid tiers. You also set the class of an element to be `first` which will give it negative order and so put it before unordered elements.
Copy link
Member

@XhmikosR XhmikosR Oct 2, 2017

Choose a reason for hiding this comment

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

You can also make an element appear first with .order-first, which will give it a negative order and thus place it before the unordered elements.

@mdo
Copy link
Member

mdo commented Oct 2, 2017

Updated the docs here to fix @XhmikosR's feedback by revamping them. We're introducing a new class name, which is best served by a new code example rather than mixing the two.

@lukefrake
Copy link
Contributor Author

@mdo that is much clearer, I considered doing that but didn't want to bloat the docs. LGTM though

Do you want me to revert the order-first in the code element above or are you happy to keep that?

@mdo
Copy link
Member

mdo commented Oct 2, 2017

@lukefrake Just took care of that, good catch.

@lukefrake
Copy link
Contributor Author

@mdo no problem, happy to help!

@mdo mdo merged commit c2fb64c into twbs:v4-dev Oct 3, 2017
@mdo mdo mentioned this pull request Oct 3, 2017
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.

5 participants