-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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 responsive Order classes for Flexbox reordering #21594
Conversation
scss/_grid.scss
Outdated
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files should end with a trailing newline
scss/_grid.scss
Outdated
@@ -50,3 +50,13 @@ | |||
@if $enable-grid-classes { | |||
@include make-grid-columns(); | |||
} | |||
|
|||
@each $size, $pixels in $grid-breakpoints { | |||
@include media-breakpoint-up($size) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line should be indented with spaces, not tabs
You'll need to remove the |
What mdo meant was to not change the git reset 65ffb1c
git checkout dist/
git add scss/_grid.scss
git commit -m 'Added flexbox .order-* classes.'
git push -f |
…t xs being the default size.
scss/_grid.scss
Outdated
order:$i; | ||
} | ||
} | ||
@else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@else
should be placed on same line as previous curly brace
scss/_grid.scss
Outdated
@for $i from 1 to $grid-columns { | ||
@if $size=='xs' { | ||
.order-#{$i}{ | ||
order:$i; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colon after property should be followed by at least one space
scss/_grid.scss
Outdated
@include media-breakpoint-up($size) { | ||
@for $i from 1 to $grid-columns { | ||
@if $size=='xs' { | ||
.order-#{$i}{ |
There was a problem hiding this comment.
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
scss/_grid.scss
Outdated
$pixels in $grid-breakpoints { | ||
@include media-breakpoint-up($size) { | ||
@for $i from 1 to $grid-columns { | ||
@if $size=='xs' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$size=='xs'
should be written with a single space on each side of the operator: $size == 'xs'
Prefer double-quoted strings
This would be a very nice thing to have |
This was addressed in #22942. |
Add in dynamic classes that change the
order:...
CSS property for flex columns. For example, using the following HTML:Results in two fairly different views:
Desktop / Full View
Mobile / Small View
Without Order Classes