Skip to content

Commit

Permalink
Generate nat-expand based on list of ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed May 24, 2024
1 parent bf0b3bf commit b929793
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions src/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,11 @@
@mixin nat-expand($orientation) {
flex: 1 1 1e-9px;

&-20 {
max-#{$orientation}: 20%;
}

&-25 {
max-#{$orientation}: 25%;
}

&-33 {
max-#{$orientation}: 33%;
}

&-50 {
max-#{$orientation}: 50%;
}

&-66 {
max-#{$orientation}: 66%;
}

&-75 {
max-#{$orientation}: 75%;
$expands: 20, 25, 33, 50, 66, 75;
@each $expand in $expands {
&-#{$expand} {
max-#{$orientation}: calc($expand * 1%);
}
}
}

Expand Down

0 comments on commit b929793

Please sign in to comment.