File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -84,4 +84,19 @@ describe('lost-center', function() {
8484 'a { display: flex; flex-flow: row wrap; max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 30px; padding-right: 30px }'
8585 ) ;
8686 } ) ;
87+
88+ it ( 'overrides global flex when told to' , function ( ) {
89+ check (
90+ '@lost flexbox flex; .root { lost-center: 600px no-flex; }' ,
91+ '.root { max-width: 600px; margin-left: auto; margin-right: auto; }\n' +
92+ '.root:before { content: \'\'; display: table; }\n' +
93+ '.root:after { content: \'\'; display: table; clear: both; }'
94+ ) ;
95+ check (
96+ '@lost flexbox flex; .root { lost-center: 600px; lost-center-flexbox: no-flex;}' ,
97+ '.root { max-width: 600px; margin-left: auto; margin-right: auto; }\n' +
98+ '.root:before { content: \'\'; display: table; }\n' +
99+ '.root:after { content: \'\'; display: table; clear: both; }'
100+ ) ;
101+ } ) ;
87102} ) ;
You can’t perform that action at this time.
0 commit comments