Bump AdminLTE to 4.7.0 to fix print issues

This commit is contained in:
johnnyq
2026-08-18 18:16:49 -04:00
parent 858acbcd30
commit fc5dc82c29
7 changed files with 865 additions and 201 deletions

View File

@@ -8,7 +8,7 @@ header("X-Frame-Options: DENY"); // Legacy
?>
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-lte-print="plain">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

View File

@@ -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;
}
}

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-lte-print="plain">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@@ -11,7 +11,7 @@ header("X-Frame-Options: DENY");
<!DOCTYPE html>
<?php /* data-color-scheme is FullCalendar v7's own switch - its themes ship a
dark palette keyed on [data-color-scheme=dark] that nothing was turning on */ ?>
<html lang="en"<?php if ($user_config_theme_dark) echo ' data-bs-theme="dark" data-color-scheme="dark"'; ?>>
<html lang="en"<?php if ($user_config_theme_dark) echo ' data-bs-theme="dark" data-color-scheme="dark"'; ?> data-lte-print="plain">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/*!
* AdminLTE v4.5.0 (https://adminlte.io)
* AdminLTE v4.7.0 (https://adminlte.io)
* Copyright 2014-2026 Colorlib <https://colorlib.com>
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
*/