diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 8669c3968..d1059e540 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -20,6 +20,7 @@ $responsiveWidth: 720px; ::placeholder { color: var(--fg-color); + opacity: 0.3; } * { @@ -91,7 +92,7 @@ button { justify-content: center; margin: 4px; padding: 8px 16px; - border-radius: 4px; + border-radius: 8px; background-color: var(--ac-color); color: var(--act-color); font-weight: 700; @@ -108,14 +109,13 @@ button { &.icon { background-color: var(--bg-color); - color: var(--ac-color); - fill: var(--ac-color); + color: var(--fg-color); + fill: var(--fg-color); } &:not([disabled]):hover, &:not(.disabled):focus { background-color: var(--bg-color); - box-shadow: inset 0 0 0 2px var(--ac-color); color: var(--ac-color); fill: var(--ac-color); } @@ -123,8 +123,9 @@ button { fieldset { margin: 16px 0; - border: 2px solid var(--fg-color); - border-radius: 4px; + border: 1px solid var(--brd-color); + border-radius: 8px; + background-color: var(--bg-color); } legend { @@ -138,74 +139,38 @@ fieldset pre code { resize: vertical; } -fieldset.blue { - border-color: #57b5f9; -} - fieldset.blue legend { color: #57b5f9; } -fieldset.gray { - border-color: #bcc2cd; -} - fieldset.gray legend { color: #bcc2cd; } -fieldset.green { - border-color: #50fa7b; -} - fieldset.green legend { color: #50fa7b; } -fieldset.cyan { - border-color: #8be9fd; -} - fieldset.cyan legend { color: #8be9fd; } -fieldset.purple { - border-color: #bd93f9; -} - fieldset.purple legend { color: #bd93f9; } -fieldset.orange { - border-color: #ffb86c; -} - fieldset.orange legend { color: #ffb86c; } -fieldset.pink { - border-color: #ff79c6; -} - fieldset.pink legend { color: #ff79c6; } -fieldset.red { - border-color: #ff5555; -} - fieldset.red legend { color: #ff5555; } -fieldset.yellow { - border-color: #f1fa8c; -} - fieldset.yellow legend { color: #f1fa8c; } @@ -221,19 +186,19 @@ textarea, pre { margin: 4px; padding: 8px; - border-radius: 4px; + border-radius: 8px; width: calc(100% - 8px); - background-color: var(--bg-dark-color); + background-color: var(--brd-color); color: var(--fg-color); font-size: 18px; font-family: monospace; transition: all 0.2s ease-in-out; - user-select: all; + user-select: text; &:not([readonly]):hover, &:not([readonly]):focus { background-color: var(--bg-color); - box-shadow: inset 0 0 0 2px var(--ac-color); + box-shadow: inset 0 0 0 2px var(--fg-color); } } @@ -247,7 +212,7 @@ code { .hljs, .hljs-subst { - background-color: var(--bg-dark-color) !important; + background-color: var(--brd-color) !important; color: var(--fg-color) !important; } @@ -267,8 +232,8 @@ input[type="checkbox"] { &:before { content: "\2714"; - border: 2px solid var(--fg-color); - border-radius: 4px; + border: 1px solid var(--fg-color); + border-radius: 8px; display: inline-flex; height: 16px; width: 16px; @@ -366,23 +331,23 @@ ol li { } .info-response { - background-color: #ffeb3b; + color: #ffeb3b; } .success-response { - background-color: #4bb543; + color: #4bb543; } .redir-response { - background-color: #ff5722; + color: #ff5722; } .cl-error-response { - background-color: #a63232; + color: #a63232; } .sv-error-response { - background-color: #b71c1c; + color: #b71c1c; } .missing-data-response { @@ -399,7 +364,7 @@ fieldset#history { span { position: absolute; - top: 44px; + top: 12px; right: 12px; font-family: monospace, monospace; } @@ -421,7 +386,7 @@ fieldset#history { #response-details-wrapper { position: relative; overflow: hidden; - border-radius: 4px; + border-radius: 8px; textarea { margin: 0; @@ -481,11 +446,12 @@ input[type="radio"] + label { transition: all 0.2s ease; &:hover { - border-color: var(--err-color); + border-color: var(--brd-color); } } input[type="radio"]:checked + label { + color: var(--ac-color); border-color: var(--ac-color); } diff --git a/assets/css/themes.scss b/assets/css/themes.scss index 4428f363c..67f48f424 100644 --- a/assets/css/themes.scss +++ b/assets/css/themes.scss @@ -7,17 +7,17 @@ // Dark is the default theme variant. :root { - --bg-dark-color: #44475a; + --bg-dark-color: #1d1f27; // Background color --bg-color: #282a36; // Auto-complete color --atc-color: #3C4556; // Text color - --fg-color: #f8f8f2; - + --fg-color: #d0d1dc; + // Border color + --brd-color: #333545; // Error color --err-color: #3C4556; - // Active color --ac-color: #50fa7b; // Active text color @@ -32,10 +32,10 @@ --atc-color: #e1e4eb; // Text color --fg-color: #5d5d5f; - + // Border color + --brd-color: #ccc; // Error color --err-color: invert(#3C4556, 1); - // Active color --ac-color: #57b5f9; // Active text color diff --git a/components/history.vue b/components/history.vue index 55513ecff..4e42f4807 100644 --- a/components/history.vue +++ b/components/history.vue @@ -2,43 +2,36 @@ - +
  • -
  • - - {{entry.status}} + {{entry.status}}
  • -
  • -
  • -
  • -
  • @@ -52,16 +45,16 @@
  • - +
  • - -
    @@ -151,7 +144,7 @@ @media (max-width: 720px) { .virtual-list.filled { - min-height: 380px; + min-height: 200px; } } diff --git a/components/modal.vue b/components/modal.vue index 5ad717883..333439e38 100644 --- a/components/modal.vue +++ b/components/modal.vue @@ -25,7 +25,7 @@ left: 0; width: 100%; height: 100%; - background-color: rgba(0, 0, 0, 0.75); + background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; @@ -48,8 +48,8 @@ padding: 12px; transition: all 0.2s ease; background-color: var(--bg-color); - border: 2px solid var(--ac-color); - border-radius: 4px; + border-radius: 8px; + box-shadow: rgba(0, 0, 0, 0.5) 0px 16px 70px; } /* diff --git a/components/settings/swatch.vue b/components/settings/swatch.vue index 40f9bd1b1..5339a8391 100644 --- a/components/settings/swatch.vue +++ b/components/settings/swatch.vue @@ -15,7 +15,7 @@ padding: 8px 16px; margin: 4px; background-color: rgba(93, 93, 93, 0.2); - border-radius: 4px; + border-radius: 8px; cursor: pointer; &.active { @@ -65,4 +65,4 @@ } } } - \ No newline at end of file + diff --git a/layouts/default.vue b/layouts/default.vue index f5367b406..9ba848d12 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -4,8 +4,7 @@
    -

    - Postwoman

    +

    Postwoman

    API request builder

    @@ -15,7 +14,7 @@ - + @@ -105,7 +104,7 @@ right: 0; z-index: -1; background-color: var(--ac-color); - border-radius: 4px; + border-radius: 8px; margin: auto; } diff --git a/pages/index.vue b/pages/index.vue index a8c64ab83..a05acbd47 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,7 +3,9 @@
    • - +
    @@ -14,8 +16,8 @@

    Import cURL

    @@ -33,7 +35,9 @@
    • - +
    @@ -65,20 +69,20 @@
  • @@ -89,8 +93,8 @@ @@ -114,8 +118,8 @@
    @@ -140,19 +144,16 @@
    • - - +
    • - - +
    • -
    • @@ -160,12 +161,17 @@
    • - +
    • - +
    @@ -198,8 +204,8 @@
    @@ -227,7 +233,7 @@
    - +
    • @@ -240,22 +246,19 @@
    • - - +
    • - - +
    • -
    • @@ -263,8 +266,7 @@
    • - - +
    @@ -273,21 +275,24 @@
    +
      +
    • + + +
    • +
    • - - +
    • - - +
    • -
    • @@ -295,13 +300,12 @@
    • - -
    • -
    -
      -
    • - - +
    @@ -310,21 +314,24 @@
    +
      +
    • + + +
    • +
    • - - +
    • - - +
    • -
    • @@ -332,13 +339,12 @@
    • - -
    • -
    -
      -
    • - - +
    @@ -420,8 +426,8 @@ data() { return { showModal: false, - copyButton: '', - copiedButton: '', + copyButton: '', + copiedButton: '', method: 'GET', url: 'https://reqres.in', auth: 'None', @@ -838,7 +844,7 @@ dummy.select(); document.execCommand('copy'); document.body.removeChild(dummy); - setTimeout(() => this.$refs.copyRequest.innerHTML = this.copyButton + 'Share URL', 1500) + setTimeout(() => this.$refs.copyRequest.innerHTML = this.copyButton + 'Permalink', 1500) } }, copyRequestCode() { diff --git a/pages/websocket.vue b/pages/websocket.vue index 054cce3e2..78fa2a53e 100644 --- a/pages/websocket.vue +++ b/pages/websocket.vue @@ -6,20 +6,22 @@
  • -
  • - - -
  • +
    +
  • + + +
  • +
@@ -39,17 +41,19 @@ -
  • - - -
  • +
    +
  • + + +
  • +
    @@ -59,7 +63,7 @@ margin: 4px; padding: 8px 16px; width: calc(100% - 8px); - border-radius: 4px; + border-radius: 8px; background-color: var(--bg-dark-color); color: var(--fg-color); height: 256px;