From 391d7b01d1dfbfa463809e4bd2be53bba2cebc6d Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Tue, 14 Jul 2020 13:29:26 +0200 Subject: [PATCH] UI: Minor enhancements to 2FA view Improve hover highlight for light and dark theme. APply a bit more spacing to the 2FA link cells. Also fixes table row highlight in light theme. --- .../Manage/TwoFactorAuthentication.cshtml | 87 +++++++++---------- .../wwwroot/main/themes/default-dark.css | 9 +- BTCPayServer/wwwroot/main/themes/default.css | 3 +- 3 files changed, 50 insertions(+), 49 deletions(-) diff --git a/BTCPayServer/Views/Manage/TwoFactorAuthentication.cshtml b/BTCPayServer/Views/Manage/TwoFactorAuthentication.cshtml index bb4baf202..eb2728da8 100644 --- a/BTCPayServer/Views/Manage/TwoFactorAuthentication.cshtml +++ b/BTCPayServer/Views/Manage/TwoFactorAuthentication.cshtml @@ -37,52 +37,49 @@ } } -
- @section Scripts { diff --git a/BTCPayServer/wwwroot/main/themes/default-dark.css b/BTCPayServer/wwwroot/main/themes/default-dark.css index 226d05478..d6bf6fb11 100644 --- a/BTCPayServer/wwwroot/main/themes/default-dark.css +++ b/BTCPayServer/wwwroot/main/themes/default-dark.css @@ -39,9 +39,12 @@ filter: none; } +.list-group-item-action, +.list-group-item-action:hover { + color: var(--btcpay-body-color); +} + +.list-group-item-action:hover, .table-sm tbody tr:hover { background-color: var(--btcpay-color-neutral-950); } -.list-group-item-action { - color: var(--btcpay-body-color); -} diff --git a/BTCPayServer/wwwroot/main/themes/default.css b/BTCPayServer/wwwroot/main/themes/default.css index e0170b7cd..9e5c06de7 100644 --- a/BTCPayServer/wwwroot/main/themes/default.css +++ b/BTCPayServer/wwwroot/main/themes/default.css @@ -124,8 +124,9 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { border-top: none; } +.list-group-item-action:hover, .table-sm tbody tr:hover { - background-color: var(--btcpay-color-neutral-100); + background-color: var(--btcpay-color-white); } .removetopborder tr:first-child th,