mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Poprawki w responsywności
This commit is contained in:
@@ -60,6 +60,7 @@ export default defineComponent({});
|
|||||||
|
|
||||||
.button_content {
|
.button_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -106,62 +106,34 @@ export default defineComponent({
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '../../styles/responsive';
|
@import '../../styles/responsive';
|
||||||
|
|
||||||
.journal-options {
|
|
||||||
@include smallScreen() {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.options {
|
.options {
|
||||||
&_wrapper {
|
&_wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&_content {
|
&_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-wrap: wrap;
|
||||||
align-items: flex-start;
|
|
||||||
|
|
||||||
.content_search,
|
.content_search,
|
||||||
.content_select {
|
.content_select {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
|
||||||
|
|
||||||
@include smallScreen() {
|
padding: 0.25em 0.25em 0 0;
|
||||||
padding: 0 1em;
|
|
||||||
|
|
||||||
.content_select {
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content_search {
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content_search .search {
|
.search {
|
||||||
&-box {
|
&-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
background: #333;
|
background: #333;
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
|
margin-right: 0.25em;
|
||||||
margin: 0.5em 0.5em 0.5em 0;
|
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
width: 100%;
|
|
||||||
margin: 0.5em auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-input {
|
&-input {
|
||||||
@@ -182,4 +154,46 @@ export default defineComponent({
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include smallScreen() {
|
||||||
|
.journal-options {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.options {
|
||||||
|
&_wrapper {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&_content {
|
||||||
|
padding: 0 1em;
|
||||||
|
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.content_select {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_search {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
&-box,
|
||||||
|
&-button {
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-box {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-button {
|
||||||
|
width: 80%;
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -323,12 +323,6 @@ h3.timetable-header {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.loading,
|
&.loading,
|
||||||
&.empty {
|
&.empty {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
@@ -349,22 +343,12 @@ h3.timetable-header {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-schedule {
|
&-schedule {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
|
||||||
font-size: 1.15em;
|
font-size: 1.15em;
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
width: 100%;
|
|
||||||
margin: 0.5em 0;
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -496,4 +480,25 @@ h3.timetable-header {
|
|||||||
.departure-time.terminates {
|
.departure-time.terminates {
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include smallScreen() {
|
||||||
|
.timetable {
|
||||||
|
&-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-general {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-schedule {
|
||||||
|
width: 100%;
|
||||||
|
margin: 0.5em 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -168,6 +168,9 @@ export default defineComponent({
|
|||||||
handleChangeRegion() {
|
handleChangeRegion() {
|
||||||
this.$store.commit(MUTATIONS.SET_REGION, this.currentRegion);
|
this.$store.commit(MUTATIONS.SET_REGION, this.currentRegion);
|
||||||
|
|
||||||
|
console.log(this.currentRegion);
|
||||||
|
|
||||||
|
|
||||||
this.closeCard();
|
this.closeCard();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
class="sort-icon"
|
class="sort-icon"
|
||||||
v-if="sorterActive.index == i"
|
v-if="sorterActive.index == i"
|
||||||
:src="sorterActive.dir == 1 ? ascIcon : descIcon"
|
:src="sorterActive.dir == 1 ? ascIcon : descIcon"
|
||||||
alt
|
alt="sort icon"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
class="sort-icon"
|
class="sort-icon"
|
||||||
v-if="sorterActive.index == i + 7"
|
v-if="sorterActive.index == i + 7"
|
||||||
:src="sorterActive.dir == 1 ? ascIcon : descIcon"
|
:src="sorterActive.dir == 1 ? ascIcon : descIcon"
|
||||||
alt
|
alt="sort icon"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
|
|||||||
@@ -2,23 +2,27 @@
|
|||||||
<div class="train-options">
|
<div class="train-options">
|
||||||
<div class="options_wrapper">
|
<div class="options_wrapper">
|
||||||
<div class="options_content">
|
<div class="options_content">
|
||||||
<select-box
|
<div class="content_select">
|
||||||
:itemList="translatedSorterOptions"
|
<select-box
|
||||||
:defaultItemIndex="0"
|
:itemList="translatedSorterOptions"
|
||||||
@selected="changeSorter"
|
:defaultItemIndex="0"
|
||||||
:prefix="$t('trains.sorter-prefix')"
|
@selected="changeSorter"
|
||||||
/>
|
:prefix="$t('trains.sorter-prefix')"
|
||||||
|
/>
|
||||||
<div class="search-box">
|
|
||||||
<input class="search-input" v-model="searchedTrain" :placeholder="$t('trains.search-train')" />
|
|
||||||
|
|
||||||
<img class="search-exit" :src="exitIcon" alt="exit-icon" @click="() => (searchedTrain = '')" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="search-box">
|
<div class="content_search">
|
||||||
<input class="search-input" v-model="searchedDriver" :placeholder="$t('trains.search-driver')" />
|
<div class="search-box">
|
||||||
|
<input class="search-input" v-model="searchedTrain" :placeholder="$t('trains.search-train')" />
|
||||||
|
|
||||||
<img class="search-exit" :src="exitIcon" alt="exit-icon" @click="() => (searchedDriver = '')" />
|
<img class="search-exit" :src="exitIcon" alt="exit-icon" @click="() => (searchedTrain = '')" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="search-box">
|
||||||
|
<input class="search-input" v-model="searchedDriver" :placeholder="$t('trains.search-driver')" />
|
||||||
|
|
||||||
|
<img class="search-exit" :src="exitIcon" alt="exit-icon" @click="() => (searchedDriver = '')" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -145,28 +149,19 @@ export default defineComponent({
|
|||||||
.options {
|
.options {
|
||||||
&_wrapper {
|
&_wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
padding: 0 1em;
|
|
||||||
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&_content {
|
&_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
& > * {
|
.content_search,
|
||||||
margin-right: 0.25em;
|
.content_select {
|
||||||
margin-top: 0.25em;
|
display: flex;
|
||||||
}
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
@include smallScreen() {
|
padding: 0.25em 0.25em 0 0;
|
||||||
margin: 0 auto;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -178,11 +173,7 @@ export default defineComponent({
|
|||||||
background: #333;
|
background: #333;
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
|
margin-right: 0.25em;
|
||||||
|
|
||||||
@include smallScreen() {
|
|
||||||
flex-grow: 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-input {
|
&-input {
|
||||||
@@ -203,7 +194,6 @@ export default defineComponent({
|
|||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.filters {
|
.filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -232,4 +222,46 @@ export default defineComponent({
|
|||||||
color: salmon;
|
color: salmon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include smallScreen() {
|
||||||
|
.journal-options {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.options {
|
||||||
|
&_wrapper {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
&_content {
|
||||||
|
padding: 0 1em;
|
||||||
|
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.content_select {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_search {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
&-box,
|
||||||
|
&-button {
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-box {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-button {
|
||||||
|
width: 80%;
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ import FilterCard from '@/components/StationsView/StationFilterCard.vue';
|
|||||||
import SelectBox from '@/components/Global/SelectBox.vue';
|
import SelectBox from '@/components/Global/SelectBox.vue';
|
||||||
|
|
||||||
import { StoreData } from '@/scripts/interfaces/StoreData';
|
import { StoreData } from '@/scripts/interfaces/StoreData';
|
||||||
import { DataStatus } from '@/scripts/enums/DataStatus';
|
|
||||||
import { computed, ComputedRef, defineComponent, reactive } from 'vue';
|
import { computed, ComputedRef, defineComponent, reactive } from 'vue';
|
||||||
import { useStore } from '@/store';
|
import { useStore } from '@/store';
|
||||||
import { GETTERS } from '@/constants/storeConstants';
|
import { GETTERS } from '@/constants/storeConstants';
|
||||||
|
|||||||
Reference in New Issue
Block a user