CSS-only: Hide more elements in print

- Hide navigation, footer and buttons
- Remove link targets which are added by Bootstrap
- Remove top padding

Issue: #2435

Signed-off-by: Bernhard Bock <bernhard@bock.nu> (github: bbock)
This commit is contained in:
Bernhard Bock 2018-09-21 14:25:58 +02:00
parent 68a269b266
commit 7d7368a52f

View File

@ -8,9 +8,11 @@ html {
html, body {
height: 100%;
}
@media screen {
body {
padding-top: 70px;
}
}
.container {
width: auto;
max-width: 1600px;
@ -448,6 +450,15 @@ textarea {
/* Hide some elements for printing */
@media print {
.footer {
display: none;
}
.btn {
display: none;
}
.nav-tabs, .nav-pills {
display: none;
}
.sub-header {
display: none;
}
@ -457,4 +468,7 @@ textarea {
#panel-tags {
display: none;
}
a[href]:after {
content: none;
}
}