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