Support print media type using CSS
This commit is contained in:
parent
3be02199a6
commit
d5a9844de6
@ -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">
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user