From 1a4d3dc91a21b7fc0aef78f45a7378d71b27bfc3 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Wed, 28 Jul 2021 01:08:11 +0530 Subject: [PATCH] feat: refactor modal component --- assets/scss/styles.scss | 10 ++- assets/scss/themes.scss | 2 +- components/app/SlideOver.vue | 15 +--- components/button/Primary.vue | 2 +- components/firebase/Login.vue | 2 +- components/smart/Modal.vue | 134 ++++++++++++++++------------------ lang/en-US.json | 14 ++-- pages/graphql.vue | 2 +- 8 files changed, 81 insertions(+), 100 deletions(-) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index f2a2976a4..cf0c7c1f3 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -303,12 +303,13 @@ input[type="checkbox"] { .toasted-container { .toasted { &.toasted-primary { - @apply px-6 py-1; @apply bg-tooltip; @apply text-primary text-xs; @apply !font-semibold; + @apply justify-start; .action { + @apply ml-auto; @apply transition; @apply text-current; @apply hover:(opacity-75 no-underline); @@ -317,15 +318,16 @@ input[type="checkbox"] { &.info { @apply !bg-accent; - @apply !text-white; } &.error { - @apply !text-white; + @apply !bg-red-400; + @apply !text-red-800; } &.success { - @apply !text-white; + @apply !bg-green-400; + @apply !text-green-800; } } } diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index c6fb51eea..0c32c2fa3 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -82,7 +82,7 @@ // Tooltip color --tooltip-color: theme("colors.true-gray.100"); // Editor theme - --editor-theme: "vibrant_ink"; + --editor-theme: "twilight"; } @mixin blueTheme { diff --git a/components/app/SlideOver.vue b/components/app/SlideOver.vue index fadcb8b85..7605640c6 100644 --- a/components/app/SlideOver.vue +++ b/components/app/SlideOver.vue @@ -1,18 +1,7 @@