From d53cfcd9e764633a24e2a8530c27fa2e78d43748 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 4 Oct 2020 05:59:05 -0700 Subject: [PATCH] doc: improve kbd element rendering * better vertical alignment with text * slightly larger "key" size * remove top light area (from box-shadow) PR-URL: https://github.com/nodejs/node/pull/35497 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- doc/api_assets/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index c54804269c38e5..242cc6a7d11db2 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -576,14 +576,14 @@ kbd { background-color: #eee; border-radius: 3px; border: 1px solid #b4b4b4; - box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset; + box-shadow: 0 1px 1px rgba(0, 0, 0, .2); color: #333; display: inline-block; font-size: .85em; font-weight: 700; - line-height: 1; padding: 2px 4px; white-space: nowrap; + vertical-align: middle; } .changelog > summary {