Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e11d46c

Browse filesBrowse files
tlhuntercodebytere
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 <rtrott@gmail.com> Reviewed-By: Bryan English <bryan@bryanenglish.com>
1 parent 3b6135f commit e11d46c
Copy full SHA for e11d46c

File tree

Expand file treeCollapse file tree

1 file changed

+40
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+40
-1
lines changed
Open diff view settings
Collapse file

‎doc/api_assets/style.css‎

Copy file name to clipboardExpand all lines: doc/api_assets/style.css
+40-1Lines changed: 40 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.