Skip to content

Commit

Permalink
fix: some style spaghetti
Browse files Browse the repository at this point in the history
- Global new headsign style broke route number rendering in many places
- New BoardingInfo component had style which was defined under main card
- Route number styling in navi is still somewhat messy and needs fixing
  • Loading branch information
vesameskanen committed Jan 24, 2025
1 parent ccfb926 commit 77b3455
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions app/component/itinerary/navigator/navigator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ $fixed-width-padding: 16px;
border-radius: $border-radius;
}

.headsign {
margin-left: 10px;
font-size: $font-size-small;
max-width: 85%;
text-align: left;
align-content: center;
}

.bold {
font-weight: $font-weight-medium;
}
Expand Down Expand Up @@ -112,6 +104,40 @@ $fixed-width-padding: 16px;
}
}

.boarding {
display: flex;
margin-top: 3px;
align-items: flex-start;
flex-direction: column;

&.with-icon {
margin-left: var(--space-xl);

.wait-duration {
margin-top: var(--space-xs);
margin-left: var(--space-l);
}
}

.wait-duration {
margin-top: var(--space-xs);
}

.icon {
margin-top: 2px;
height: 25px;
width: 25px;
}

.headsign {
margin-left: 10px;
font-size: $font-size-small;
max-width: 85%;
text-align: left;
align-content: center;
}
}

.navi-top-card {
margin: 0 var(--space-s) 5px var(--space-s);
border-radius: 8px;
Expand Down Expand Up @@ -141,32 +167,6 @@ $fixed-width-padding: 16px;
width: 100%;
margin: var(--space-m) var(--space-l);

.boarding {
display: flex;
margin-top: 3px;
align-items: flex-start;
flex-direction: column;

&.with-icon {
margin-left: var(--space-xl);

.wait-duration {
margin-top: var(--space-xs);
margin-left: var(--space-l);
}
}

.wait-duration {
margin-top: var(--space-xs);
}

.icon {
margin-top: 2px;
height: 25px;
width: 25px;
}
}

.content {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 77b3455

Please sign in to comment.