From 558bdf3e39f6b9b96ffd69fdbbb29d491634c08b Mon Sep 17 00:00:00 2001 From: onmax Date: Sat, 5 Mar 2022 12:27:12 -0600 Subject: [PATCH] simplified duplication in tour manager when modal is open --- src/components/NimiqSelector.vue | 4 -- src/components/Tour.vue | 9 +--- src/components/TourLargeScreenManager.vue | 62 ++--------------------- src/components/modals/Modal.vue | 8 +-- 4 files changed, 9 insertions(+), 74 deletions(-) diff --git a/src/components/NimiqSelector.vue b/src/components/NimiqSelector.vue index 28612d609..cbaf11a7a 100644 --- a/src/components/NimiqSelector.vue +++ b/src/components/NimiqSelector.vue @@ -318,7 +318,3 @@ export default defineComponent({ } } - -function scrollIntoView() { - throw new Error('Function not implemented.'); -} diff --git a/src/components/Tour.vue b/src/components/Tour.vue index 12cee2167..b4dbd2a88 100644 --- a/src/components/Tour.vue +++ b/src/components/Tour.vue @@ -658,17 +658,12 @@ export default defineComponent({ // updated as data attributes allow to use a value like [data-opaified="1"] to select ceratain elements // as well as [data-opacified] to all elements with this attribute. @see _removeUIFromOldStep -#app[data-tour-active] [data-opacified], -#app[data-tour-active] ~ div [data-opacified] { +#app[data-tour-active] [data-opacified] { filter: opacity(0.3); } #app[data-tour-active] [data-non-interactable], -#app[data-tour-active] [data-non-interactable] *, -// Select also modals which are not children of #app but siblings -#app[data-tour-active] ~ div [data-non-interactable], -#app[data-tour-active] ~ div [data-non-interactable] * -{ +#app[data-tour-active] [data-non-interactable] *{ user-select: none !important; pointer-events: none !important; cursor: not-allowed; diff --git a/src/components/TourLargeScreenManager.vue b/src/components/TourLargeScreenManager.vue index 9d6d83a80..3a687b1a8 100644 --- a/src/components/TourLargeScreenManager.vue +++ b/src/components/TourLargeScreenManager.vue @@ -15,8 +15,8 @@