mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Fix print styles
This commit is contained in:
parent
f83d4488ab
commit
b193ea5d32
@ -41,13 +41,12 @@ $innerLayoutScript = $this->layout()->innerLayout . '.phtml';
|
|||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<link rel="stylesheet" href="<?= $this->href($cssfile) ?>" media="screen" type="text/css" />
|
<link rel="stylesheet" href="<?= $this->href($cssfile) ?>" media="all" type="text/css" />
|
||||||
<!-- Respond.js IE8 support of media queries -->
|
<!-- Respond.js IE8 support of media queries -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="<?= $this->baseUrl('js/vendor/respond.min.js');?>"></script>
|
<script src="<?= $this->baseUrl('js/vendor/respond.min.js');?>"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" />
|
<link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body id="body">
|
<body id="body">
|
||||||
<pre id="responsive-debug"></pre>
|
<pre id="responsive-debug"></pre>
|
||||||
|
@ -4,7 +4,7 @@ use Icinga\Data\Extensible;
|
|||||||
use Icinga\Data\Reducible;
|
use Icinga\Data\Reducible;
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls separated">
|
||||||
<?= $tabs; ?>
|
<?= $tabs; ?>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
|
@ -23,7 +23,7 @@ if ($this->hasPermission('config/authentication/groups/edit') && $backend instan
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls separated">
|
||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<?= $tabs; ?>
|
<?= $tabs; ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
@ -4,7 +4,7 @@ use Icinga\Data\Extensible;
|
|||||||
use Icinga\Data\Reducible;
|
use Icinga\Data\Reducible;
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls separated">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
|
@ -22,7 +22,7 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls separated">
|
||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<?= $tabs; ?>
|
<?= $tabs; ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
@ -53,7 +53,8 @@ class StyleSheet
|
|||||||
'css/icinga/dev.less',
|
'css/icinga/dev.less',
|
||||||
// 'css/icinga/logo.less',
|
// 'css/icinga/logo.less',
|
||||||
'css/icinga/spinner.less',
|
'css/icinga/spinner.less',
|
||||||
'css/icinga/compat.less'
|
'css/icinga/compat.less',
|
||||||
|
'css/icinga/print.less'
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -703,7 +703,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
|
|
||||||
public function renderSearch()
|
public function renderSearch()
|
||||||
{
|
{
|
||||||
$html = ' <form method="post" class="search inline dontprint" action="'
|
$html = ' <form method="post" class="search inline" action="'
|
||||||
. $this->preservedUrl()
|
. $this->preservedUrl()
|
||||||
. '"><input type="text" name="q" style="width: 8em" class="search" value="" placeholder="'
|
. '"><input type="text" name="q" style="width: 8em" class="search" value="" placeholder="'
|
||||||
. t('Search...')
|
. t('Search...')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs; ?>
|
<?= $this->tabs; ?>
|
||||||
<div style="float: right;" class="dontprint">
|
<div style="float: right;" class="dont-print">
|
||||||
<?= $intervalBox; ?>
|
<?= $intervalBox; ?>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->limiter; ?>
|
<?= $this->limiter; ?>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls separated">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
|
@ -7,7 +7,7 @@ if (! $stats instanceof stdClass) {
|
|||||||
$stats = $stats->fetchRow();
|
$stats = $stats->fetchRow();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="hosts-summary">
|
<div class="hosts-summary dont-print">
|
||||||
<span class="hosts-link"><?= $this->qlink(
|
<span class="hosts-link"><?= $this->qlink(
|
||||||
sprintf($this->translatePlural('%u Host', '%u Hosts', $stats->hosts_total), $stats->hosts_total),
|
sprintf($this->translatePlural('%u Host', '%u Hosts', $stats->hosts_total), $stats->hosts_total),
|
||||||
// @TODO(el): Fix that
|
// @TODO(el): Fix that
|
||||||
|
@ -7,7 +7,7 @@ if (! $stats instanceof stdClass) {
|
|||||||
$stats = $stats->fetchRow();
|
$stats = $stats->fetchRow();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="services-summary">
|
<div class="services-summary dont-print">
|
||||||
<span class="services-link"><?= $this->qlink(
|
<span class="services-link"><?= $this->qlink(
|
||||||
sprintf($this->translatePlural(
|
sprintf($this->translatePlural(
|
||||||
'%u Service', '%u Services', $stats->services_total),
|
'%u Service', '%u Services', $stats->services_total),
|
||||||
|
@ -3,7 +3,7 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||||||
use Icinga\Module\Monitoring\Object\Service;
|
use Icinga\Module\Monitoring\Object\Service;
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls separated dont-print">
|
<div class="controls separated">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
|
@ -148,9 +148,3 @@ td, th {
|
|||||||
font-size: @font-size;
|
font-size: @font-size;
|
||||||
line-height: @line-height;
|
line-height: @line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
|
||||||
.dont-print {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
31
public/css/icinga/print.less
Normal file
31
public/css/icinga/print.less
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
// Print styles
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
#fileupload-frame-target,
|
||||||
|
#header,
|
||||||
|
#responsive-debug,
|
||||||
|
#sidebar,
|
||||||
|
.controls > .tabs,
|
||||||
|
.controls .filter,
|
||||||
|
.controls .limiter-control,
|
||||||
|
.controls .pagination-control,
|
||||||
|
.controls .selection-info,
|
||||||
|
.controls .sort-control,
|
||||||
|
.dontprint, // Compat only, use dont-print instead
|
||||||
|
.dont-print {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#layout,
|
||||||
|
#main,
|
||||||
|
.controls {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
float: none !important;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,11 @@
|
|||||||
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
.controls form, .controls .pagination, .controls .widgetLimiter, .controls > .tabs, .dontprint {
|
.controls form,
|
||||||
|
.controls .pagination,
|
||||||
|
.controls .widgetLimiter,
|
||||||
|
.controls > .tabs,
|
||||||
|
.dontprint, // Compat only, use dont-print instead
|
||||||
|
.dont-print {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,4 +98,3 @@ h1 form {
|
|||||||
body {
|
body {
|
||||||
margin: 1cm 1cm 1.5cm 1cm;
|
margin: 1cm 1cm 1.5cm 1cm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user