mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Nowe wskaźniki statusu ładowania
This commit is contained in:
+14
-63
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app">
|
<div class="app" ref="test">
|
||||||
<div class="app_container">
|
<div class="app_container">
|
||||||
<header class="app_header">
|
<header class="app_header">
|
||||||
<div class="header_body">
|
<div class="header_body">
|
||||||
@@ -35,15 +35,11 @@
|
|||||||
</transition>
|
</transition>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="app_footer flex">© Spythere 2020</footer>
|
<footer class="app_footer">
|
||||||
|
©
|
||||||
<transition name="warning-anim" mode="out-in" tag="div">
|
<a href="https://td2.info.pl/profile/?u=20777" target="_blank">Spythere</a>
|
||||||
<span :key="data.dataConnectionStatus || -1" class="warning" :class="dataStatusClass">
|
2020 | v{{VERSION}}
|
||||||
<span v-if="data.dataConnectionStatus == 0">Pobieranie danych...</span>
|
</footer>
|
||||||
|
|
||||||
<span v-if="data.dataConnectionStatus == 1">Brak odpowiedzi ze strony serwera!</span>
|
|
||||||
</span>
|
|
||||||
</transition>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -63,6 +59,8 @@ export default class App extends Vue {
|
|||||||
@Action("synchronizeData") synchronizeData;
|
@Action("synchronizeData") synchronizeData;
|
||||||
@Getter("getAllData") data;
|
@Getter("getAllData") data;
|
||||||
|
|
||||||
|
private VERSION = "1.3.2";
|
||||||
|
|
||||||
get dataStatusClass() {
|
get dataStatusClass() {
|
||||||
if (this.data.dataConnectionStatus == 0) return "loading";
|
if (this.data.dataConnectionStatus == 0) return "loading";
|
||||||
if (this.data.dataConnectionStatus == 1) return "error";
|
if (this.data.dataConnectionStatus == 1) return "error";
|
||||||
@@ -99,43 +97,6 @@ export default class App extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WARNING MESSAGE
|
|
||||||
.warning {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
font-size: calc(0.7rem + 0.5vw);
|
|
||||||
|
|
||||||
padding: 0.5em;
|
|
||||||
|
|
||||||
&.loading {
|
|
||||||
background: #cc8b21;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.error {
|
|
||||||
background: firebrick;
|
|
||||||
}
|
|
||||||
|
|
||||||
// WARNING SHOW & HIDE ANIMATION
|
|
||||||
&-anim {
|
|
||||||
&-enter-active,
|
|
||||||
&-leave-active {
|
|
||||||
transition: all $animDuration * 3 $animType;
|
|
||||||
}
|
|
||||||
|
|
||||||
&-enter,
|
|
||||||
&-leave-to {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.route {
|
.route {
|
||||||
margin: 0 0.2em;
|
margin: 0 0.2em;
|
||||||
|
|
||||||
@@ -210,10 +171,6 @@ export default class App extends Vue {
|
|||||||
font-size: 0.35em;
|
font-size: 0.35em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MAIN
|
|
||||||
.app_main {
|
|
||||||
}
|
|
||||||
|
|
||||||
// COUNTER
|
// COUNTER
|
||||||
.info_counter {
|
.info_counter {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -233,21 +190,15 @@ export default class App extends Vue {
|
|||||||
|
|
||||||
// FOOTER
|
// FOOTER
|
||||||
.app_footer {
|
.app_footer {
|
||||||
background: #111;
|
|
||||||
padding: 0.3rem;
|
|
||||||
color: white;
|
|
||||||
max-width: 100%;
|
|
||||||
font-size: calc(0.5rem + 0.5vw);
|
font-size: calc(0.5rem + 0.5vw);
|
||||||
|
max-width: 100%;
|
||||||
|
padding: 0.3rem;
|
||||||
|
|
||||||
flex-direction: column;
|
z-index: 10;
|
||||||
|
|
||||||
span {
|
background: #111;
|
||||||
margin: 0.2rem;
|
color: white;
|
||||||
|
|
||||||
&:nth-child(2) {
|
text-align: center;
|
||||||
color: #888;
|
|
||||||
font-size: 0.95em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ export default class Store extends VuexModule {
|
|||||||
trainCount: this.trainCount,
|
trainCount: this.trainCount,
|
||||||
stationCount: this.stationCount,
|
stationCount: this.stationCount,
|
||||||
dataConnectionStatus: this.dataConnectionStatus,
|
dataConnectionStatus: this.dataConnectionStatus,
|
||||||
|
timetableDataStatus: this.timetableLoaded
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+261
-166
@@ -1,38 +1,48 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="stations-view">
|
<div class="stations_view" ref="view">
|
||||||
<div class="stations-wrapper">
|
<div class="stations_wrapper">
|
||||||
<div class="stations-body">
|
<div class="stations_body">
|
||||||
<div class="options">
|
<div class="body_bar">
|
||||||
<div class="options-actions">
|
<div class="bar_actions">
|
||||||
<button
|
<button
|
||||||
class="action-btn"
|
class="action-btn"
|
||||||
:class="{ open: filterCardOpen }"
|
:class="{ open: filterCardOpen }"
|
||||||
@click="() => toggleCardsState('filter')"
|
@click="() => toggleCardsState('filter')"
|
||||||
>
|
>
|
||||||
<img
|
<img :src="require('@/assets/icon-filter2.svg')" alt="icon-filter" />
|
||||||
:src="require('@/assets/icon-filter2.svg')"
|
|
||||||
alt="icon-filter"
|
|
||||||
/>
|
|
||||||
<p>FILTRY</p>
|
<p>FILTRY</p>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="bar_indicators">
|
||||||
|
<transition name="indicator-anim">
|
||||||
|
<span class="indicator_scenery-data" v-if="data.dataConnectionStatus < 2">
|
||||||
|
<img :src="trainIcon" alt="icon-train" />
|
||||||
|
</span>
|
||||||
|
</transition>
|
||||||
|
|
||||||
|
<transition name="indicator-anim">
|
||||||
|
<span class="indicator_timetable-data" v-if="data.timetableDataStatus < 2">
|
||||||
|
<img :src="timetableIcon" alt="icon-timetable" />
|
||||||
|
</span>
|
||||||
|
</transition>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<StationTable
|
<div class="body_table">
|
||||||
:stations="computedStations"
|
<StationTable
|
||||||
:sorterActive="sorterActive"
|
:stations="computedStations"
|
||||||
:setFocusedStation="setFocusedStation"
|
:sorterActive="sorterActive"
|
||||||
:changeSorter="changeSorter"
|
:setFocusedStation="setFocusedStation"
|
||||||
/>
|
:changeSorter="changeSorter"
|
||||||
|
ref="table"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<transition name="card-anim">
|
<transition name="card-anim">
|
||||||
<StationCard
|
<StationCard v-if="focusedStationInfo" :stationInfo="focusedStationInfo" :exit="closeCard" />
|
||||||
v-if="focusedStationInfo"
|
|
||||||
:stationInfo="focusedStationInfo"
|
|
||||||
:exit="closeCard"
|
|
||||||
/>
|
|
||||||
</transition>
|
</transition>
|
||||||
|
|
||||||
<transition name="card-anim">
|
<transition name="card-anim">
|
||||||
@@ -93,6 +103,9 @@ const filterInitStates = {
|
|||||||
export default class StationsView extends Vue {
|
export default class StationsView extends Vue {
|
||||||
STORAGE_KEY: string = "options_saved";
|
STORAGE_KEY: string = "options_saved";
|
||||||
|
|
||||||
|
trainIcon: string = require("@/assets/icon-train.svg");
|
||||||
|
timetableIcon: string = require("@/assets/icon-timetable.svg");
|
||||||
|
|
||||||
sorterActive: { index: number; dir: number } = { index: 0, dir: 1 };
|
sorterActive: { index: number; dir: number } = { index: 0, dir: 1 };
|
||||||
focusedStationName: string = "";
|
focusedStationName: string = "";
|
||||||
filterCardOpen: boolean = false;
|
filterCardOpen: boolean = false;
|
||||||
@@ -101,125 +114,7 @@ export default class StationsView extends Vue {
|
|||||||
inputs = inputData;
|
inputs = inputData;
|
||||||
|
|
||||||
@Getter("getStationList") stationList!: Station[];
|
@Getter("getStationList") stationList!: Station[];
|
||||||
|
@Getter("getAllData") data;
|
||||||
toggleCardsState(name: string): void {
|
|
||||||
if (name == "filter") {
|
|
||||||
this.filterCardOpen = !this.filterCardOpen;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
changeSorter(index: number) {
|
|
||||||
if (index > 5) return;
|
|
||||||
|
|
||||||
if (index == this.sorterActive.index) this.sorterActive.dir = -1 * this.sorterActive.dir;
|
|
||||||
else this.sorterActive.dir = 1;
|
|
||||||
|
|
||||||
this.sorterActive.index = index;
|
|
||||||
}
|
|
||||||
|
|
||||||
changeFilterValue(filter: { name: string; value: number }) {
|
|
||||||
this.filters[filter.name] = filter.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
resetFilters() {
|
|
||||||
this.filters = { ...filterInitStates };
|
|
||||||
}
|
|
||||||
|
|
||||||
get computedStations() {
|
|
||||||
const dir: number = this.sorterActive.dir;
|
|
||||||
// const scheduledTrainList = this.scheduledTrains;
|
|
||||||
|
|
||||||
return this.stationList
|
|
||||||
.filter((station) => {
|
|
||||||
if (!station.reqLevel || station.reqLevel == "-1") return true;
|
|
||||||
|
|
||||||
if ((station.nonPublic || !station.reqLevel) && this.filters["nonPublic"]) return false;
|
|
||||||
|
|
||||||
if (station.online && station.occupiedTo == "KOŃCZY" && this.filters["ending"]) return false;
|
|
||||||
|
|
||||||
if (station.online && this.filters["occupied"]) return false;
|
|
||||||
if (!station.online && this.filters["free"]) return false;
|
|
||||||
|
|
||||||
if (station.default && this.filters["default"]) return false;
|
|
||||||
if (!station.default && this.filters["notDefault"]) return false;
|
|
||||||
|
|
||||||
if (parseInt(station.reqLevel) < this.filters["minLevel"]) return false;
|
|
||||||
|
|
||||||
if (
|
|
||||||
this.filters["no-1track"] &&
|
|
||||||
(station.routes.oneWay.catenary != 0 || station.routes.oneWay.noCatenary != 0)
|
|
||||||
)
|
|
||||||
return false;
|
|
||||||
if (
|
|
||||||
this.filters["no-2track"] &&
|
|
||||||
(station.routes.twoWay.catenary != 0 || station.routes.twoWay.noCatenary != 0)
|
|
||||||
)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (station.routes.oneWay.catenary < this.filters["minOneWayCatenary"]) return false;
|
|
||||||
if (station.routes.oneWay.noCatenary < this.filters["minOneWay"]) return false;
|
|
||||||
|
|
||||||
if (station.routes.twoWay.catenary < this.filters["minTwoWayCatenary"]) return false;
|
|
||||||
if (station.routes.twoWay.noCatenary < this.filters["minTwoWay"]) return false;
|
|
||||||
|
|
||||||
if (this.filters[station.controlType]) return false;
|
|
||||||
if (this.filters[station.signalType]) return false;
|
|
||||||
|
|
||||||
if (this.filters["SPK"] && (station.controlType === "SPK" || station.controlType.includes("+SPK")))
|
|
||||||
return false;
|
|
||||||
if (this.filters["SCS"] && (station.controlType === "SCS" || station.controlType.includes("+SCS")))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (
|
|
||||||
this.filters["SCS"] &&
|
|
||||||
this.filters["SPK"] &&
|
|
||||||
(station.controlType.includes("SPK") || station.controlType.includes("SCS"))
|
|
||||||
)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (this.filters["mechaniczne"] && station.controlType.includes("mechaniczne")) return false;
|
|
||||||
|
|
||||||
if (this.filters["ręczne"] && station.controlType.includes("ręczne")) return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
})
|
|
||||||
.sort((a, b) => {
|
|
||||||
switch (this.sorterActive.index) {
|
|
||||||
case 1:
|
|
||||||
if (parseInt(a.reqLevel) > parseInt(b.reqLevel)) return dir;
|
|
||||||
if (parseInt(a.reqLevel) < parseInt(b.reqLevel)) return -dir;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
if (a.statusTimestamp > b.statusTimestamp) return dir;
|
|
||||||
if (a.statusTimestamp < b.statusTimestamp) return -dir;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
if (a.dispatcherName.toLowerCase() > b.dispatcherName.toLowerCase()) return dir;
|
|
||||||
if (a.dispatcherName.toLowerCase() < b.dispatcherName.toLowerCase()) return -dir;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 4:
|
|
||||||
if (a.dispatcherExp > b.dispatcherExp) return dir;
|
|
||||||
if (a.dispatcherExp < b.dispatcherExp) return -dir;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 5:
|
|
||||||
if (a.currentUsers > b.currentUsers) return dir;
|
|
||||||
if (a.currentUsers < b.currentUsers) return -dir;
|
|
||||||
if (a.maxUsers > b.maxUsers) return dir;
|
|
||||||
if (a.maxUsers < b.maxUsers) return -dir;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (a.stationName.toLowerCase() >= b.stationName.toLowerCase()) return dir;
|
|
||||||
return -dir;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
const storage = window.localStorage;
|
const storage = window.localStorage;
|
||||||
@@ -246,6 +141,159 @@ export default class StationsView extends Vue {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log((this.$refs.table as Vue).$el.clientWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
toggleCardsState(name: string): void {
|
||||||
|
if (name == "filter") {
|
||||||
|
this.filterCardOpen = !this.filterCardOpen;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
changeSorter(index: number) {
|
||||||
|
if (index > 5) return;
|
||||||
|
|
||||||
|
if (index == this.sorterActive.index)
|
||||||
|
this.sorterActive.dir = -1 * this.sorterActive.dir;
|
||||||
|
else this.sorterActive.dir = 1;
|
||||||
|
|
||||||
|
this.sorterActive.index = index;
|
||||||
|
}
|
||||||
|
|
||||||
|
changeFilterValue(filter: { name: string; value: number }) {
|
||||||
|
this.filters[filter.name] = filter.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
resetFilters() {
|
||||||
|
this.filters = { ...filterInitStates };
|
||||||
|
}
|
||||||
|
|
||||||
|
get computedStations() {
|
||||||
|
const dir: number = this.sorterActive.dir;
|
||||||
|
// const scheduledTrainList = this.scheduledTrains;
|
||||||
|
|
||||||
|
return this.stationList
|
||||||
|
.filter((station) => {
|
||||||
|
if (!station.reqLevel || station.reqLevel == "-1") return true;
|
||||||
|
|
||||||
|
if (
|
||||||
|
(station.nonPublic || !station.reqLevel) &&
|
||||||
|
this.filters["nonPublic"]
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (
|
||||||
|
station.online &&
|
||||||
|
station.occupiedTo == "KOŃCZY" &&
|
||||||
|
this.filters["ending"]
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (station.online && this.filters["occupied"]) return false;
|
||||||
|
if (!station.online && this.filters["free"]) return false;
|
||||||
|
|
||||||
|
if (station.default && this.filters["default"]) return false;
|
||||||
|
if (!station.default && this.filters["notDefault"]) return false;
|
||||||
|
|
||||||
|
if (parseInt(station.reqLevel) < this.filters["minLevel"]) return false;
|
||||||
|
|
||||||
|
if (
|
||||||
|
this.filters["no-1track"] &&
|
||||||
|
(station.routes.oneWay.catenary != 0 ||
|
||||||
|
station.routes.oneWay.noCatenary != 0)
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
if (
|
||||||
|
this.filters["no-2track"] &&
|
||||||
|
(station.routes.twoWay.catenary != 0 ||
|
||||||
|
station.routes.twoWay.noCatenary != 0)
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (station.routes.oneWay.catenary < this.filters["minOneWayCatenary"])
|
||||||
|
return false;
|
||||||
|
if (station.routes.oneWay.noCatenary < this.filters["minOneWay"])
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (station.routes.twoWay.catenary < this.filters["minTwoWayCatenary"])
|
||||||
|
return false;
|
||||||
|
if (station.routes.twoWay.noCatenary < this.filters["minTwoWay"])
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (this.filters[station.controlType]) return false;
|
||||||
|
if (this.filters[station.signalType]) return false;
|
||||||
|
|
||||||
|
if (
|
||||||
|
this.filters["SPK"] &&
|
||||||
|
(station.controlType === "SPK" ||
|
||||||
|
station.controlType.includes("+SPK"))
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
if (
|
||||||
|
this.filters["SCS"] &&
|
||||||
|
(station.controlType === "SCS" ||
|
||||||
|
station.controlType.includes("+SCS"))
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (
|
||||||
|
this.filters["SCS"] &&
|
||||||
|
this.filters["SPK"] &&
|
||||||
|
(station.controlType.includes("SPK") ||
|
||||||
|
station.controlType.includes("SCS"))
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (
|
||||||
|
this.filters["mechaniczne"] &&
|
||||||
|
station.controlType.includes("mechaniczne")
|
||||||
|
)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (this.filters["ręczne"] && station.controlType.includes("ręczne"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
})
|
||||||
|
.sort((a, b) => {
|
||||||
|
switch (this.sorterActive.index) {
|
||||||
|
case 1:
|
||||||
|
if (parseInt(a.reqLevel) > parseInt(b.reqLevel)) return dir;
|
||||||
|
if (parseInt(a.reqLevel) < parseInt(b.reqLevel)) return -dir;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
if (a.statusTimestamp > b.statusTimestamp) return dir;
|
||||||
|
if (a.statusTimestamp < b.statusTimestamp) return -dir;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
if (a.dispatcherName.toLowerCase() > b.dispatcherName.toLowerCase())
|
||||||
|
return dir;
|
||||||
|
if (a.dispatcherName.toLowerCase() < b.dispatcherName.toLowerCase())
|
||||||
|
return -dir;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
if (a.dispatcherExp > b.dispatcherExp) return dir;
|
||||||
|
if (a.dispatcherExp < b.dispatcherExp) return -dir;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 5:
|
||||||
|
if (a.currentUsers > b.currentUsers) return dir;
|
||||||
|
if (a.currentUsers < b.currentUsers) return -dir;
|
||||||
|
if (a.maxUsers > b.maxUsers) return dir;
|
||||||
|
if (a.maxUsers < b.maxUsers) return -dir;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (a.stationName.toLowerCase() >= b.stationName.toLowerCase())
|
||||||
|
return dir;
|
||||||
|
return -dir;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
closeCard() {
|
closeCard() {
|
||||||
@@ -258,7 +306,9 @@ export default class StationsView extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get focusedStationInfo() {
|
get focusedStationInfo() {
|
||||||
return this.computedStations.find((station) => station.stationName === this.focusedStationName);
|
return this.computedStations.find(
|
||||||
|
(station) => station.stationName === this.focusedStationName
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -267,15 +317,6 @@ export default class StationsView extends Vue {
|
|||||||
@import "../styles/variables.scss";
|
@import "../styles/variables.scss";
|
||||||
@import "../styles/responsive.scss";
|
@import "../styles/responsive.scss";
|
||||||
|
|
||||||
.stations-view {
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
padding: 1rem 0;
|
|
||||||
min-height: 100%;
|
|
||||||
|
|
||||||
font-size: calc(0.6rem + 0.9vw);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-anim {
|
.card-anim {
|
||||||
&-enter-active,
|
&-enter-active,
|
||||||
&-leave-active {
|
&-leave-active {
|
||||||
@@ -289,9 +330,69 @@ export default class StationsView extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.options {
|
.indicator-anim {
|
||||||
&-actions {
|
&-enter-active,
|
||||||
|
&-leave-active {
|
||||||
|
transition: all 0.25s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-enter,
|
||||||
|
&-leave-to {
|
||||||
|
transform: translateY(100%);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.stations_view {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
padding: 1rem 0;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
|
font-size: calc(0.6rem + 0.9vw);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stations_wrapper {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stations_body {
|
||||||
|
margin: 0 auto;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
& > .body_bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar_indicators {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-end;
|
||||||
|
|
||||||
|
& > span {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
width: 1.2em;
|
||||||
|
height: 1.2em;
|
||||||
|
|
||||||
|
margin-left: 0.5em;
|
||||||
|
|
||||||
|
background-color: #e68e00;
|
||||||
|
border-radius: 0.5em 0.5em 0 0;
|
||||||
|
|
||||||
|
& > img {
|
||||||
|
width: 0.9em;
|
||||||
|
animation: blinkAnim 2s ease-in-out infinite forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include smallScreen() {
|
||||||
|
width: 1.5em;
|
||||||
|
height: 1.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,26 +433,20 @@ export default class StationsView extends Vue {
|
|||||||
&.open {
|
&.open {
|
||||||
color: $accentCol;
|
color: $accentCol;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@include smallScreen {
|
@include smallScreen() {
|
||||||
.options {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-btn {
|
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.stations-wrapper {
|
@keyframes blinkAnim {
|
||||||
display: flex;
|
0%,
|
||||||
justify-content: center;
|
100% {
|
||||||
}
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.stations-body {
|
50% {
|
||||||
margin: 0 auto;
|
opacity: 0;
|
||||||
overflow: auto;
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user