From b9af805ac1a432b54f302d772ea92584fb431369 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Mon, 26 Oct 2020 10:34:43 +0100 Subject: [PATCH] Store UI: Improve wallet status display --- BTCPayServer/Views/Stores/UpdateStore.cshtml | 16 +++++----- BTCPayServer/wwwroot/main/site.css | 31 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/BTCPayServer/Views/Stores/UpdateStore.cshtml b/BTCPayServer/Views/Stores/UpdateStore.cshtml index 89c7cc404..81ae5993c 100644 --- a/BTCPayServer/Views/Stores/UpdateStore.cshtml +++ b/BTCPayServer/Views/Stores/UpdateStore.cshtml @@ -68,20 +68,20 @@ @if (scheme.Enabled) { - - + + Enabled - + } else { - + Disabled } | - + @(scheme.Enabled ? "Modify" : "Setup") @@ -137,19 +137,19 @@ @if (scheme.Enabled) { - + Enabled } else { - + Disabled } | - + @(scheme.Enabled ? "Modify" : "Setup") diff --git a/BTCPayServer/wwwroot/main/site.css b/BTCPayServer/wwwroot/main/site.css index 91e0d36ac..0852982f9 100644 --- a/BTCPayServer/wwwroot/main/site.css +++ b/BTCPayServer/wwwroot/main/site.css @@ -3,6 +3,8 @@ html { position: relative; min-height: 100%; font-size: var(--btcpay-font-size-base); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } .logo { @@ -318,3 +320,32 @@ html[data-devenv]:before { .note-editor .table.table-sm td { border: 1px dotted var(--btcpay-color-neutral-400); } + +/* Custom */ +.btcpay-status { + display: inline-flex; + align-items: center; + justify-content: center; + border: .25em solid transparent; + border-radius: 50%; + width: 19px; + height: 19px; +} +.btcpay-status:before { + content: ''; + border-radius: 50%; + width: 9px; + height: 9px; +} +.btcpay-status--enabled { + background-color: rgba(0, 182, 52, .3); +} +.btcpay-status--enabled:before { + background-color: #00B634; +} +.btcpay-status--disabled { + background-color: rgba(251, 56, 61, .3); +} +.btcpay-status--disabled:before { + background-color: #FB383D; +}