From 76b8534d63d961bbd22e9034b596f2d7c930b840 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 6 Sep 2022 00:26:49 +0200 Subject: [PATCH] =?UTF-8?q?Poprawki=20responsywno=C5=9Bci=20selectbox?= =?UTF-8?q?=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Global/SelectBox.vue | 1 + src/components/JournalView/JournalOptions.vue | 478 ++++++++---------- src/components/TrainsView/TrainOptions.vue | 59 +-- src/styles/JournalSection.scss | 2 +- src/styles/search_box.scss | 51 ++ src/views/TrainsView.vue | 5 - 6 files changed, 282 insertions(+), 314 deletions(-) create mode 100644 src/styles/search_box.scss diff --git a/src/components/Global/SelectBox.vue b/src/components/Global/SelectBox.vue index 2c0cf5a..64b63a9 100644 --- a/src/components/Global/SelectBox.vue +++ b/src/components/Global/SelectBox.vue @@ -131,6 +131,7 @@ export default defineComponent({ .select-box { position: relative; + width: auto; } .arrow { diff --git a/src/components/JournalView/JournalOptions.vue b/src/components/JournalView/JournalOptions.vue index 4773775..56b4f1a 100644 --- a/src/components/JournalView/JournalOptions.vue +++ b/src/components/JournalView/JournalOptions.vue @@ -1,260 +1,218 @@ - - - - - + + + + + diff --git a/src/components/TrainsView/TrainOptions.vue b/src/components/TrainsView/TrainOptions.vue index f873216..32eb3bf 100644 --- a/src/components/TrainsView/TrainOptions.vue +++ b/src/components/TrainsView/TrainOptions.vue @@ -15,13 +15,17 @@ @@ -130,8 +134,8 @@ export default defineComponent({ resetFilters() { this.filterList.forEach((f) => (f.isActive = true)); - this.searchedDriver = ""; - this.searchedTrain = ""; + this.searchedDriver = ''; + this.searchedTrain = ''; }, }, }); @@ -139,10 +143,12 @@ export default defineComponent({ diff --git a/src/styles/JournalSection.scss b/src/styles/JournalSection.scss index e34bd09..6be3530 100644 --- a/src/styles/JournalSection.scss +++ b/src/styles/JournalSection.scss @@ -60,7 +60,7 @@ } @include smallScreen() { - .journal-wrapper { + .journal_wrapper { font-size: 1.25em; } diff --git a/src/styles/search_box.scss b/src/styles/search_box.scss new file mode 100644 index 0000000..e74da0d --- /dev/null +++ b/src/styles/search_box.scss @@ -0,0 +1,51 @@ +@import 'responsive.scss'; + +.search { + &-box { + position: relative; + + display: flex; + + border-radius: 0.5em; + min-width: 200px; + margin-right: 0.25em; + background-color: #333; + } + + &-input { + border: none; + border-radius: 0.5em 0 0 0.5em; + background-color: #333; + + padding: 0.35em 0.5em; + margin-right: 0.2em; + width: 100%; + } + + &-exit { + background-color: #333; + padding: 0 0.5em; + border-radius: 0 0.5em 0.5em 0; + + img { + vertical-align: middle; + height: 1.3em; + } + } + + @include smallScreen { + &-box, + &-button { + margin: 0.5em 0 0 0; + } + + &-box { + width: 100%; + } + + &-button { + width: 80%; + max-width: 300px; + } + } +} diff --git a/src/views/TrainsView.vue b/src/views/TrainsView.vue index 64ff6e7..5e52fa9 100644 --- a/src/views/TrainsView.vue +++ b/src/views/TrainsView.vue @@ -103,9 +103,4 @@ export default defineComponent({ max-width: 1350px; } -@include smallScreen { - .options-bar { - font-size: 1.25em; - } -}