From 160abd75be94343f3a120fd7d64d994b89cc3e00 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 4 Sep 2018 14:46:28 +0200 Subject: [PATCH] Add basis for modal --- client/src/App.vue | 20 ++++++++++-- client/src/components/Modal.vue | 58 +++++++++++++++++++++++++++++++++ client/src/store/index.js | 9 ++++- client/src/styles/_buttons.scss | 9 ++++- 4 files changed, 91 insertions(+), 5 deletions(-) create mode 100644 client/src/components/Modal.vue diff --git a/client/src/App.vue b/client/src/App.vue index 5fd5bc28..4aa540e0 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,23 +1,32 @@ + + diff --git a/client/src/store/index.js b/client/src/store/index.js index 424eefbb..dd85b680 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -8,7 +8,8 @@ export default new Vuex.Store({ state: { specialContainerClass: '', - showFilter: true + showFilter: true, + showModal: false }, getters: {}, @@ -22,6 +23,9 @@ export default new Vuex.Store({ }, setSpecialContainerClass({commit}, payload) { commit('setSpecialContainerClass', payload); + }, + hideModal({commit}){ + commit('setModal', false); } }, @@ -29,6 +33,9 @@ export default new Vuex.Store({ setFilter(state, payload) { state.showFilter = payload; }, + setModal(state, payload) { + state.showModal = payload; + }, setSpecialContainerClass(state, payload) { state.specialContainerClass = payload; } diff --git a/client/src/styles/_buttons.scss b/client/src/styles/_buttons.scss index 67b23286..9f7a580a 100644 --- a/client/src/styles/_buttons.scss +++ b/client/src/styles/_buttons.scss @@ -1,6 +1,13 @@ .button { background: transparent; - border: 2px solid $color-brand; + border: 2px solid $color-grey; padding: 5px 15px; border-radius: 3px; + font-family: $sans-serif-font-family; + font-weight: 400; + display: inline-flex; + + &--active { + border-color: $color-brand; + } }