diff options
author | Fred Drake <fdrake@acm.org> | 2003-09-04 19:30:15 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-09-04 19:30:15 (GMT) |
commit | 859c46a1fda3961b479bb2d08dcb28128a6c215e (patch) | |
tree | 35ca800cf59313e48d1073989fa54eb12f283525 | |
parent | 1e3bdf6c459a2e324730dda2db53ad845ad39532 (diff) | |
download | cpython-859c46a1fda3961b479bb2d08dcb28128a6c215e.zip cpython-859c46a1fda3961b479bb2d08dcb28128a6c215e.tar.gz cpython-859c46a1fda3961b479bb2d08dcb28128a6c215e.tar.bz2 |
Make the redundent portion of the lower navigation area disappear from the
printed version for browsers that support "@media print" in CSS.
-rw-r--r-- | Doc/html/style.css | 8 | ||||
-rw-r--r-- | Doc/perl/l2hinit.perl | 8 |
2 files changed, 13 insertions, 3 deletions
diff --git a/Doc/html/style.css b/Doc/html/style.css index e0cb736..bd79427 100644 --- a/Doc/html/style.css +++ b/Doc/html/style.css @@ -140,3 +140,11 @@ div.note .label { margin-right: 0.5em; * the top of modules. */ .availability .platform { font-weight: bold; } + + +/* + * Some specialization for printed output. + */ +@media print { + #bottom-navigation-panel { display: none; } + } diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index cbf1e41..41b2f94 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -227,14 +227,16 @@ sub get_version_text() { sub top_navigation_panel() { - return "\n" + return "\n<div id='top-navigation-panel'>\n" . make_nav_panel() - . "<br /><hr />\n"; + . "<br /><hr /></div>\n"; } sub bot_navigation_panel() { - return "\n<p></p><hr />\n" + return "\n<div id='bottom-navigation-panel'>\n" + . "<p></p><hr />\n" . make_nav_panel() + . "</div>\n" . "<hr />\n" . get_version_text() . "\n"; |