refactor(ui): minor font tweaks

This commit is contained in:
liyasthomas
2021-06-21 16:31:40 +05:30
parent 6ddff58ba5
commit 41eb4f8395
17 changed files with 23 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
FROM node:12.10.0-alpine FROM node:12-alpine
LABEL maintainer="Hoppscotch (support@hoppscotch.io)" LABEL maintainer="Hoppscotch (support@hoppscotch.io)"

View File

@@ -449,7 +449,6 @@ code {
@apply bg-primaryDark; @apply bg-primaryDark;
@apply text-secondary; @apply text-secondary;
@apply font-mono; @apply font-mono;
@apply font-normal;
@apply transition; @apply transition;
@apply ease-in-out; @apply ease-in-out;
@apply duration-150; @apply duration-150;
@@ -484,7 +483,6 @@ pre {
pre.ace_editor { pre.ace_editor {
@apply font-mono; @apply font-mono;
@apply font-normal;
@apply z-0; @apply z-0;
@apply resize-none; @apply resize-none;
} }
@@ -798,7 +796,6 @@ section {
text-transform: none !important; text-transform: none !important;
padding: 12px 16px !important; padding: 12px 16px !important;
font-size: 16px !important;
margin: 0 !important; margin: 0 !important;
margin-left: 8px !important; margin-left: 8px !important;
} }

View File

@@ -21,7 +21,7 @@
</div> </div>
<div <div
v-if="gqlField.description" v-if="gqlField.description"
class="mt-2 text-secondaryLight field-desc" class="py-2 text-sm text-secondaryLight field-desc"
> >
{{ gqlField.description }} {{ gqlField.description }}
</div> </div>
@@ -53,7 +53,7 @@
/> />
<div <div
v-if="field.description" v-if="field.description"
class="mt-2 text-secondaryLight field-desc" class="py-2 text-sm text-secondaryLight field-desc"
> >
{{ field.description }} {{ field.description }}
</div> </div>

View File

@@ -4,11 +4,9 @@
class="font-bold type-title" class="font-bold type-title"
:class="{ 'type-highlighted': isHighlighted }" :class="{ 'type-highlighted': isHighlighted }"
> >
<span v-if="isInput" class="font-normal text-accent">input </span> <span v-if="isInput" class="text-accent">input </span>
<span v-else-if="isInterface" class="font-normal text-accent" <span v-else-if="isInterface" class="text-accent">interface </span>
>interface <span v-else-if="isEnum" class="text-accent">enum </span>
</span>
<span v-else-if="isEnum" class="font-normal text-accent">enum </span>
{{ gqlType.name }} {{ gqlType.name }}
</div> </div>
<div v-if="gqlType.description" class="mt-2 text-secondaryLight type-desc"> <div v-if="gqlType.description" class="mt-2 text-secondaryLight type-desc">

View File

@@ -1,7 +1,7 @@
<template> <template>
<span <span
:class="{ 'cursor-pointer': !isScalar }" :class="{ 'cursor-pointer': !isScalar }"
class="font-mono font-normal text-accent" class="font-mono text-sm text-accent"
@click="jumpToType" @click="jumpToType"
> >
{{ typeString }} {{ typeString }}

View File

@@ -60,7 +60,7 @@
:options="{ :options="{
maxLines: '10', maxLines: '10',
minLines: '10', minLines: '10',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,

View File

@@ -45,7 +45,7 @@
:options="{ :options="{
maxLines: '16', maxLines: '16',
minLines: '8', minLines: '8',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
showPrintMargin: false, showPrintMargin: false,
useWorker: false, useWorker: false,

View File

@@ -57,7 +57,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: '16', minLines: '16',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,

View File

@@ -46,7 +46,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: '16', minLines: '16',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,

View File

@@ -45,7 +45,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: '16', minLines: '16',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,

View File

@@ -45,7 +45,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: '16', minLines: '16',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,

View File

@@ -52,7 +52,6 @@ export default {
&, &,
span { span {
@apply font-mono; @apply font-mono;
@apply font-normal;
@apply select-text; @apply select-text;
} }

View File

@@ -214,7 +214,6 @@ export default {
@apply px-4; @apply px-4;
@apply text-sm; @apply text-sm;
@apply font-mono; @apply font-mono;
@apply font-normal;
&:last-child { &:last-child {
border-radius: 0 0 8px 8px; border-radius: 0 0 8px 8px;

View File

@@ -18,7 +18,6 @@
@apply bg-primaryDark; @apply bg-primaryDark;
@apply text-secondary; @apply text-secondary;
@apply font-mono; @apply font-mono;
@apply font-normal;
@apply transition; @apply transition;
@apply ease-in-out; @apply ease-in-out;
@apply duration-150; @apply duration-150;

View File

@@ -42,7 +42,7 @@
:options="{ :options="{
maxLines: '16', maxLines: '16',
minLines: '8', minLines: '8',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
showPrintMargin: false, showPrintMargin: false,
useWorker: false, useWorker: false,

View File

@@ -150,7 +150,7 @@
</div> </div>
</AppSection> </AppSection>
<AppSection label="schema"> <AppSection ref="schema" label="schema">
<div class="row-wrapper"> <div class="row-wrapper">
<label>{{ $t("schema") }}</label> <label>{{ $t("schema") }}</label>
<div v-if="schema"> <div v-if="schema">
@@ -193,7 +193,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: 16, minLines: 16,
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,
@@ -257,7 +257,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: 10, minLines: 10,
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
showPrintMargin: false, showPrintMargin: false,
useWorker: false, useWorker: false,
@@ -275,7 +275,7 @@
:options="{ :options="{
maxLines: 10, maxLines: 10,
minLines: 5, minLines: 5,
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
showPrintMargin: false, showPrintMargin: false,
useWorker: false, useWorker: false,
@@ -285,7 +285,7 @@
</div> </div>
</AppSection> </AppSection>
<AppSection label="response"> <AppSection ref="response" label="response">
<div class="flex flex-col"> <div class="flex flex-col">
<label>{{ $t("response") }}</label> <label>{{ $t("response") }}</label>
<div class="row-wrapper"> <div class="row-wrapper">
@@ -319,7 +319,7 @@
:options="{ :options="{
maxLines: responseBodyMaxLines, maxLines: responseBodyMaxLines,
minLines: 10, minLines: 10,
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
readOnly: true, readOnly: true,
showPrintMargin: false, showPrintMargin: false,

View File

@@ -3,7 +3,7 @@
<div class="page"> <div class="page">
<div class="content"> <div class="content">
<div class="page-columns inner-left"> <div class="page-columns inner-left">
<AppSection label="request"> <AppSection ref="request" label="request">
<ul> <ul>
<li class="shrink"> <li class="shrink">
<label for="method">{{ $t("method") }}</label> <label for="method">{{ $t("method") }}</label>
@@ -496,7 +496,7 @@
:options="{ :options="{
maxLines: '16', maxLines: '16',
minLines: '8', minLines: '8',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
showPrintMargin: false, showPrintMargin: false,
useWorker: false, useWorker: false,
@@ -532,7 +532,7 @@
:options="{ :options="{
maxLines: '16', maxLines: '16',
minLines: '8', minLines: '8',
fontSize: '16px', fontSize: '15px',
autoScrollEditorIntoView: true, autoScrollEditorIntoView: true,
showPrintMargin: false, showPrintMargin: false,
useWorker: false, useWorker: false,