From 84e12549fcc0fadea19b3378f3deb547e6d6fc93 Mon Sep 17 00:00:00 2001 From: "David R. Myers" Date: Fri, 12 Mar 2021 17:47:35 -0500 Subject: [PATCH] Add support for flex-grow and flex-shrink --- src/Framework/BootstrapFramework.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Framework/BootstrapFramework.php b/src/Framework/BootstrapFramework.php index 8df758d..1d6a617 100644 --- a/src/Framework/BootstrapFramework.php +++ b/src/Framework/BootstrapFramework.php @@ -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; }