Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

:art: Minor UI fixes

Liyas Thomas14d5461085cf
diff --git a/assets/css/styles.scss b/assets/css/styles.scss
index 0288f8a6c..eda2470c7 100644
--- a/assets/css/styles.scss
+++ b/assets/css/styles.scss
@@ -1,17 +1,3 @@
-.page-enter-active,
-.page-leave-active,
-.layout-enter-active,
-.layout-leave-active {
- transition: opacity 0.2s;
-}
-
-.page-enter,
-.page-leave-active,
-.layout-enter,
-.layout-leave-active {
- opacity: 0;
-}
-
$responsiveWidth: 768px;
::selection {
@@ -93,6 +79,20 @@ footer {
}
}
+.page-enter-active,
+.page-leave-active,
+.layout-enter-active,
+.layout-leave-active {
+ transition: opacity 0.2s;
+}
+
+.page-enter,
+.page-leave-active,
+.layout-enter,
+.layout-leave-active {
+ opacity: 0;
+}
+
.wrapper {
min-height: 100vh;
display: flex;
@@ -111,31 +111,6 @@ footer {
flex: 1;
}
-.slide-in {
- position: relative;
- animation: slideIn 0.2s forwards ease-in-out;
-}
-
-@keyframes slideIn {
- 0% {
- opacity: 0;
- left: -16px;
- }
-
- 100% {
- opacity: 1;
- left: 0px;
- }
-}
-
-.logo {
- font-size: 22px;
-
- &:hover {
- color: var(--ac-color);
- }
-}
-
.nav-first,
.sticky-inner {
display: flex;
@@ -161,7 +136,6 @@ footer {
order: 2;
position: relative;
padding: 0 16px;
- height: 100%;
}
.nav-second {
@@ -251,10 +225,6 @@ nav.secondary-nav {
}
}
-.footer {
- flex-flow: column nowrap;
-}
-
h1,
h2,
h3,
@@ -484,71 +454,71 @@ fieldset {
border-radius: 16px;
background-color: var(--bg-dark-color);
transition: all 0.2s ease-in-out;
-}
-fieldset:target,
-section:target {
- animation: highlight 2s ease;
-}
+ legend {
+ display: inline-block;
+ align-items: center;
+ justify-content: center;
+ color: var(--fg-color);
+ font-weight: 700;
+ cursor: pointer;
+ transition: all 0.2s ease-in-out;
-@keyframes highlight {
- 50% {
- box-shadow: 0 0 0 2px var(--ac-color);
- }
-}
+ * {
+ vertical-align: middle;
+ }
-legend {
- display: inline-block;
- align-items: center;
- justify-content: center;
- color: var(--fg-color);
- font-weight: 700;
- cursor: pointer;
- transition: all 0.2s ease-in-out;
+ i {
+ margin-left: 8px;
+ }
+ }
- * {
- vertical-align: middle;
+ &.blue legend {
+ color: #57b5f9;
}
- i {
- margin-left: 8px;
+ &.gray legend {
+ color: #bcc2cd;
}
-}
-fieldset.blue legend {
- color: #57b5f9;
-}
+ &.green legend {
+ color: #50fa7b;
+ }
-fieldset.gray legend {
- color: #bcc2cd;
-}
+ &.cyan legend {
+ color: #8be9fd;
+ }
-fieldset.green legend {
- color: #50fa7b;
-}
+ &.purple legend {
+ color: #bd93f9;
+ }
-fieldset.cyan legend {
- color: #8be9fd;
-}
+ &.orange legend {
+ color: #ffb86c;
+ }
-fieldset.purple legend {
- color: #bd93f9;
-}
+ &.pink legend {
+ color: #ff79c6;
+ }
-fieldset.orange legend {
- color: #ffb86c;
-}
+ &.red legend {
+ color: #ff5555;
+ }
-fieldset.pink legend {
- color: #ff79c6;
+ &.yellow legend {
+ color: #f1fa8c;
+ }
}
-fieldset.red legend {
- color: #ff5555;
+fieldset:target,
+section:target {
+ animation: highlight 2s ease;
}
-fieldset.yellow legend {
- color: #f1fa8c;
+@keyframes highlight {
+ 50% {
+ box-shadow: 0 0 0 2px var(--ac-color);
+ }
}
input[type="file"],
diff --git a/components/layout/footer.vue b/components/layout/footer.vue
index 7ef2772c7..6cf05d6c3 100644
--- a/components/layout/footer.vue
+++ b/components/layout/footer.vue
@@ -60,6 +60,10 @@
</template>
<style scoped lang="scss">
+.footer {
+ flex-flow: column nowrap;
+}
+
.footer-link {
margin: 8px 16px;
color: var(--fg-light-color);
diff --git a/components/layout/header.vue b/components/layout/header.vue
index 6f590d34f..83e6ee94e 100644
--- a/components/layout/header.vue
+++ b/components/layout/header.vue
@@ -257,6 +257,33 @@
</header>
</template>
+<style scoped lang="scss">
+@keyframes slideIn {
+ 0% {
+ opacity: 0;
+ left: -16px;
+ }
+
+ 100% {
+ opacity: 1;
+ left: 0px;
+ }
+}
+
+.slide-in {
+ position: relative;
+ animation: slideIn 0.2s forwards ease-in-out;
+}
+
+.logo {
+ font-size: 22px;
+
+ &:hover {
+ color: var(--ac-color);
+ }
+}
+</style>
+
<script>
import intializePwa from "../../assets/js/pwa"
import { hasExtensionInstalled } from "../../functions/strategies/ExtensionStrategy"