8235670: Javadoc pages not printing correctly in some browsers

Reviewed-by: jjg, prappo
This commit is contained in:
Hannes Wallnöfer 2019-12-11 16:13:59 +01:00
parent a1b0802caf
commit 9b1498c20e

View File

@ -124,19 +124,21 @@ button {
/* /*
* Styles for navigation bar. * Styles for navigation bar.
*/ */
.flexBox { @media screen {
position:fixed; .flexBox {
display:flex; position:fixed;
flex-direction:column; display:flex;
height: 100%; flex-direction:column;
width: 100%; height: 100%;
} width: 100%;
.flexHeader { }
flex: 0 0 auto; .flexHeader {
} flex: 0 0 auto;
.flexContent { }
flex: 1 1 auto; .flexContent {
overflow-y: auto; flex: 1 1 auto;
overflow-y: auto;
}
} }
.topNav { .topNav {
background-color:#4D7A97; background-color:#4D7A97;
@ -226,6 +228,14 @@ ul.subNavList li {
left:-9999px; left:-9999px;
overflow:hidden; overflow:hidden;
} }
/*
* Hide navigation links and search box in print layout
*/
@media print {
ul.navList, div.subNav {
display:none;
}
}
/* /*
* Styles for page header and footer. * Styles for page header and footer.
*/ */