Permalink
Browse files

doc: fix word wrapping for api stability boxes

PR-URL: #14809
Fixes: nodejs/nodejs.org#1337
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information...
saadq authored and MylesBorins committed Aug 13, 2017
1 parent 4fb4fbe commit a63cd820038dc3a12cf86013994a69386f078f09
Showing with 3 additions and 2 deletions.
  1. +2 −1 doc/api_assets/style.css
  2. +1 −1 tools/doc/html.js
View
@@ -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 * {
View
@@ -349,7 +349,7 @@ function parseAPIHeader(text) {
text = text.replace(
STABILITY_TEXT_REG_EXP,
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
`<div class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</div>`
);
return text;
}

0 comments on commit a63cd82

Please sign in to comment.