Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adding flex utilities for grow, order, and width
  • Loading branch information
jonrohan committed Apr 23, 2019
commit 54d7694a07b7d96d163139ba9cae1beacf1dcf70
6 changes: 6 additions & 0 deletions src/utilities/flexbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,11 @@
flex-grow: 1;
flex-basis: 0;
}

.flex#{$variant}-grow-0 { flex-grow: 0 !important; }

.flex#{$variant}-order-none { order: inherit !important; }
.flex#{$variant}-order-1 { order: 1 !important; }
.flex#{$variant}-order-2 { order: 2 !important; }
}
}
5 changes: 5 additions & 0 deletions src/utilities/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@

@each $breakpoint, $variant in $responsive-variants {
@include breakpoint($breakpoint) {


// Auto varients
.width#{$variant}-auto { width: auto !important; }

/* Set the direction to rtl */
.direction#{$variant}-rtl { direction: rtl !important; }
/* Set the direction to ltr */
Expand Down