fix: minor UI transitions

This commit is contained in:
Liyas Thomas
2020-12-15 07:58:12 +05:30
parent afd07562b4
commit dd40df4b37
4 changed files with 18 additions and 10 deletions

View File

@@ -3,8 +3,8 @@
<div class="row-wrapper"> <div class="row-wrapper">
<span class="slide-in"> <span class="slide-in">
<nuxt-link :to="localePath('index')"> <nuxt-link :to="localePath('index')">
<h1 class="text-xl hide-on-small-screen hover:text-acColor">Hoppscotch</h1> <h1 class="hide-on-small-screen logo">Hoppscotch</h1>
<h1 class="text-xl show-on-small-screen hover:text-acColor">Hs</h1> <h1 class="show-on-small-screen logo">Hs</h1>
</nuxt-link> </nuxt-link>
</span> </span>
<span> <span>
@@ -133,6 +133,17 @@
<style scoped lang="scss"> <style scoped lang="scss">
$responsiveWidth: 768px; $responsiveWidth: 768px;
.logo {
@apply text-xl;
@apply transition-colors;
@apply ease-in-out;
@apply duration-200;
&:hover {
@apply text-acColor;
}
}
@keyframes slideIn { @keyframes slideIn {
0% { 0% {
@apply opacity-0; @apply opacity-0;

View File

@@ -58,7 +58,8 @@
li { li {
@apply w-full; @apply w-full;
@apply block; @apply block;
@apply p-2; @apply py-2;
@apply px-4;
@apply text-sm; @apply text-sm;
@apply font-mono; @apply font-mono;
@apply font-normal; @apply font-normal;

View File

@@ -57,6 +57,9 @@
@apply text-sm; @apply text-sm;
@apply rounded-lg; @apply rounded-lg;
@apply cursor-pointer; @apply cursor-pointer;
@apply transition-colors;
@apply ease-in-out;
@apply duration-200;
.material-icons { .material-icons {
@apply m-4; @apply m-4;

View File

@@ -485,13 +485,6 @@ export default {
}) })
}, },
}, },
headerString() {
const result = this.headers
.filter(({ key }) => !!key)
.map(({ key, value }) => `${key}: ${value}`)
.join(",\n")
return result === "" ? "" : `${result}`
},
}, },
mounted() { mounted() {
if (this.$store.state.gql.schemaIntrospection && this.$store.state.gql.schema) { if (this.$store.state.gql.schemaIntrospection && this.$store.state.gql.schema) {