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

v4: Flex utilities instead of flex grid classes? #18785

Closed
wants to merge 1 commit into from
Closed

Conversation

mdo
Copy link
Member

@mdo mdo commented Jan 7, 2016

Should we make the grid-based flex alignment classes available for all flexbox implementations instead of limiting them to just the grid? Names aren't exact, but something like this feels like it'd be of more use to more folks outside just the grid.

Thoughts?

@cvrebert
Copy link
Collaborator

cvrebert commented Jan 7, 2016

Perhaps .flex-items-* instead of .flex-all-*? Just bikeshedding. No opinion on the usefulness.


// Flex column reordering

@each $breakpoint in map-keys($grid-breakpoints) {
Copy link
Member

Choose a reason for hiding this comment

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

Let's merge the three loops/includes into one, because it compiles to fewer media queries and is easier to read.

@glebm
Copy link
Member

glebm commented Jan 18, 2016

👍, these utility classes are definitely useful outside of the grid. .flex-items-* and .flex-self-* seem clearer to me as well.

@mdo mdo added this to the v4.0.0-alpha.3 milestone Feb 6, 2016
@mdo mdo mentioned this pull request Feb 6, 2016
1 task
@mdo
Copy link
Member Author

mdo commented Feb 6, 2016

Cherry-picked into #19099. Will add suggested changes and docs there.

@mdo mdo closed this Feb 6, 2016
@bardiharborow bardiharborow deleted the v4-flex-utils branch February 4, 2017 22:58
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.

3 participants