mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 22:08:12 +00:00
Poprawki wizualne
This commit is contained in:
@@ -222,8 +222,11 @@ export default class StationCard extends styleMixin {
|
|||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.station-card {
|
.card {
|
||||||
font-size: calc(0.5rem + 0.35vw);
|
padding: 2em;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
font-size: calc(0.5rem + 0.4vw);
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
|
|
||||||
@include bigScreen {
|
@include bigScreen {
|
||||||
@@ -234,11 +237,6 @@ export default class StationCard extends styleMixin {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
padding: 2em;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
|
|||||||
@@ -50,7 +50,10 @@
|
|||||||
:class="{'online': train.online}"
|
:class="{'online': train.online}"
|
||||||
>{{train.online ? "ONLINE" : "OFFLINE"}}</span>
|
>{{train.online ? "ONLINE" : "OFFLINE"}}</span>
|
||||||
|
|
||||||
<button class="button">SZCZEGÓŁOWY ROZKŁAD</button>
|
<button
|
||||||
|
class="button"
|
||||||
|
@click="changeScheduleShowState(train.timetableData.timetableId)"
|
||||||
|
>ROZKŁAD JAZDY</button>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -157,7 +160,7 @@ export default class TrainTable extends Vue {
|
|||||||
routeIcon: string = require("@/assets/icon-route.svg");
|
routeIcon: string = require("@/assets/icon-route.svg");
|
||||||
|
|
||||||
changeScheduleShowState(timetableId: number) {
|
changeScheduleShowState(timetableId: number) {
|
||||||
this.showedSchedule = timetableId;
|
this.showedSchedule = this.showedSchedule === timetableId ? 0 : timetableId;
|
||||||
}
|
}
|
||||||
|
|
||||||
onImageError(e: Event) {
|
onImageError(e: Event) {
|
||||||
@@ -176,7 +179,7 @@ export default class TrainTable extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
changeFocusedTrain(trainNo: number) {
|
changeFocusedTrain(trainNo: number) {
|
||||||
this.$emit('changeFocusedTrain', trainNo.toString());
|
// this.$emit('changeFocusedTrain', trainNo.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -276,10 +279,11 @@ export default class TrainTable extends Vue {
|
|||||||
|
|
||||||
button {
|
button {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
background: #144e75;
|
border-radius: 0.7em;
|
||||||
border-radius: 1em;
|
|
||||||
padding: 0.2em 0.5em;
|
padding: 0.2em 0.5em;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
|
|
||||||
|
border: 1px solid white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user