From 8debb65d89641a62797b7f679c012146a1d5946b Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Mon, 26 Jul 2021 01:33:32 +0530 Subject: [PATCH] refactor(ui): better rendering with Inter font --- assets/scss/styles.scss | 19 +-- assets/scss/themes.scss | 4 +- components/app/Announcement.vue | 8 +- components/app/Header.vue | 4 +- components/app/Shortcuts.vue | 142 ++++++++++-------- components/app/Sidenav.vue | 1 - components/app/SlideOver.vue | 5 +- components/button/Primary.vue | 2 +- components/collections/Add.vue | 2 +- components/collections/AddFolder.vue | 5 +- components/collections/ChooseType.vue | 5 +- components/collections/Edit.vue | 2 +- components/collections/EditFolder.vue | 8 +- components/collections/EditRequest.vue | 2 +- components/collections/SaveRequest.vue | 6 +- components/collections/graphql/Add.vue | 2 +- components/collections/graphql/AddFolder.vue | 5 +- components/collections/graphql/Collection.vue | 17 +-- components/collections/graphql/Edit.vue | 2 +- components/collections/graphql/EditFolder.vue | 5 +- .../collections/graphql/EditRequest.vue | 5 +- components/collections/graphql/Folder.vue | 17 +-- components/collections/graphql/Request.vue | 4 +- components/collections/graphql/index.vue | 9 +- components/collections/index.vue | 9 +- components/collections/my/Collection.vue | 17 +-- components/collections/my/Folder.vue | 17 +-- components/collections/my/Request.vue | 4 +- components/collections/teams/Collection.vue | 17 +-- components/collections/teams/Folder.vue | 17 +-- components/collections/teams/Request.vue | 4 +- components/environments/Add.vue | 2 +- components/environments/Edit.vue | 11 +- components/environments/Environment.vue | 13 +- components/environments/index.vue | 9 +- components/firebase/Login.vue | 6 +- components/graphql/Field.vue | 12 +- components/graphql/Type.vue | 15 +- components/graphql/TypeLink.vue | 2 +- components/history/graphql/Card.vue | 15 +- components/history/index.vue | 9 +- components/history/rest/Card.vue | 23 ++- components/http/Body.vue | 1 - components/http/BodyParameters.vue | 6 +- components/http/CodegenModal.vue | 14 +- components/http/Headers.vue | 5 +- components/http/Parameters.vue | 6 +- components/http/PreRequestScript.vue | 6 +- components/http/RawBody.vue | 6 +- components/http/ResponseMeta.vue | 12 +- components/http/TestResult.vue | 9 +- components/http/Tests.vue | 30 ++-- components/landing/Footer.vue | 1 - components/lenses/HeadersRenderer.vue | 28 +++- components/lenses/ResponseBodyRenderer.vue | 2 +- .../lenses/renderers/HTMLLensRenderer.vue | 6 +- .../lenses/renderers/ImageLensRenderer.vue | 4 +- .../lenses/renderers/JSONLensRenderer.vue | 6 +- .../lenses/renderers/RawLensRenderer.vue | 6 +- .../lenses/renderers/XMLLensRenderer.vue | 6 +- components/realtime/Log.vue | 6 +- components/realtime/Mqtt.vue | 14 +- components/realtime/Socketio.vue | 14 +- components/realtime/Sse.vue | 6 +- components/realtime/Websocket.vue | 19 ++- components/smart/AceEditor.vue | 3 +- components/smart/AutoComplete.vue | 4 +- components/smart/ConfirmModal.vue | 2 +- components/smart/DeletableChip.vue | 2 +- components/smart/Item.vue | 2 +- components/smart/Spinner.vue | 2 +- components/smart/Tabs.vue | 3 +- components/smart/Toggle.vue | 20 +-- components/teams/Add.vue | 2 +- components/teams/Edit.vue | 7 +- components/teams/index.vue | 2 +- layouts/default.vue | 12 +- layouts/error.vue | 4 +- nuxt.config.js | 2 +- package-lock.json | 30 ++-- package.json | 2 +- pages/documentation.vue | 16 +- pages/enter.vue | 4 +- pages/graphql.vue | 60 ++++---- pages/index.vue | 16 +- pages/settings.vue | 28 ++-- 86 files changed, 434 insertions(+), 485 deletions(-) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index b83d84651..143964424 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -41,7 +41,7 @@ html { body { @apply bg-primary; - @apply text-secondary !text-sm; + @apply text-secondary text-xs; @apply font-medium; @apply select-none; @apply overflow-x-hidden; @@ -69,14 +69,14 @@ body { } .material-icons { - font-size: 1.25rem !important; + font-size: 1rem; } .svg-icons { @apply inline-flex; @apply flex-shrink-0; - @apply h-5; - @apply w-5; + @apply h-4; + @apply w-4; } a { @@ -166,8 +166,7 @@ hr { @apply bg-primary; @apply truncate; @apply rounded; - @apply font-semibold font-mono; - @apply text-xs; + @apply font-semibold; @apply border border-divider; @apply transition; @apply focus:(outline-none border-accent); @@ -204,7 +203,7 @@ pre.ace_editor { @apply pointer-events-none; @apply font-icon; @apply text-secondaryLight; - @apply top-3; + @apply top-2.5; @apply right-3; content: "\e313"; @@ -290,13 +289,9 @@ input[type="checkbox"] { @apply text-primary text-xs; @apply !font-semibold; - .material-icons { - @apply !text-md; - } - .action { @apply transition; - @apply text-current text-xs; + @apply text-current; @apply hover:(opacity-75 no-underline); } } diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index ff45ef176..33e0869fa 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -1,5 +1,5 @@ @mixin baseTheme { - --font-sans: "Montserrat", "sans-serif"; + --font-sans: "Inter", "sans-serif"; --font-mono: "Roboto Mono", "monospace"; --font-icon: "Material Icons"; } @@ -41,7 +41,7 @@ // Text color --secondary-color: theme("colors.true-gray.600"); // Light Text color - --secondary-light-color: theme("colors.true-gray.400"); + --secondary-light-color: theme("colors.true-gray.500"); // Dark Text color --secondary-dark-color: theme("colors.true-gray.800"); // Border color diff --git a/components/app/Announcement.vue b/components/app/Announcement.vue index 2cd27ba3e..8fb46d5f0 100644 --- a/components/app/Announcement.vue +++ b/components/app/Announcement.vue @@ -13,7 +13,7 @@ blank class=" flex - py-3 + py-2 px-4 transition relative @@ -23,7 +23,7 @@ " > science - + Beta Layout