From 11816111ea117ca1fef640832461ebc5eae6a6df Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Fri, 13 Aug 2021 16:44:02 +0530 Subject: [PATCH] refactor(ui): better font weight, icon hover states, etc --- assets/scss/styles.scss | 18 +++- assets/scss/themes.scss | 12 +-- components/app/Announcement.vue | 68 ++++--------- components/app/Header.vue | 99 ++++++++++--------- components/app/Search.vue | 2 +- components/app/Section.vue | 2 +- components/app/Share.vue | 2 +- components/app/Shortcuts.vue | 9 +- components/app/Sidenav.vue | 2 +- components/button/Primary.vue | 1 + components/button/Secondary.vue | 16 +-- components/collections/ChooseType.vue | 1 - components/collections/SaveRequest.vue | 2 +- components/collections/graphql/Collection.vue | 4 +- components/collections/graphql/Folder.vue | 4 +- components/collections/graphql/Request.vue | 5 +- components/collections/graphql/index.vue | 2 +- components/collections/index.vue | 35 ++++--- components/collections/my/Collection.vue | 4 +- components/collections/my/Folder.vue | 4 +- components/collections/my/Request.vue | 5 +- components/collections/teams/Collection.vue | 4 +- components/collections/teams/Folder.vue | 4 +- components/collections/teams/Request.vue | 5 +- components/environments/Edit.vue | 12 +-- components/environments/Environment.vue | 4 +- components/environments/index.vue | 2 +- components/firebase/Login.vue | 2 +- components/graphql/Field.vue | 8 +- components/graphql/Request.vue | 1 - components/graphql/RequestOptions.vue | 38 ++++--- components/graphql/Response.vue | 6 +- components/graphql/Sidebar.vue | 3 +- components/graphql/Type.vue | 5 +- components/graphql/TypeLink.vue | 1 - components/history/graphql/Card.vue | 13 +-- components/history/index.vue | 1 - components/history/rest/Card.vue | 15 +-- .../http/{Auth.vue => Authorization.vue} | 97 +++++++++++++----- components/http/Body.vue | 31 +++--- components/http/BodyParameters.vue | 25 ++--- components/http/CodegenModal.vue | 6 +- components/http/Headers.vue | 18 ++-- components/http/ImportCurl.vue | 3 +- components/http/Parameters.vue | 21 ++-- components/http/PreRequestScript.vue | 52 +++++++--- components/http/RawBody.vue | 21 ++-- components/http/Request.vue | 16 ++- components/http/ResponseMeta.vue | 12 ++- components/http/TestResult.vue | 14 +-- components/http/Tests.vue | 52 +++++++--- components/landing/CTA.vue | 4 +- components/landing/Features.vue | 14 +-- components/landing/Footer.vue | 8 +- components/landing/Hero.vue | 2 - components/landing/Stats.vue | 4 +- components/landing/Users.vue | 4 +- components/lenses/HeadersRenderer.vue | 30 +----- .../lenses/renderers/HTMLLensRenderer.vue | 3 +- .../lenses/renderers/ImageLensRenderer.vue | 3 +- .../lenses/renderers/JSONLensRenderer.vue | 3 +- .../lenses/renderers/RawLensRenderer.vue | 3 +- .../lenses/renderers/XMLLensRenderer.vue | 3 +- components/realtime/Log.vue | 5 +- components/realtime/Mqtt.vue | 7 +- components/realtime/Socketio.vue | 14 ++- components/realtime/Sse.vue | 18 ++-- components/realtime/Websocket.vue | 12 +-- components/smart/AccentModePicker.vue | 1 + components/smart/AceEditor.vue | 6 +- components/smart/AutoComplete.vue | 7 +- components/smart/ColorModePicker.vue | 1 + components/smart/ConfirmModal.vue | 2 +- components/smart/DeletableChip.vue | 4 +- components/smart/EnvInput.vue | 9 +- components/smart/Item.vue | 4 +- components/smart/Modal.vue | 1 + components/smart/Tabs.vue | 2 +- components/smart/Toggle.vue | 2 +- components/tab/Primary.vue | 1 - components/tab/Secondary.vue | 1 - components/teams/Edit.vue | 18 +--- components/teams/Team.vue | 7 +- components/teams/index.vue | 2 +- helpers/types/HoppRESTAuth.ts | 3 + helpers/types/HoppRESTRequest.ts | 5 +- lang/en-US.json | 20 +++- layouts/default.vue | 1 - layouts/error.vue | 4 +- newstore/RESTSession.ts | 1 + pages/documentation.vue | 6 +- pages/enter.vue | 2 +- pages/index.vue | 2 +- pages/settings.vue | 23 ++--- 94 files changed, 547 insertions(+), 514 deletions(-) rename components/http/{Auth.vue => Authorization.vue} (70%) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 0ebc0cbc1..60442a765 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -35,6 +35,16 @@ @apply text-accentContrast; } +input::placeholder { + @apply text-secondaryDark; + @apply opacity-25; +} + +input { + @apply text-secondaryDark; + @apply font-medium; +} + html { scroll-behavior: smooth; } @@ -141,7 +151,7 @@ a { [interactive] > div { @apply flex; - @apply h-full; + @apply flex-1; } .tippy-content > div { @@ -174,7 +184,7 @@ hr { @apply bg-primary; @apply truncate; @apply rounded; - @apply font-semibold; + @apply text-secondaryDark; @apply border border-divider; @apply transition; @apply focus:(outline-none border-accent); @@ -196,7 +206,7 @@ button { } .floating-input ~ label { - @apply font-semibold; + @apply font-medium; @apply py-0.5; @apply px-2; @apply m-2; @@ -352,7 +362,7 @@ input[type="checkbox"] { @apply text-primary; @apply justify-start; @apply shadow; - @apply font-semibold; + @apply font-medium; font-size: var(--body-font-size); line-height: var(--body-line-height); diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index 28b3feec3..b3080c167 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -24,7 +24,7 @@ // Dark Border color --divider-dark-color: theme("colors.dark.300"); // Error color - --error-color: theme("colors.dark.800"); + --error-color: theme("colors.warm-gray.800"); // Tooltip color --tooltip-color: theme("colors.true-gray.100"); // Popover color @@ -53,7 +53,7 @@ // Dark Border color --divider-dark-color: theme("colors.blue-gray.300"); // Error color - --error-color: theme("colors.blue-gray.700"); + --error-color: theme("colors.yellow.100"); // Tooltip color --tooltip-color: theme("colors.blue-gray.800"); // Popover color @@ -82,7 +82,7 @@ // Dark Border color --divider-dark-color: theme("colors.dark.300"); // Error color - --error-color: theme("colors.dark.800"); + --error-color: theme("colors.warm-gray.900"); // Tooltip color --tooltip-color: theme("colors.true-gray.100"); // Popover color @@ -308,7 +308,7 @@ // Upper secondary sticky fold --upper-secondary-sticky-fold: 6.125rem; // Upper tertiary sticky fold - --upper-tertiary-sticky-fold: 8.125rem; + --upper-tertiary-sticky-fold: 8.188rem; // Lower primary sticky fold --lower-primary-sticky-fold: 3rem; // Lower secondary sticky fold @@ -329,7 +329,7 @@ // Upper secondary sticky fold --upper-secondary-sticky-fold: 6.625rem; // Upper tertiary sticky fold - --upper-tertiary-sticky-fold: 8.875rem; + --upper-tertiary-sticky-fold: 8.813rem; // Lower primary sticky fold --lower-primary-sticky-fold: 3.25rem; // Lower secondary sticky fold @@ -350,7 +350,7 @@ // Upper secondary sticky fold --upper-secondary-sticky-fold: 7.125rem; // Upper tertiary sticky fold - --upper-tertiary-sticky-fold: 9.625rem; + --upper-tertiary-sticky-fold: 9.5rem; // Lower primary sticky fold --lower-primary-sticky-fold: 3.5rem; // Lower secondary sticky fold diff --git a/components/app/Announcement.vue b/components/app/Announcement.vue index e6f98cd4f..6fd8d0510 100644 --- a/components/app/Announcement.vue +++ b/components/app/Announcement.vue @@ -1,54 +1,26 @@ diff --git a/components/app/Header.vue b/components/app/Header.vue index de51ee9e8..8ad7c617f 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -1,53 +1,56 @@