From c0c7036ada0ae1c578758f69594f22078cceae09 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Mon, 9 Sep 2019 11:27:00 +0530 Subject: [PATCH] :art: Fixed some UI glitch --- assets/css/styles.scss | 26 +++++++++++++----- assets/js/curlparser.js | 2 +- components/history.vue | 2 +- components/modal.vue | 59 +++++++++++++++++------------------------ pages/index.vue | 14 +++++----- 5 files changed, 51 insertions(+), 52 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index b276105cb..d746da607 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -17,6 +17,10 @@ $responsiveWidth: 720px; background-color: rgba(0, 0, 0, .5); } +::placeholder { + color: var(--fg-color); +} + * { box-sizing: border-box; outline: 0; @@ -194,6 +198,14 @@ fieldset.red legend { color: #ff5555; } +fieldset.yellow { + border-color: #f1fa8c; +} + +fieldset.yellow legend { + color: #f1fa8c; +} + .hidden { display: none; } @@ -204,7 +216,7 @@ option, textarea, pre { margin: 4px; - padding: 8px 16px; + padding: 8px; border-radius: 4px; width: calc(100% - 8px); background-color: var(--bg-dark-color); @@ -213,12 +225,6 @@ pre { font-size: 18px; font-family: monospace; transition: all 0.2s ease-in-out; -} - -select, -input, -option { - height: 41px; &:not([readonly]):hover, &:not([readonly]):focus { @@ -227,6 +233,12 @@ option { } } +select, +input, +option { + height: 41px; +} + input[type="checkbox"] { display: none; diff --git a/assets/js/curlparser.js b/assets/js/curlparser.js index 0b2c52f1f..710e92f7b 100644 --- a/assets/js/curlparser.js +++ b/assets/js/curlparser.js @@ -220,4 +220,4 @@ function parseCurlCommand(curlCommand) { } -export default parseCurlCommand; \ No newline at end of file +export default parseCurlCommand; diff --git a/components/history.vue b/components/history.vue index 592b5571e..eb09bb796 100644 --- a/components/history.vue +++ b/components/history.vue @@ -3,7 +3,7 @@ diff --git a/components/modal.vue b/components/modal.vue index 2edeaa518..8f6ebeba8 100644 --- a/components/modal.vue +++ b/components/modal.vue @@ -5,17 +5,13 @@ @@ -23,50 +19,43 @@ - \ No newline at end of file + diff --git a/pages/index.vue b/pages/index.vue index f0c7d70ae..894f90668 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,13 +1,13 @@