diff options
author | Roman Reiss <me@silverwind.io> | 2018-05-30 18:03:04 +0300 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2018-05-31 16:07:01 +0300 |
commit | 0baad8f0eb718e7a359922b861bc99e7ab17913f (patch) | |
tree | f2d3df8020ecbc6c65d5ab4131299ff490bf7feb /doc/api_assets | |
parent | 694ac6de5ba2591c8d3d56017b2423bd3e39f769 (diff) |
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>
Diffstat (limited to 'doc/api_assets')
-rw-r--r-- | doc/api_assets/style.css | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 97ef2a5b892..b4da3375d5b 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; } |