From a63cd820038dc3a12cf86013994a69386f078f09 Mon Sep 17 00:00:00 2001 From: Saad Quadri Date: Sun, 13 Aug 2017 12:20:17 -0400 Subject: [PATCH] doc: fix word wrapping for api stability boxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/14809 Fixes: https://github.com/nodejs/nodejs.org/issues/1337 Reviewed-By: Gibson Fahnestock Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann Reviewed-By: James M Snell Reviewed-By: Daijiro Wachi Reviewed-By: Roman Reiss Reviewed-By: Tobias Nießen --- doc/api_assets/style.css | 3 ++- tools/doc/html.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 55dfbb187f18d0..a9989e9fdcca84 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -93,7 +93,8 @@ em code { color: white !important; margin: 0 0 1em 0; font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; - font-weight: 700; + padding: 1em; + line-height: 1.5; } .api_stability * { diff --git a/tools/doc/html.js b/tools/doc/html.js index 7f22769e633dd3..bc968f4152155b 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -349,7 +349,7 @@ function parseAPIHeader(text) { text = text.replace( STABILITY_TEXT_REG_EXP, - `
$1 $2$3
` + `` ); return text; }