Skip to content

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

:liptick: Minor UI update

Liyas Thomas8d99d4aa9968
diff --git a/assets/css/fonts.scss b/assets/css/fonts.scss
index 16b16d1b0..496de8831 100644
--- a/assets/css/fonts.scss
+++ b/assets/css/fonts.scss
@@ -1,63 +1,2 @@
-/* Material Design Icons */
-@font-face {
- font-family: "Material Icons";
- font-display: swap;
- font-style: normal;
- font-weight: 400;
- src: url(~@/assets/fonts/material-icons-v48.woff2) format("woff2");
-}
-
-.material-icons {
- font-family: "Material Icons";
- font-weight: normal;
- font-style: normal;
- font-size: 24px;
- line-height: 1;
- letter-spacing: normal;
- text-transform: none;
- display: inline-block;
- white-space: nowrap;
- word-wrap: normal;
- direction: ltr;
- -webkit-font-feature-settings: "liga";
- -webkit-font-smoothing: antialiased;
-}
-
-/* Roboto Mono 400 */
-@font-face {
- font-family: "Roboto Mono";
- font-display: swap;
- font-style: normal;
- font-weight: 400;
- src: local("Roboto Mono"), local("RobotoMono-Regular"),
- url("~@/assets/fonts/roboto-mono-v7-latin-regular.woff2") format("woff2"),
- /* Chrome 26+, Opera 23+, Firefox 39+ */
- url("~@/assets/fonts/roboto-mono-v7-latin-regular.woff") format("woff");
- /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
-}
-
-/* Poppins 500 */
-@font-face {
- font-family: "Poppins";
- font-display: swap;
- font-style: normal;
- font-weight: 500;
- src: local("Poppins Medium"), local("Poppins-Medium"),
- url("~@/assets/fonts/poppins-v9-latin-500.woff2") format("woff2"),
- /* Chrome 26+, Opera 23+, Firefox 39+ */
- url("~@/assets/fonts/poppins-v9-latin-500.woff") format("woff");
- /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
-}
-
-/* poppins-700 - latin */
-@font-face {
- font-family: "Poppins";
- font-display: swap;
- font-style: normal;
- font-weight: 700;
- src: local("Poppins Bold"), local("Poppins-Bold"),
- url("~@/assets/fonts/poppins-v9-latin-700.woff2") format("woff2"),
- /* Chrome 26+, Opera 23+, Firefox 39+ */
- url("~@/assets/fonts/poppins-v9-latin-700.woff") format("woff");
- /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
-}
+@import url("https://fonts.googleapis.com/css?family=Poppins:500,700|Roboto+Mono:400&display=swap");
+@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
diff --git a/assets/css/styles.scss b/assets/css/styles.scss
index e8d3e05ed..24d199e21 100644
--- a/assets/css/styles.scss
+++ b/assets/css/styles.scss
@@ -46,7 +46,7 @@ body {
background-color: var(--bg-color);
color: var(--fg-color);
font-weight: 500;
- font-size: 16px;
+ font-size: 14px;
font-family: "Poppins", "Roboto", "Noto", sans-serif;
line-height: 1.5;
-webkit-tap-highlight-color: transparent;
@@ -73,7 +73,6 @@ a {
display: inline-flex;
color: inherit;
text-decoration: none;
- font-weight: 700;
}
header,
@@ -152,7 +151,7 @@ footer {
display: flex;
width: 10%;
order: 3;
- // comment this to display
+ // comment below this to display
display: none;
}
@@ -254,6 +253,7 @@ h3 {
border-radius: 8px;
padding: 8px 16px;
font-size: 14px;
+ font-weight: 500;
}
.tooltip-arrow {
@@ -366,16 +366,15 @@ button {
align-items: center;
justify-content: center;
margin: 4px;
- padding: 0 16px;
+ padding: 6px 16px;
border-radius: 20px;
background-color: var(--ac-color);
color: var(--act-color);
- font-weight: 700;
font-size: 16px;
font-family: "Poppins", "Roboto", "Noto", sans-serif;
+ font-weight: 700;
transition: all 0.2s ease-in-out;
fill: var(--act-color);
- height: 40px;
cursor: pointer;
span {
@@ -485,11 +484,12 @@ pre {
background-color: var(--bg-dark-color);
color: var(--fg-color);
font-size: 16px;
- font-family: 'Roboto Mono', monospace;
+ font-family: "Roboto Mono", monospace;
+ font-weight: 400;
+ line-height: 1;
transition: all 0.2s ease-in-out;
user-select: text;
width: calc(100% - 8px);
- min-height: 40px;
resize: vertical;
text-overflow: ellipsis;
@@ -506,7 +506,8 @@ pre {
}
pre.ace_editor {
- font-family: Roboto Mono, monospace;
+ font-family: "Roboto Mono", monospace;
+ font-weight: 400;
z-index: 0;
}
@@ -517,7 +518,8 @@ code {
select,
option {
- height: 40px;
+ height: 37px;
+ line-height: 37px;
cursor: pointer;
}
@@ -649,7 +651,8 @@ ol li {
}
.mono {
- font-family: 'Roboto Mono', monospace;
+ font-family: "Roboto Mono", monospace;
+ font-weight: 400;
}
#response-details-wrapper {
@@ -660,6 +663,7 @@ ol li {
textarea {
margin: 0;
width: 100%;
+ line-height: 1;
}
.covers-response {
@@ -758,10 +762,14 @@ input[type="radio"]:checked + label + .tab {
.inner-right {
display: flex;
- width: 25%;
+ width: 30%;
order: 2;
}
+.bg-color {
+ background-color: var(--bg-color);
+}
+
@media (max-width: $responsiveWidth) {
.content {
flex-flow: column;
diff --git a/assets/fonts/material-icons-v48.woff2 b/assets/fonts/material-icons-v48.woff2
deleted file mode 100644
index 34cdd2afb..000000000
Binary files a/assets/fonts/material-icons-v48.woff2 and /dev/null differ
diff --git a/assets/fonts/poppins-v9-latin-500.woff b/assets/fonts/poppins-v9-latin-500.woff
deleted file mode 100644
index a2d64a1fb..000000000
Binary files a/assets/fonts/poppins-v9-latin-500.woff and /dev/null differ
diff --git a/assets/fonts/poppins-v9-latin-500.woff2 b/assets/fonts/poppins-v9-latin-500.woff2
deleted file mode 100644
index fcf632b49..000000000
Binary files a/assets/fonts/poppins-v9-latin-500.woff2 and /dev/null differ
diff --git a/assets/fonts/poppins-v9-latin-700.woff b/assets/fonts/poppins-v9-latin-700.woff
deleted file mode 100644
index 95ec2a3c4..000000000
Binary files a/assets/fonts/poppins-v9-latin-700.woff and /dev/null differ
diff --git a/assets/fonts/poppins-v9-latin-700.woff2 b/assets/fonts/poppins-v9-latin-700.woff2
deleted file mode 100644
index 77d13cafc..000000000
Binary files a/assets/fonts/poppins-v9-latin-700.woff2 and /dev/null differ
diff --git a/assets/fonts/roboto-mono-v7-latin-regular.woff b/assets/fonts/roboto-mono-v7-latin-regular.woff
deleted file mode 100644
index c41382c27..000000000
Binary files a/assets/fonts/roboto-mono-v7-latin-regular.woff and /dev/null differ
diff --git a/assets/fonts/roboto-mono-v7-latin-regular.woff2 b/assets/fonts/roboto-mono-v7-latin-regular.woff2
deleted file mode 100644
index 53d4b505c..000000000
Binary files a/assets/fonts/roboto-mono-v7-latin-regular.woff2 and /dev/null differ
diff --git a/components/autocomplete.vue b/components/autocomplete.vue
index c723ba266..0cfceffaf 100644
--- a/components/autocomplete.vue
+++ b/components/autocomplete.vue
@@ -55,7 +55,7 @@
width: 100%;
display: block;
padding: 8px 16px;
- font-size: 18px;
+ font-size: 16px;
font-family: "Roboto Mono", monospace;
&:last-child {
diff --git a/components/collections/index.vue b/components/collections/index.vue
index 470ec1f4c..6602f1c0d 100644
--- a/components/collections/index.vue
+++ b/components/collections/index.vue
@@ -96,7 +96,7 @@ TODO:
<style lang="scss" scoped>
.virtual-list {
- max-height: calc(100vh - 220px);
+ max-height: calc(100vh - 204px);
}
ul {
diff --git a/components/history.vue b/components/history.vue
index 3466febcc..fe1e2c3f4 100644
--- a/components/history.vue
+++ b/components/history.vue
@@ -90,6 +90,7 @@
readonly
:value="entry.label"
placeholder="No label"
+ class="bg-color"
/>
</li>
<!--
@@ -263,7 +264,7 @@
<style scoped lang="scss">
.virtual-list {
- max-height: calc(100vh - 284px);
+ max-height: calc(100vh - 265px);
[readonly] {
cursor: default;
@@ -300,10 +301,10 @@ ol li {
span {
position: absolute;
top: 10px;
- right: 8px;
+ right: 10px;
font-family: "Roboto Mono", monospace;
background-color: var(--bg-color);
- padding: 2px 8px;
+ padding: 2px 6px;
border-radius: 8px;
}
}
diff --git a/pages/graphql.vue b/pages/graphql.vue
index ad6736036..6e12e2a36 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -13,13 +13,15 @@
@keyup.enter="getSchema()"
/>
</li>
- <li>
- <label for="get" class="hide-on-small-screen">&nbsp;</label>
- <button id="get" name="get" @click="getSchema">
- Get Schema
- <span><i class="material-icons">send</i></span>
- </button>
- </li>
+ <div>
+ <li>
+ <label for="get" class="hide-on-small-screen">&nbsp;</label>
+ <button id="get" name="get" @click="getSchema">
+ Get Schema
+ <span><i class="material-icons">send</i></span>
+ </button>
+ </li>
+ </div>
</ul>
</pw-section>
diff --git a/pages/index.vue b/pages/index.vue
index edb8239c7..4112f7e3c 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -88,21 +88,23 @@
<option value="Users"></option>
</datalist>
</li>
- <li>
- <label class="hide-on-small-screen" for="send">&nbsp;</label>
- <button
- :disabled="!isValidURL"
- @click="sendRequest"
- id="send"
- ref="sendButton"
- >
- Send
- <span id="hidden-message">Again</span>
- <span>
- <i class="material-icons">send</i>
- </span>
- </button>
- </li>
+ <div>
+ <li>
+ <label class="hide-on-small-screen" for="send">&nbsp;</label>
+ <button
+ :disabled="!isValidURL"
+ @click="sendRequest"
+ id="send"
+ ref="sendButton"
+ >
+ Send
+ <span id="hidden-message">Again</span>
+ <span>
+ <i class="material-icons">send</i>
+ </span>
+ </button>
+ </li>
+ </div>
</ul>
<div
class="blue"
diff --git a/pages/websocket.vue b/pages/websocket.vue
index 75ea1fc11..c7bbc469f 100644
--- a/pages/websocket.vue
+++ b/pages/websocket.vue
@@ -12,21 +12,23 @@
@keyup.enter="urlValid ? toggleConnection() : null"
/>
</li>
- <li>
- <label for="connect" class="hide-on-small-screen">&nbsp;</label>
- <button
- :disabled="!urlValid"
- id="connect"
- name="connect"
- @click="toggleConnection"
- >
- {{ toggleConnectionVerb }}
- <span>
- <i class="material-icons" v-if="!connectionState">sync</i>
- <i class="material-icons" v-if="connectionState">sync_disabled</i>
- </span>
- </button>
- </li>
+ <div>
+ <li>
+ <label for="connect" class="hide-on-small-screen">&nbsp;</label>
+ <button
+ :disabled="!urlValid"
+ id="connect"
+ name="connect"
+ @click="toggleConnection"
+ >
+ {{ toggleConnectionVerb }}
+ <span>
+ <i class="material-icons" v-if="!connectionState">sync</i>
+ <i class="material-icons" v-if="connectionState">sync_disabled</i>
+ </span>
+ </button>
+ </li>
+ </div>
</ul>
</pw-section>
@@ -65,20 +67,22 @@
@keyup.enter="connectionState ? sendMessage() : null"
/>
</li>
- <li>
- <label for="send" class="hide-on-small-screen">&nbsp;</label>
- <button
- id="send"
- name="send"
- :disabled="!connectionState"
- @click="sendMessage"
- >
- Send
- <span>
- <i class="material-icons">send</i>
- </span>
- </button>
- </li>
+ <div>
+ <li>
+ <label for="send" class="hide-on-small-screen">&nbsp;</label>
+ <button
+ id="send"
+ name="send"
+ :disabled="!connectionState"
+ @click="sendMessage"
+ >
+ Send
+ <span>
+ <i class="material-icons">send</i>
+ </span>
+ </button>
+ </li>
+ </div>
</ul>
</pw-section>
</div>
@@ -96,8 +100,9 @@ div.log {
&,
span {
- font-size: 18px;
+ font-size: 16px;
font-family: "Roboto Mono", monospace;
+ font-weight: 400;
}
span {