@@ -8,7 +8,8 @@ $expand-control-size: 30px;
88$start-end-point-size : 16px ;
99
1010@mixin circle-on-line-with-label ($circle-size ) {
11- $circle-left : ($travel-transfer-station-size - $circle-size ) / 2 ;
11+ $circle-left : (
12+ $travel-transfer-station-size - $circle-size ) / 2 ;
1213 display : flex ;
1314 align-items : center ;
1415
@@ -31,33 +32,38 @@ $start-end-point-size: 16px;
3132
3233.journeyTimeline {
3334 position : relative ;
35+
3436 @include mobile {
3537 font-size : 13px ;
3638 }
39+
40+ @include line-colors ;
3741}
3842
3943.travelSegment {
4044 display : flex ;
4145 flex-direction : column ;
4246 justify-content : space-between ;
4347 position : relative ;
48+
4449 :global (.stem ) {
4550 position : absolute ;
46- height : calc (100% - #{$travel-transfer-station-size } );
47- top : $travel-transfer-station-size / 2 ;
48- left : $travel-transfer-station-size / 2 ;
49- transform : translateX (-50% );
50- width : $stem-width ;
51- background : currentColor ;
52- }
51+ height : calc (100% - #{$travel-transfer-station-size }
52+ );
53+ top : $travel-transfer-station-size / 2 ;
54+ left : $travel-transfer-station-size / 2 ;
55+ transform : translateX (-50% );
56+ width : $stem-width ;
57+ background : currentColor ;
58+ }
5359
54- :global(.inner ) {
55- padding : 10px 0 ;
56- display : flex ;
57- flex-direction : column ;
58- justify-content : space-around ;
59- flex-grow : 1 ;
60- }
60+ :global(.inner ) {
61+ padding : 10px 0 ;
62+ display : flex ;
63+ flex-direction : column ;
64+ justify-content : space-around ;
65+ flex-grow : 1 ;
66+ }
6167}
6268
6369.travelSegmentPassedStation {
@@ -98,6 +104,7 @@ $start-end-point-size: 16px;
98104
99105 & :hover {
100106 cursor : pointer ;
107+
101108 :global (.label ) {
102109 text-decoration : underline ;
103110 }
@@ -132,6 +139,7 @@ $start-end-point-size: 16px;
132139 font-weight : normal ;
133140 margin-left : 0.5em ;
134141 white-space : nowrap ;
142+
135143 @include mobile {
136144 margin-left : auto ;
137145 }
@@ -158,14 +166,17 @@ $start-end-point-size: 16px;
158166
159167 :global(.start-end-point ) {
160168 @include circle-on-line-with-label ($start-end-point-size );
169+
161170 :global (.circle ) {
162171 box-sizing : border-box ;
163172 background : white ;
164173 border : 2px solid cornflowerblue ;
165174 }
175+
166176 :global(.label ) {
167177 font-weight : bold ;
168178 display : flex ;
179+
169180 :global (.time ) {
170181 font-weight : normal ;
171182 margin-left : 0.5em ;
@@ -183,7 +194,7 @@ $start-end-point-size: 16px;
183194 border : 1px dashed cornflowerblue ;
184195 }
185196
186- & > :global(.label ) {
197+ & > :global(.label ) {
187198 display : flex ;
188199 flex-direction : column ;
189200 justify-content : center ;
@@ -197,6 +208,7 @@ $start-end-point-size: 16px;
197208a .stationName {
198209 color : inherit ;
199210 text-decoration : none ;
211+
200212 & :hover {
201213 text-decoration : underline ;
202214 }
0 commit comments