Skip to content

Commit 0dd5c75

Browse files
authored
Rollup merge of #99045 - 1011X:patch-1, r=GuillaumeGomez
improve print styles this change removes some interactive elements in ``@media` print` form. more specifically, it removes the sidebar, source links, the expand/collapse toggle buttons, and the `#copy-path` button. it also adjusts some spacing and removes the `.top-doc` description completely if it's currently collapsed.
2 parents 95e7764 + aa7bcaa commit 0dd5c75

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/librustdoc/html/static/css/rustdoc.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -2056,9 +2056,19 @@ in storage.js plus the media query with (min-width: 701px)
20562056
}
20572057

20582058
@media print {
2059-
nav.sub, .content .out-of-band {
2059+
nav.sidebar, nav.sub, .content .out-of-band, a.srclink, #copy-path,
2060+
details.rustdoc-toggle[open] > summary::before, details.rustdoc-toggle > summary::before,
2061+
details.rustdoc-toggle.top-doc > summary {
20602062
display: none;
20612063
}
2064+
2065+
.docblock {
2066+
margin-left: 0;
2067+
}
2068+
2069+
main {
2070+
padding: 10px;
2071+
}
20622072
}
20632073

20642074
@media (max-width: 464px) {

0 commit comments

Comments
 (0)