From 711f67b5eb52f4d8e0ea8bab28205bfc34d4a87f Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 15 Jun 2020 15:06:11 +0200 Subject: [PATCH] Add scroll top component --- bitbucket-pipelines.yml | 2 + client/src/App.vue | 7 ++- client/src/components/ScrollUp.vue | 74 +++++++++++++++++++++++++ client/src/components/icons/ArrowUp.vue | 10 ++++ client/src/styles/_mixins.scss | 6 +- 5 files changed, 95 insertions(+), 4 deletions(-) create mode 100644 client/src/components/ScrollUp.vue create mode 100644 client/src/components/icons/ArrowUp.vue diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 863f1fe4..8676b957 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -20,6 +20,8 @@ definitions: aliases: - &lint name: lint + caches: + - node script: - npm install --prefix client - npm run lint --prefix client diff --git a/client/src/App.vue b/client/src/App.vue index 5c2867a8..c8e04a0b 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -3,6 +3,7 @@ :class="{'no-scroll': showModal || showMobileNavigation}" class="app" id="app"> + @@ -37,11 +38,13 @@ import DeactivatePerson from '@/components/profile/DeactivatePerson'; import {mapGetters} from 'vuex'; + import ScrollUp from '@/components/ScrollUp'; export default { name: 'App', components: { + ScrollUp, DefaultLayout, SimpleLayout, BlankLayout, @@ -76,9 +79,6 @@ return this.$modal.state.component; } }, - - mounted() { - } } @@ -100,4 +100,5 @@ .no-scroll { overflow-y: hidden; } + diff --git a/client/src/components/ScrollUp.vue b/client/src/components/ScrollUp.vue new file mode 100644 index 00000000..2d2eeada --- /dev/null +++ b/client/src/components/ScrollUp.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/client/src/components/icons/ArrowUp.vue b/client/src/components/icons/ArrowUp.vue new file mode 100644 index 00000000..cd1097b3 --- /dev/null +++ b/client/src/components/icons/ArrowUp.vue @@ -0,0 +1,10 @@ + diff --git a/client/src/styles/_mixins.scss b/client/src/styles/_mixins.scss index 012764e0..3c86c941 100644 --- a/client/src/styles/_mixins.scss +++ b/client/src/styles/_mixins.scss @@ -70,7 +70,7 @@ } @mixin desktop { - @media (min-width: 1024px) { + @media (min-width: 1200px) { @content } } @@ -192,3 +192,7 @@ width: 100%; margin: 0 auto; } + +@mixin default-box-shadow { + box-shadow: 0 3px 9px 0 rgba(0, 0, 0, 0.12); +}