Skip to content

Commit eab2bea

Browse files
saadqtniessen
authored andcommitted
doc: fix word wrapping for api stability boxes
PR-URL: #14809 Fixes: nodejs/nodejs.org#1337 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 0309619 commit eab2bea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/api_assets/style.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ em code {
9393
color: white !important;
9494
margin: 0 0 1em 0;
9595
font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif;
96-
font-weight: 700;
96+
padding: 1em;
97+
line-height: 1.5;
9798
}
9899

99100
.api_stability * {

tools/doc/html.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ function parseAPIHeader(text) {
400400

401401
text = text.replace(
402402
STABILITY_TEXT_REG_EXP,
403-
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
403+
`<div class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</div>`
404404
);
405405
return text;
406406
}

0 commit comments

Comments
 (0)