mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
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:
parent
68a269b266
commit
7d7368a52f
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user