mirror of
https://github.com/itflow-org/itflow
synced 2026-08-26 17:35:16 +00:00
Bump AdminLTE to 4.7.0 to fix print issues
This commit is contained in:
@@ -1178,52 +1178,3 @@ a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-li
|
||||
.modal:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* --- Print ----------------------------------------------------------------
|
||||
AdminLTE 4 ships its own @media print block, and it loads AFTER Bootstrap's
|
||||
utilities. It contains `.app-sidebar { display: block !important }`, which is
|
||||
the same specificity as `.d-print-none { display: none !important }` - so the
|
||||
later rule wins and the sidebar prints no matter what the markup says.
|
||||
AdminLTE 3 had no such rule, which is why printing worked before.
|
||||
|
||||
This sheet loads last, so these take it back. */
|
||||
@media print {
|
||||
|
||||
.app-sidebar,
|
||||
.app-header,
|
||||
.app-footer,
|
||||
.sidebar-overlay {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* with the sidebar column gone there is no grid left to lay out, and the
|
||||
content should have the whole page */
|
||||
.app-wrapper {
|
||||
display: block !important;
|
||||
}
|
||||
.app-main,
|
||||
.app-content {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
width: auto !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
/* v4 also appends every external link's full URL after it in print, which
|
||||
AdminLTE 3 never did - it litters printed invoices, quotes and tickets
|
||||
with parenthesised URLs. */
|
||||
a[href^="http"]::after {
|
||||
content: "" !important;
|
||||
}
|
||||
|
||||
/* And it gives every .btn and .nav-link a black box in print. Four buttons
|
||||
on the invoice and quote pages have no d-print-none ancestor, so they do
|
||||
reach paper - and AdminLTE 3 had no such rule, so this restores what
|
||||
those printouts used to look like. */
|
||||
.btn,
|
||||
.nav-link,
|
||||
.skip-link {
|
||||
border-color: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user