Skip to content

Commit

Permalink
fix: add flex properties to grid GH-25
Browse files Browse the repository at this point in the history
  • Loading branch information
RickEyre committed Apr 11, 2020
1 parent 47a8f0e commit 034686e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/panda-san/src/layout/grid.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.grid {
display: flex;
flex-wrap: wrap;
width: 100%;
}

.column {
flex-grow: 1;
flex-shrink: 1;
padding: px-to-rem($grid-column-gap / 2);

@for $column-size from 1 through 12 {
&--is-#{$column-size} {
width: calc(100% / 12 * #{$column-size});
flex: none;
}

&--is-offset-#{$column-size} {
Expand All @@ -20,7 +23,7 @@
@for $column-size from 1 through 12 {
@include breakpoint($breakpoint-name) {
&--is-#{$column-size}-#{$breakpoint-name} {
width: calc(100% / 12 * #{$column-size});
flex: none;
}

&--is-offset-#{$column-size}-#{$breakpoint-name} {
Expand Down

0 comments on commit 034686e

Please sign in to comment.