Skip to content

Commit

Permalink
feat 👍 accept unit less value for repeat column
Browse files Browse the repository at this point in the history
  • Loading branch information
synchrovision committed Jan 8, 2022
1 parent 80d1570 commit f55abfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_grd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
@each $key,$val in $grd{
@if $key == rc or $key == rr{
@if(type-of($val) == 'list'){
$v:minmax(nth($val,1),1fr);
$v:minmax(cp_get_size_values(nth($val,1)),1fr);
$vals:();
@for $i from 1 through nth($val,2){
$vals:append($vals,$v);
}
$val:repeat(auto-fill,$vals)
}
@else{
$val:repeat(auto-fill,minmax($val,1fr));
$val:repeat(auto-fill,minmax(cp_get_size_values($val),1fr));
}
}
@if $key == r{
Expand Down

0 comments on commit f55abfb

Please sign in to comment.