Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 859c46a

Browse files
committed
Make the redundent portion of the lower navigation area disappear from the
printed version for browsers that support "@media print" in CSS.
1 parent 1e3bdf6 commit 859c46a

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Doc/html/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,11 @@ div.note .label { margin-right: 0.5em;
140140
* the top of modules.
141141
*/
142142
.availability .platform { font-weight: bold; }
143+
144+
145+
/*
146+
* Some specialization for printed output.
147+
*/
148+
@media print {
149+
#bottom-navigation-panel { display: none; }
150+
}

Doc/perl/l2hinit.perl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,16 @@ ()
227227

228228

229229
sub top_navigation_panel() {
230-
return "\n"
230+
return "\n<div id='top-navigation-panel'>\n"
231231
. make_nav_panel()
232-
. "<br /><hr />\n";
232+
. "<br /><hr /></div>\n";
233233
}
234234

235235
sub bot_navigation_panel() {
236-
return "\n<p></p><hr />\n"
236+
return "\n<div id='bottom-navigation-panel'>\n"
237+
. "<p></p><hr />\n"
237238
. make_nav_panel()
239+
. "</div>\n"
238240
. "<hr />\n"
239241
. get_version_text()
240242
. "\n";

0 commit comments

Comments
 (0)