revamp postoju i strzałek w RJ scenerii

This commit is contained in:
2023-09-05 16:48:26 +02:00
parent ee7c50f59b
commit eb7c2d7132
+30 -76
View File
@@ -121,25 +121,17 @@
</span> </span>
<span class="schedule-stop"> <span class="schedule-stop">
<span class="stop-time"> <span class="stop-connection">
<span v-if="scheduledTrain.stopInfo.stopTime"> {{ scheduledTrain.arrivingLine }}
{{ scheduledTrain.stopInfo.stopTime }}
{{ scheduledTrain.stopInfo.stopType || 'pt' }}
</span>
<span v-else>&nbsp;</span>
</span> </span>
<span class="arrow"></span> <span class="stop-time">
{{ scheduledTrain.stopInfo.stopTime || '' }}
{{ scheduledTrain.stopInfo.stopTime ? scheduledTrain.stopInfo.stopType || 'pt' : '' }}
</span>
<span class="stop-line"> <span class="stop-connection">
<span> {{ scheduledTrain.departureLine }}
{{ scheduledTrain.arrivingLine }}
</span>
<span></span>
<span>
{{ scheduledTrain.departureLine }}
</span>
</span> </span>
</span> </span>
@@ -341,8 +333,8 @@ export default defineComponent({
max-width: 1100px; max-width: 1100px;
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2em 0.5em; gap: 1.2em 0.5em;
overflow: hidden; overflow: hidden;
@@ -368,7 +360,9 @@ export default defineComponent({
&-schedule { &-schedule {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); grid-template-columns: repeat(3, 1fr);
gap: 0.2em;
align-items: center;
width: 100%; width: 100%;
max-width: 400px; max-width: 400px;
@@ -400,33 +394,6 @@ export default defineComponent({
} }
} }
.arrow {
border: solid white;
border-width: 0 2px 2px 0;
display: inline-block;
padding: 2px;
margin-left: 50px;
position: relative;
transform: rotate(-45deg);
&::before {
content: '';
position: absolute;
display: block;
width: 55px;
height: 3px;
top: 4px;
left: 4px;
transform: translate(-100%, -1px) rotate(45deg);
transform-origin: right bottom;
background: white;
}
}
.general-info { .general-info {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@@ -453,47 +420,34 @@ export default defineComponent({
.schedule { .schedule {
&-arrival, &-arrival,
&-stop,
&-departure { &-departure {
display: flex;
justify-content: center;
align-items: center;
margin: 0 0.3rem;
font-size: 1.15em; font-size: 1.15em;
} }
&-stop { &-stop {
position: relative; display: grid;
display: flex; grid-template-columns: repeat(3, 1fr);
flex-direction: column; gap: 0.5em;
font-size: 0.9em; align-items: end;
padding: 0.3em 0; .stop-connection {
font-size: 0.95em;
.stop-line {
display: flex;
position: absolute;
span {
width: 65px;
word-break: break-all;
}
span:first-child {
text-align: right;
}
span:last-child {
text-align: left;
}
} }
.stop-time { .stop-time {
position: absolute; position: relative;
transform: translateY(-15px); inline-size: max-content;
align-self: center;
font-size: 0.9em;
color: $accentCol; color: $accentCol;
&::after {
content: '\027F6';
display: block;
font-size: 2.2em;
line-height: 0.65em;
}
} }
} }
} }