From 180dfb6edf34b27487d6325a80f509b3d84bb525 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Mon, 18 Nov 2019 20:21:36 -0800 Subject: [PATCH] Add CSS variable for preformatted text color fix #1169 --- BTCPayServer/wwwroot/main/site.css | 4 ++++ BTCPayServer/wwwroot/main/themes/casa.css | 2 ++ BTCPayServer/wwwroot/main/themes/classic.css | 2 ++ BTCPayServer/wwwroot/main/themes/modern.css | 2 ++ 4 files changed, 10 insertions(+) diff --git a/BTCPayServer/wwwroot/main/site.css b/BTCPayServer/wwwroot/main/site.css index 0d079a188..08e06b308 100644 --- a/BTCPayServer/wwwroot/main/site.css +++ b/BTCPayServer/wwwroot/main/site.css @@ -122,3 +122,7 @@ a.nav-link:hover { background: white; display: inline-block; } + +pre { + color: var(--btcpay-preformatted-text-color); +} diff --git a/BTCPayServer/wwwroot/main/themes/casa.css b/BTCPayServer/wwwroot/main/themes/casa.css index 7d08d43d5..c54ba7001 100644 --- a/BTCPayServer/wwwroot/main/themes/casa.css +++ b/BTCPayServer/wwwroot/main/themes/casa.css @@ -62,6 +62,8 @@ --btcpay-header-bg: var(--btcpay-brand-darker); --btcpay-footer-bg: var(--btcpay-brand-darkest); + --btcpay-preformatted-text-color: var(--btcpay-color-white); + --btcpay-font-size-base: 16px; --btcpay-font-family-head: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; --btcpay-font-family-base: -apple-system, 'Open Sans', BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; diff --git a/BTCPayServer/wwwroot/main/themes/classic.css b/BTCPayServer/wwwroot/main/themes/classic.css index 471c7a57b..5e8b2cd4f 100644 --- a/BTCPayServer/wwwroot/main/themes/classic.css +++ b/BTCPayServer/wwwroot/main/themes/classic.css @@ -57,6 +57,8 @@ --btcpay-bg-nav-link-active: #d9f7ef; + --btcpay-preformatted-text-color: var(--btcpay-color-neutral-900); + --btcpay-font-size-base: 14px; --btcpay-font-family-head: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; --btcpay-font-family-base: 'Helvetica Neue', Arial, sans-serif; diff --git a/BTCPayServer/wwwroot/main/themes/modern.css b/BTCPayServer/wwwroot/main/themes/modern.css index 4aacfb487..d98217167 100644 --- a/BTCPayServer/wwwroot/main/themes/modern.css +++ b/BTCPayServer/wwwroot/main/themes/modern.css @@ -48,6 +48,8 @@ --btcpay-section-heading-text-align: left; + --btcpay-preformatted-text-color: var(--btcpay-color-neutral-900); + --btcpay-font-size-base: 16px; --btcpay-font-family-head: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; --btcpay-font-family-base: -apple-system, 'Open Sans', BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";