diff options
author | Thomas Hunter II <me@thomashunter.name> | 2018-11-12 12:09:39 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-16 21:13:46 -0800 |
commit | 344a46ad03e8e9808df8b3cc99b6b4f39dec3ef8 (patch) | |
tree | d2698875908d0d395979ddf259744a5d732023ac | |
parent | 323a365766e30895860ce0e0ac95f7f33a060021 (diff) | |
download | android-node-v8-344a46ad03e8e9808df8b3cc99b6b4f39dec3ef8.tar.gz android-node-v8-344a46ad03e8e9808df8b3cc99b6b4f39dec3ef8.tar.bz2 android-node-v8-344a46ad03e8e9808df8b3cc99b6b4f39dec3ef8.zip |
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: https://github.com/nodejs/node/pull/24325
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
-rw-r--r-- | doc/api_assets/style.css | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 7d65b7405b..d5220e8168 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -533,12 +533,51 @@ th > *:last-child, td > *:last-child { @media print { html { height: auto; + font-size: 0.75em; } #column2.interior { display: none; } #column1.interior { - margin-left: auto; + margin-left: 0px; + padding: 0px; overflow-y: auto; } + .api_metadata, + #toc, + .srclink, + #gtoc, + .mark { + display: none; + } + h1 { + font-size: 2rem; + } + h2 { + font-size: 1.75rem; + } + h3 { + font-size: 1.5rem; + } + h4 { + font-size: 1.3rem; + } + h5 { + font-size: 1.2rem; + } + h6 { + font-size: 1.1rem; + } + .api_stability { + display: inline-block; + } + .api_stability a { + text-decoration: none; + } + a { + color: inherit; + } + #apicontent { + overflow: hidden; + } } |