Skip to content

Commit

Permalink
fix: remove flexFactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
shakil_mansuri_dream committed Nov 24, 2020
1 parent d7741de commit 8f72926
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
5 changes: 0 additions & 5 deletions flex-layout-factors-literals.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { css } from 'lit-element';

export const flexFactor = css`
flex: 1;
flex-basis: 0.000000001px;
`;

export const flex2 = css`
flex: 2;
`;
Expand Down
3 changes: 2 additions & 1 deletion flex-layout-factors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import * as literals from './flex-layout-factors-literals';
export const factors = css`
.flex,
.flex-1 {
${literals.flexFactor}
flex: 1;
flex-basis: 0.000000001px;
}
.flex-2 {
${literals.flex2}
Expand Down
5 changes: 0 additions & 5 deletions flex-layout-literals.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ export const centerJustified = css`
justify-content: center;
`;

export const flexFactor = css`
flex: 1;
flex-basis: 0.000000001px;
`;

export const flexFactorAuto = css`
flex: 1 1 auto;
`;
Expand Down
3 changes: 2 additions & 1 deletion flex-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const flexLayout = css`
${literals.centerJustified}
}
.flex {
${literals.flexFactor}
flex: 1;
flex-basis: 0.000000001px;
}
.flex-auto {
${literals.flexFactorAuto}
Expand Down

0 comments on commit 8f72926

Please sign in to comment.