mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Make the redundent portion of the lower navigation area disappear from the
printed version for browsers that support "@media print" in CSS.
This commit is contained in:
parent
1e3bdf6c45
commit
859c46a1fd
2 changed files with 13 additions and 3 deletions
|
@ -140,3 +140,11 @@ div.note .label { margin-right: 0.5em;
|
||||||
* the top of modules.
|
* the top of modules.
|
||||||
*/
|
*/
|
||||||
.availability .platform { font-weight: bold; }
|
.availability .platform { font-weight: bold; }
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Some specialization for printed output.
|
||||||
|
*/
|
||||||
|
@media print {
|
||||||
|
#bottom-navigation-panel { display: none; }
|
||||||
|
}
|
||||||
|
|
|
@ -227,14 +227,16 @@ sub get_version_text() {
|
||||||
|
|
||||||
|
|
||||||
sub top_navigation_panel() {
|
sub top_navigation_panel() {
|
||||||
return "\n"
|
return "\n<div id='top-navigation-panel'>\n"
|
||||||
. make_nav_panel()
|
. make_nav_panel()
|
||||||
. "<br /><hr />\n";
|
. "<br /><hr /></div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub bot_navigation_panel() {
|
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()
|
. make_nav_panel()
|
||||||
|
. "</div>\n"
|
||||||
. "<hr />\n"
|
. "<hr />\n"
|
||||||
. get_version_text()
|
. get_version_text()
|
||||||
. "\n";
|
. "\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue