Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Use long-hand flex properties
Browse files Browse the repository at this point in the history
  • Loading branch information
artpark committed Apr 10, 2024
1 parent 47550c5 commit 5e3e828
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/terra-arrange/src/Arrange.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@

// Makes sure fill expands to fill the remaining space of its parent container
.fill {
flex: 1 1 auto;
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto;
min-width: 0;
}

// Styles specific to align items independently of each other
.fit {
align-self: flex-start;
flex: 0 0 auto;
flex-grow: 0;
flex-shrink: 0;
flex-basis: auto;
}

.center {
Expand All @@ -41,7 +45,9 @@

@media (max-width: 320px), (max-height: 256px) {
.fit {
flex: 0 0;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 0;
}
}
}

0 comments on commit 5e3e828

Please sign in to comment.