Skip to content

Commit 81ec97b

Browse files
tlhunterrvagg
authored andcommitted
doc: adjusting formatting when printing
- reduces page margins - removes emphasis from links - hides expandable history items - removes horizontal scrollbar from bottom of print output - reduce stability rectangle sizes - shrink headlines slightly - hide ToC (as it's unclickable when printed) Ref: https://thomashunter.name/nodejs-documentation-pdf PR-URL: #24325 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Bryan English <[email protected]>
1 parent 4dc1e78 commit 81ec97b

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

doc/api_assets/style.css

+40-1
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,51 @@ th > *:last-child, td > *:last-child {
533533
@media print {
534534
html {
535535
height: auto;
536+
font-size: 0.75em;
536537
}
537538
#column2.interior {
538539
display: none;
539540
}
540541
#column1.interior {
541-
margin-left: auto;
542+
margin-left: 0px;
543+
padding: 0px;
542544
overflow-y: auto;
543545
}
546+
.api_metadata,
547+
#toc,
548+
.srclink,
549+
#gtoc,
550+
.mark {
551+
display: none;
552+
}
553+
h1 {
554+
font-size: 2rem;
555+
}
556+
h2 {
557+
font-size: 1.75rem;
558+
}
559+
h3 {
560+
font-size: 1.5rem;
561+
}
562+
h4 {
563+
font-size: 1.3rem;
564+
}
565+
h5 {
566+
font-size: 1.2rem;
567+
}
568+
h6 {
569+
font-size: 1.1rem;
570+
}
571+
.api_stability {
572+
display: inline-block;
573+
}
574+
.api_stability a {
575+
text-decoration: none;
576+
}
577+
a {
578+
color: inherit;
579+
}
580+
#apicontent {
581+
overflow: hidden;
582+
}
544583
}

0 commit comments

Comments
 (0)