From a070bed7c9b55ad6f0438421cb2f2bd8b2348a68 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Thu, 8 Jul 2021 13:36:37 +0530 Subject: [PATCH] feat: revamp environments ui --- assets/scss/themes.scss | 4 +- components/button/Secondary.vue | 2 +- components/environments/Environment.vue | 102 ++++++++++++++--------- components/environments/index.vue | 104 ++++++++++++------------ components/history/rest/Card.vue | 4 +- 5 files changed, 121 insertions(+), 95 deletions(-) diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index 0537952e6..9cee6d2eb 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -39,11 +39,11 @@ // Dark Background color --primary-dark-color: theme("colors.gray.100"); // Text color - --secondary-color: theme("colors.gray.600"); + --secondary-color: theme("colors.gray.500"); // Light Text color --secondary-light-color: theme("colors.gray.400"); // Dark Text color - --secondary-dark-color: theme("colors.gray.700"); + --secondary-dark-color: theme("colors.gray.600"); // Border color --divider-color: theme("colors.gray.200"); // Light Border color diff --git a/components/button/Secondary.vue b/components/button/Secondary.vue index 82e6a47d4..6d6cc2e69 100644 --- a/components/button/Secondary.vue +++ b/components/button/Secondary.vue @@ -15,7 +15,7 @@ :class="[ color ? `text-${color}-400 hover:text-${color}-600 focus:text-${color}-600` - : 'text-secondaryLight hover:text-secondary focus:text-secondary', + : 'text-secondary hover:text-secondaryDark focus:text-secondaryDark', label ? 'px-3 rounded-lg' : 'px-2 rounded-full', rounded ? 'rounded-full' : 'rounded-lg', { 'opacity-50 cursor-not-allowed': disabled }, diff --git a/components/environments/Environment.vue b/components/environments/Environment.vue index 8ea2dd585..72434c831 100644 --- a/components/environments/Environment.vue +++ b/components/environments/Environment.vue @@ -1,46 +1,68 @@ diff --git a/components/history/rest/Card.vue b/components/history/rest/Card.vue index ef7ce9fdb..8034f544f 100644 --- a/components/history/rest/Card.vue +++ b/components/history/rest/Card.vue @@ -24,8 +24,8 @@ pr-3 flex flex-1 min-w-0 - text-secondaryLight text-xs - group-hover:text-secondary + text-xs + group-hover:text-secondaryDark transition " @click="$emit('use-entry')"