Support print media type using CSS

This commit is contained in:
rubenwardy 2017-08-26 17:25:24 +01:00
parent 3be02199a6
commit d5a9844de6
2 changed files with 19 additions and 13 deletions

View File

@ -35,7 +35,6 @@
<li><a href="{{ page.root }}lua_api.html">Lua Modding API Reference</a></li>
<li><a href="https://github.com/rubenwardy/minetest_modding_book/archive/examples.zip">Download Examples</a></li>
<li><a id="printable">Printable Version</a></li>
</ul>
<div id="page">

View File

@ -10,18 +10,6 @@ html, body {
color: black;
}
.printable #navbar{
display: none;
}
.printable #page {
left: 0;
}
.printable .header-link {
display: none !important;
}
a {
color: blue;
text-decoration: underline;
@ -206,3 +194,22 @@ h3 {
padding-top: 20px;
}
}
@media print {
#navbar{
display: none !important;
}
#page {
left: 0 !important;
}
.header-link {
display: none !important;
}
a {
color: black !important;
text-decoration: none !important;
}
}