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 {
|
||||
height: 100%;
|
||||
}
|
||||
body {
|
||||
@media screen {
|
||||
body {
|
||||
padding-top: 70px;
|
||||
}
|
||||
}
|
||||
.container {
|
||||
width: auto;
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user