Skip to content

Commit 63bc4f3

Browse files
authored
Merge pull request #5460 from HSLdevcom/fix-header-alignment
Fix stop view header alignment
2 parents 0c283d3 + 44f2e2a commit 63bc4f3

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

app/component/stop/stop.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,18 +285,23 @@
285285
}
286286

287287
.route-number-header {
288-
width: 4em;
288+
flex: 0 0 fit-content;
289+
margin-right: $route-title-margin;
289290
}
290291

291292
.route-destination-header {
292-
flex: 1 0 176px;
293+
flex: 1 0 fit-content;
294+
margin-right: 1em;
293295
}
294296

295297
.time-header {
296-
font-weight: inherit;
298+
flex: 0 0 fit-content;
299+
margin-right: 1em;
300+
}
301+
302+
.track-header {
303+
flex: 0 0 fit-content;
297304
text-align: right;
298-
width: 3.5em;
299-
margin-right: 2em;
300305
}
301306
}
302307

sass/themes/default/_theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ $nav-content-color: false;
6868
$disclaimer-background-color: rgba(254, 209, 0, 0.1);
6969
$disclaimer-border-color: #fed100;
7070
$navigation-background-color: $background-color-lighter;
71+
$route-title-margin: 2.7em;
7172

7273
/* Vehicle palette */
7374
$airplane-color: $livi-airplane-blue;

sass/themes/matka/_theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ $info-icon-blue: $primary-color;
5555
/* Component palette */
5656
$disclaimer-background-color: #fff;
5757
$disclaimer-border-color: #000;
58+
$route-title-margin: 1em;
5859

5960
/* Borders */
6061
$border-radius-disclaimer: $border-radius-bigger;

0 commit comments

Comments
 (0)