From 1f954ab67342a4961f78fcf700bf0ddc6bcdb9f2 Mon Sep 17 00:00:00 2001 From: Artem Baskal Date: Wed, 13 May 2020 15:34:56 +0300 Subject: [PATCH] Merge: + client: Use monospace font in coding-like inputs Close #1650 Squashed commit of the following: commit 0956b77d2675bf569ab8413bf1a905167f068fbd Author: ArtemBaskal Date: Tue May 12 18:22:55 2020 +0300 Replace css variable commit 7c65954e3727c09404999d4d029276f78a8d0ffe Author: ArtemBaskal Date: Tue May 12 18:06:31 2020 +0300 + client: Use monospace font in coding-like inputs --- client/src/components/App/index.css | 8 ++ client/src/components/Filters/CustomRules.js | 2 +- .../components/Settings/Dns/Access/Form.js | 93 +++++++++---------- .../components/Settings/Dns/Upstream/Form.js | 4 +- 4 files changed, 56 insertions(+), 51 deletions(-) diff --git a/client/src/components/App/index.css b/client/src/components/App/index.css index 391ddabd..7d2fa250 100644 --- a/client/src/components/App/index.css +++ b/client/src/components/App/index.css @@ -1,3 +1,7 @@ +:root { + font-family-monospace: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace; +} + body { margin: 0; padding: 0; @@ -30,3 +34,7 @@ body { .hidden { display: none; } + +.font-monospace { + font-family: var(--font-family-monospace); +} \ No newline at end of file diff --git a/client/src/components/Filters/CustomRules.js b/client/src/components/Filters/CustomRules.js index ed10d978..291805ac 100644 --- a/client/src/components/Filters/CustomRules.js +++ b/client/src/components/Filters/CustomRules.js @@ -54,7 +54,7 @@ class CustomRules extends Component { >