From 99cdb3442a71e58d84e43123a82adc7fa410cb98 Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 8 Sep 2022 23:15:54 +0200 Subject: [PATCH] =?UTF-8?q?Opcje=20filtr=C3=B3w:=20animacja=20i=20poprawki?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/JournalView/JournalOptions.vue | 114 +++++++++--------- src/components/TrainsView/TrainOptions.vue | 99 +++++++-------- src/components/TrainsView/TrainTable.vue | 2 - 3 files changed, 111 insertions(+), 104 deletions(-) diff --git a/src/components/JournalView/JournalOptions.vue b/src/components/JournalView/JournalOptions.vue index 674c16c..2ad5fc8 100644 --- a/src/components/JournalView/JournalOptions.vue +++ b/src/components/JournalView/JournalOptions.vue @@ -7,64 +7,57 @@ FILTRY -
-
-

SORTUJ WG:

- -
-
- +
+
+

FILTRUJ WG:

+
+
-
- -

FILTRUJ WG:

- -
- -
- -

SZUKAJ:

- - -
+ @@ -143,6 +136,19 @@ export default defineComponent({ @import '../../styles/search_box.scss'; @import '../../styles/variables.scss'; +.options-anim { + &-enter-from, + &-leave-to { + opacity: 0; + transform: translateY(10px); + } + + &-enter-active, + &-leave-active { + transition: all 150ms ease; + } +} + .bg { position: fixed; top: 0; @@ -155,8 +161,6 @@ export default defineComponent({ .journal-options { position: relative; - - margin-bottom: 0.5em; } .options_wrapper { diff --git a/src/components/TrainsView/TrainOptions.vue b/src/components/TrainsView/TrainOptions.vue index 94e305c..d7910c1 100644 --- a/src/components/TrainsView/TrainOptions.vue +++ b/src/components/TrainsView/TrainOptions.vue @@ -7,59 +7,51 @@ FILTRY -
-
-

{{ $t('options.sort-title') }}

- -
-
- + +
+
+

{{ $t('options.sort-title') }}

+
+
+ +
-
- -

{{ $t('options.filter-title') }}

- -
-
- +

{{ $t('options.filter-title') }}

+
+
+ +
-
- -
-
- +
+
+ +
+
+ +
- -
- -
-
- -

{{ $t('options.search-title') }}

- - -
+
@@ -145,6 +137,19 @@ export default defineComponent({ @import '../../styles/search_box.scss'; @import '../../styles/variables.scss'; +.options-anim { + &-enter-from, + &-leave-to { + opacity: 0; + transform: translateY(10px); + } + + &-enter-active, + &-leave-active { + transition: all 150ms ease; + } +} + .bg { position: fixed; top: 0; diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue index b42ac36..ba1dc09 100644 --- a/src/components/TrainsView/TrainTable.vue +++ b/src/components/TrainsView/TrainTable.vue @@ -139,8 +139,6 @@ img.train-image { &-list { overflow: auto; - margin-top: 1em; - @include smallScreen() { width: 100%; }