Skip to content

Commit

Permalink
Merge pull request #45 from voraciousdev/support-flex-grow-and-shrink
Browse files Browse the repository at this point in the history
Add support for flex-grow and flex-shrink
  • Loading branch information
abdumu authored Apr 12, 2021
2 parents f4b4b18 + 84e1254 commit 7fd3e58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Framework/BootstrapFramework.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ protected function flexElements(): array
$items['flex'.(empty($btMedia) ? '' : '-').$btMedia.'-'.$key] = (empty($twMedia) ? '' : $twMedia.':').'flex-'.str_replace('column', 'col', $key);
}

foreach (['grow-0', 'grow-1', 'shrink-0', 'shrink-1'] as $key) {
$items['flex'.(empty($btMedia) ? '' : '-').$btMedia.'-'.$key] = (empty($twMedia) ? '' : $twMedia.':').'flex-'.str_replace('-1', '', $key);
}

foreach (['start', 'end', 'center', 'between', 'around'] as $key) {
$items['justify-content'.(empty($btMedia) ? '' : '-').$btMedia.'-'.$key] = (empty($twMedia) ? '' : $twMedia.':').'justify-'.$key;
}
Expand Down

0 comments on commit 7fd3e58

Please sign in to comment.