Skip to content

Commit

Permalink
feat: place items property for flex && nits
Browse files Browse the repository at this point in the history
  • Loading branch information
mathdebate09 committed Sep 14, 2024
1 parent b5083bd commit b8ba803
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/flexbox/align.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const align = {
content_stretch: {
alignContent: 'stretch',
},
content_space_between: {
content_between: {
alignContent: 'space-between',
},
content_space_around: {
content_around: {
alignContent: 'space-around',
},
self_auto: {
Expand Down
6 changes: 3 additions & 3 deletions src/flexbox/justify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const justify = {
content_end: {
justifyContent: 'flex-end',
},
content_space_between: {
content_between: {
justifyContent: 'space-between',
},
content_space_around: {
content_around: {
justifyContent: 'space-around',
},
content_space_evenly: {
content_evenly: {
justifyContent: 'space-evenly',
},
};
Expand Down
32 changes: 32 additions & 0 deletions src/flexbox/place.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const place = {
items_center: {
alignItems: 'center',
justifyContent: 'center',
},
items_stretch: {
alignItems: 'stretch',
justifyContent: 'stretch',
},
items_start: {
alignItems: 'flex-start',
justifyContent: 'flex-start',
},
items_end: {
alignItems: 'flex-end',
justifyContent: 'flex-end',
},
items_between: {
alignItems: 'center',
justifyContent: 'space-between',
},
items_around: {
alignItems: 'center',
justifyContent: 'space-around',
},
items_evenly: {
alignItems: 'center',
justifyContent: 'space-evenly',
},
};

export default place;

0 comments on commit b8ba803

Please sign in to comment.