Skip to content

Commit

Permalink
Add comments to explain flexbox styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Apr 11, 2018
1 parent 16d901a commit 5d72434
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/steps/_steps_horizontal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

/**
* 1. Ensure the connecting lines stays behind the number
* 2. Make each step the same width
* 3. Make the content of each step align to the top, even if the steps are of varying heights,
* e.g. due to some of their titles wrapping to multiple lines
*/

.euiStepsHorizontal {
Expand All @@ -16,13 +19,13 @@

// Button containing item
.euiStepHorizontal {
flex-grow: 1;
flex-basis: 0%;
flex-grow: 1; /* 2 */
flex-basis: 0%; /* 2 */
padding: $euiSizeL $euiSize $euiSize;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
display: flex; /* 3 */
flex-direction: column; /* 3 */
align-items: center; /* 3 */
justify-content: flex-start; /* 3 */
cursor: pointer;

// focus & hover state
Expand Down

0 comments on commit 5d72434

Please sign in to comment.