@@ -24,6 +24,10 @@ module.exports = function lostCenterDecl(css, settings, result) {
2424 lostCenterPadding = declArr [ 1 ] ;
2525 }
2626
27+ if ( lostCenterFlexbox !== 'flex' ) {
28+ lostCenterFlexbox = settings . flexbox ;
29+ }
30+
2731 if ( declArr . indexOf ( 'flex' ) !== - 1 ) {
2832 lostCenterFlexbox = 'flex' ;
2933 }
@@ -32,6 +36,7 @@ module.exports = function lostCenterDecl(css, settings, result) {
3236 lostCenterFlexbox = 'no-flex' ;
3337 }
3438
39+ lostCenterFlexbox = lgLogic . parseLostProperty ( decl . parent . nodes , 'lost-center-flexbox' , lostCenterFlexbox ) ;
3540 lostCenterPadding = lgLogic . parseLostProperty ( decl . parent . nodes , 'lost-center-padding' , lostCenterPadding ) ;
3641 lostColumnRounder = lgLogic . parseLostProperty ( decl . parent . nodes , 'lost-column-rounder' , lostColumnRounder ) ;
3742
@@ -42,12 +47,6 @@ module.exports = function lostCenterDecl(css, settings, result) {
4247 lostUnit = settings . gridUnit ;
4348 }
4449
45- lostCenterFlexbox = lgLogic . parseLostProperty ( decl . parent . nodes , 'lost-center-flexbox' , lostCenterFlexbox ) ;
46-
47- if ( lostCenterFlexbox !== 'flex' ) {
48- lostCenterFlexbox = settings . flexbox ;
49- }
50-
5150 if ( declArr [ 0 ] !== undefined && isFractionValue ( declArr [ 0 ] ) ) {
5251 lostCenterMaxWidth = lgLogic . calcValue ( declArr [ 0 ] , lostColumnGutter , lostColumnRounder , lostUnit ) ;
5352 } else {
0 commit comments