mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Merge pull request #4958 from Icinga/fix/browser-print-dialog-result-4957
Fix browser print dialog result (cherry picked from commit 0096f43e0d5f06b503aeb2f93927effa22049fcb)
This commit is contained in:
parent
d983852f82
commit
45c91dfff6
@ -23,7 +23,7 @@ use ReflectionProperty;
|
||||
class Visitor extends Less_VisitorReplacing
|
||||
{
|
||||
const LIGHT_MODE_CSS = <<<'CSS'
|
||||
@media (min-height: @prefer-light-color-scheme),
|
||||
@media (min-height: @prefer-light-color-scheme), print,
|
||||
(prefers-color-scheme: light) and (min-height: @enable-color-preference) {
|
||||
%s
|
||||
}
|
||||
|
@ -1,11 +1,35 @@
|
||||
/*! Icinga Web 2 | (c) 2015 Icinga GmbH | GPLv2+ */
|
||||
|
||||
@media print {
|
||||
#sidebar,
|
||||
#migrate-popup, // Icinga DB Web
|
||||
.controls,
|
||||
.footer, // ipl
|
||||
.dontprint, // Compat only, use dont-print instead
|
||||
.dont-print {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#main > .container {
|
||||
overflow: visible !important;
|
||||
|
||||
> .content {
|
||||
overflow: visible !important;
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--body-bg-color: #fff !important;
|
||||
--text-color: #535353 !important;
|
||||
--text-color-light: #7F7F7F !important;
|
||||
--tr-active-color: #fff !important;
|
||||
--tr-hover-color: #fff !important;
|
||||
|
||||
// ipl-web overrides
|
||||
--default-bg: #fff !important;
|
||||
--default-text-color: #535353 !important;
|
||||
--default-text-color-inverted: #fff !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media not print {
|
||||
|
@ -540,7 +540,7 @@ LESS
|
||||
{
|
||||
$this->assertEquals(
|
||||
<<<CSS
|
||||
@media (min-height: 999999px), (prefers-color-scheme: light) and (min-height: 999999px) {
|
||||
@media (min-height: 999999px), print, (prefers-color-scheme: light) and (min-height: 999999px) {
|
||||
:root {
|
||||
--my-color: orange;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user