mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawiono responsywność
This commit is contained in:
@@ -48,10 +48,7 @@
|
|||||||
@keydown.space="openForumSite($event, station.generalInfo?.url)"
|
@keydown.space="openForumSite($event, station.generalInfo?.url)"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<td
|
<td class="station_name" :class="station.generalInfo?.availability">
|
||||||
class="station_name"
|
|
||||||
:class="station.generalInfo?.availability"
|
|
||||||
>
|
|
||||||
<b v-if="station.generalInfo?.project" style="color: salmon">{{ station.generalInfo.project }}</b>
|
<b v-if="station.generalInfo?.project" style="color: salmon">{{ station.generalInfo.project }}</b>
|
||||||
{{ station.name }}
|
{{ station.name }}
|
||||||
</td>
|
</td>
|
||||||
@@ -144,22 +141,16 @@
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="station_info">
|
<td class="station_info" v-if="station.generalInfo">
|
||||||
<span v-if="station.generalInfo">
|
<span
|
||||||
<span
|
class="scenery-icon icon-info"
|
||||||
class="scenery-icon icon-info"
|
:class="station.generalInfo.controlType.replace('+', '-')"
|
||||||
:class="station.generalInfo.controlType.replace('+', '-')"
|
|
||||||
:title="$t('desc.control-type') + $t(`controls.${station.generalInfo.controlType}`)"
|
|
||||||
v-html="getControlTypeAbbrev(station.generalInfo.controlType)"
|
|
||||||
>
|
|
||||||
</span>
|
|
||||||
<!-- <img
|
|
||||||
class="icon-info"
|
|
||||||
v-if="station.generalInfo?.controlType"
|
|
||||||
:src="require(`@/assets/icon-${station.generalInfo.controlType}.svg`)"
|
|
||||||
:alt="station.generalInfo.controlType"
|
|
||||||
:title="$t('desc.control-type') + $t(`controls.${station.generalInfo.controlType}`)"
|
:title="$t('desc.control-type') + $t(`controls.${station.generalInfo.controlType}`)"
|
||||||
/> -->
|
v-html="getControlTypeAbbrev(station.generalInfo.controlType)"
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
<img
|
<img
|
||||||
class="icon-info"
|
class="icon-info"
|
||||||
v-if="station.generalInfo.SUP"
|
v-if="station.generalInfo.SUP"
|
||||||
@@ -167,7 +158,9 @@
|
|||||||
alt="SUP (RASP-UZK)"
|
alt="SUP (RASP-UZK)"
|
||||||
:title="$t('desc.SUP')"
|
:title="$t('desc.SUP')"
|
||||||
/>
|
/>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
<img
|
<img
|
||||||
class="icon-info"
|
class="icon-info"
|
||||||
v-if="station.generalInfo.signalType"
|
v-if="station.generalInfo.signalType"
|
||||||
@@ -175,7 +168,9 @@
|
|||||||
:alt="station.generalInfo.signalType"
|
:alt="station.generalInfo.signalType"
|
||||||
:title="$t('desc.signals-type') + $t(`signals.${station.generalInfo.signalType}`)"
|
:title="$t('desc.signals-type') + $t(`signals.${station.generalInfo.signalType}`)"
|
||||||
/>
|
/>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span>
|
||||||
<img
|
<img
|
||||||
class="icon-info"
|
class="icon-info"
|
||||||
v-if="station.generalInfo && station.generalInfo.routes.sblRouteNames.length > 0"
|
v-if="station.generalInfo && station.generalInfo.routes.sblRouteNames.length > 0"
|
||||||
@@ -184,8 +179,10 @@
|
|||||||
:title="$t('desc.SBL') + `${station.generalInfo.routes.sblRouteNames.join(',')}`"
|
:title="$t('desc.SBL') + `${station.generalInfo.routes.sblRouteNames.join(',')}`"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
</td>
|
||||||
|
|
||||||
<img v-else class="icon-info" :src="unknownIcon" alt="icon-unknown" :title="$t('desc.unknown')" />
|
<td class="station_info" v-else>
|
||||||
|
<img class="icon-info" :src="unknownIcon" alt="icon-unknown" :title="$t('desc.unknown')" />
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="station_users" :class="{ inactive: !station.onlineInfo }">
|
<td class="station_users" :class="{ inactive: !station.onlineInfo }">
|
||||||
@@ -414,7 +411,8 @@ tr.station {
|
|||||||
|
|
||||||
@include smallScreen() {
|
@include smallScreen() {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.1em 0.5em;
|
padding: 0.3em 0.5em;
|
||||||
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -463,20 +461,26 @@ td.station {
|
|||||||
|
|
||||||
&_info {
|
&_info {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
/* Images */
|
||||||
.icon-info {
|
.icon-info {
|
||||||
font-size: 0.8rem;
|
display: flex;
|
||||||
width: 2rem;
|
justify-content: center;
|
||||||
height: 2rem;
|
align-items: center;
|
||||||
|
|
||||||
line-height: 2rem;
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
margin: 0 0.2em;
|
margin: 0 0.2em;
|
||||||
vertical-align: middle;
|
|
||||||
|
|
||||||
outline: 2px solid #444;
|
outline: 2px solid #444;
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
|
|
||||||
|
@include smallScreen() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -519,4 +523,5 @@ td.station {
|
|||||||
|
|
||||||
background: #333;
|
background: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
p
|
|
||||||
<template>
|
<template>
|
||||||
<div class="train-schedule" @click="toggleShowState">
|
<div class="train-schedule" @click="toggleShowState">
|
||||||
<div class="train-stock">
|
<div class="train-stock">
|
||||||
@@ -51,7 +50,7 @@ p
|
|||||||
|
|
||||||
<span class="stop-name" v-html="stop.stopName"> </span>
|
<span class="stop-name" v-html="stop.stopName"> </span>
|
||||||
|
|
||||||
<stop-date :stop="stop" />
|
<StopDate :stop="stop" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="stop_line" v-if="i < train.timetableData!.followingStops.length - 1">
|
<div class="stop_line" v-if="i < train.timetableData!.followingStops.length - 1">
|
||||||
@@ -194,7 +193,7 @@ $stopNameClr: #22a8d1;
|
|||||||
}
|
}
|
||||||
ul.stock-list {
|
ul.stock-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: end;
|
align-items: flex-end;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
|
|
||||||
@@ -203,7 +202,6 @@ ul.stock-list {
|
|||||||
color: #aaa;
|
color: #aaa;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.schedule-wrapper {
|
.schedule-wrapper {
|
||||||
|
|||||||
Reference in New Issue
Block a user