summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2018-05-30 17:03:04 +0200
committerRoman Reiss <me@silverwind.io>2018-05-31 15:07:01 +0200
commit0baad8f0eb718e7a359922b861bc99e7ab17913f (patch)
treef2d3df8020ecbc6c65d5ab4131299ff490bf7feb
parent694ac6de5ba2591c8d3d56017b2423bd3e39f769 (diff)
downloadandroid-node-v8-0baad8f0eb718e7a359922b861bc99e7ab17913f.tar.gz
android-node-v8-0baad8f0eb718e7a359922b861bc99e7ab17913f.tar.bz2
android-node-v8-0baad8f0eb718e7a359922b861bc99e7ab17913f.zip
doc: better font stack for monospace in docs
There appear to be rendering issues with inconsistent glyph width when using the Monaco font on non-macOS machines. This change updates the native CSS font stack to use the same font stack as Boostrap does, minus the Monaco font. PR-URL: https://github.com/nodejs/node/pull/21036 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yazhong Liu <yorkiefixer@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
-rw-r--r--doc/api_assets/style.css2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css
index 97ef2a5b89..b4da3375d5 100644
--- a/doc/api_assets/style.css
+++ b/doc/api_assets/style.css
@@ -35,7 +35,7 @@ h1, h2, h3, h4, h5, h6 {
}
pre, tt, code, .pre, span.type, a.type {
- font-family: Monaco, Consolas, "Lucida Console", monospace;
+ font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: .9em;
}