Skip to content

Commit a63cd82

Browse files
saadqMylesBorins
authored andcommittedSep 20, 2017
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 4fb4fbe commit a63cd82

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
@@ -349,7 +349,7 @@ function parseAPIHeader(text) {
349349

350350
text = text.replace(
351351
STABILITY_TEXT_REG_EXP,
352-
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
352+
`<div class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</div>`
353353
);
354354
return text;
355355
}

0 commit comments

Comments
 (0)