mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
Fixed Plugin output and box-border
This commit is contained in:
parent
71cbf83766
commit
548058650a
@ -19,8 +19,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||||||
);
|
);
|
||||||
} elseif (preg_match('~\\\n~', $output)) {
|
} elseif (preg_match('~\\\n~', $output)) {
|
||||||
// Plaintext
|
// Plaintext
|
||||||
$output = '<pre style="font-family: monospace; font-size: 1em;'
|
$output = '<pre class="pluginoutput">'
|
||||||
. ' width: 100%; overflow: auto; white-space: pre-wrap;">'
|
|
||||||
. preg_replace(
|
. preg_replace(
|
||||||
'~\\\n~', "\n", preg_replace(
|
'~\\\n~', "\n", preg_replace(
|
||||||
'~\\\n\\\n~', "\n",
|
'~\\\n\\\n~', "\n",
|
||||||
@ -33,8 +32,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||||||
)
|
)
|
||||||
) . '</pre>';
|
) . '</pre>';
|
||||||
} else {
|
} else {
|
||||||
$output = '<pre style="font-family: monospace; font-size: 1em;'
|
$output = '<pre class="pluginoutput">'
|
||||||
. ' width: 100%; overflow: auto; white-space: pre-wrap;">'
|
|
||||||
. preg_replace('~\@{6,}~', '@@@@@@',
|
. preg_replace('~\@{6,}~', '@@@@@@',
|
||||||
$this->view->escape($output)
|
$this->view->escape($output)
|
||||||
) . '</pre>';
|
) . '</pre>';
|
||||||
|
@ -14,6 +14,24 @@ table.action.comments td a, table.action.downtimes td a {
|
|||||||
width: 16em;
|
width: 16em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p.pluginoutput {
|
||||||
|
font-size: 0.9em;
|
||||||
|
overflow: auto;
|
||||||
|
width: 100%;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre.pluginoutput {
|
||||||
|
font-family: Courier;
|
||||||
|
background: #eee;
|
||||||
|
font-size: 0.7em;
|
||||||
|
overflow: auto;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
margin: 0em;
|
||||||
|
padding: 1em;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
table.objecthistory td {
|
table.objecthistory td {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
@ -58,6 +76,7 @@ h3.tinystatesummary {
|
|||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
|
margin-right: 1em;
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
color: #666;
|
color: #666;
|
||||||
border: 1px solid #d9d9d9;
|
border: 1px solid #d9d9d9;
|
||||||
|
@ -101,7 +101,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#layout.twocols #main > .container {
|
#layout.twocols #main > .container {
|
||||||
width: 50%;
|
width: 49%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -310,10 +310,12 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#layout.twocols #col2 {
|
#layout.twocols #col2 {
|
||||||
|
border-left: 1px solid #d9d9d9;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#layout.threecols #col3 {
|
#layout.threecols #col3 {
|
||||||
|
border-left: 1px solid #d9d9d9;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ img.icon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
table.avp {
|
table.avp {
|
||||||
|
color: #555;
|
||||||
table-layout: auto;
|
table-layout: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
@ -78,11 +79,11 @@ table.avp a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
table.avp > tbody > tr > th {
|
table.avp > tbody > tr > th {
|
||||||
text-align: right;
|
text-align: left;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 13em;
|
width: 10em;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
line-height: 2em;
|
line-height: 1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.avp > tbody > tr > td {
|
table.avp > tbody > tr > td {
|
||||||
@ -91,11 +92,11 @@ table.avp > tbody > tr > td {
|
|||||||
|
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
padding: 0em 0em 0em 0.5em;
|
padding: 0em 0em 0em 0em;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.avp.newsection, table.avp tr.newsection {
|
table.avp.newsection, table.avp tr.newsection {
|
||||||
border-top: 1px solid #555;
|
border-top: 1px solid #d9d9d9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content table.avp dd, .content table.avp dd {
|
.content table.avp dd, .content table.avp dd {
|
||||||
|
@ -20,11 +20,13 @@ table.colors td {
|
|||||||
|
|
||||||
/* Action table */
|
/* Action table */
|
||||||
table.action {
|
table.action {
|
||||||
|
font-size: 0.9em;
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
border-spacing: 1px;
|
border-spacing: 1px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.action th {
|
table.action th {
|
||||||
@ -57,6 +59,7 @@ table.action td .pluginoutput {
|
|||||||
table.action td a {
|
table.action td a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.action td a:hover {
|
table.action td a:hover {
|
||||||
@ -131,7 +134,7 @@ tr.state.handled td.state, tr.state.ok td.state, tr.state.up td.state, tr.state.
|
|||||||
}
|
}
|
||||||
|
|
||||||
tr[href].active {
|
tr[href].active {
|
||||||
background-color: #ddd;
|
background-color: #eee;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,7 +199,7 @@ tr.state.handled td.state {
|
|||||||
|
|
||||||
tr[href]:hover, tr.state[href]:hover td.state {
|
tr[href]:hover, tr.state[href]:hover td.state {
|
||||||
color: white;
|
color: white;
|
||||||
background-color: #555;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.state.ok[href]:hover, tr.state.up[href]:hover {
|
tr.state.ok[href]:hover, tr.state.up[href]:hover {
|
||||||
@ -279,7 +282,7 @@ a.critical {
|
|||||||
padding: 0.4em;
|
padding: 0.4em;
|
||||||
margin: 0.4em;
|
margin: 0.4em;
|
||||||
|
|
||||||
background: #555;
|
background: #eee;
|
||||||
border-radius: 0.4em;
|
border-radius: 0.4em;
|
||||||
-moz-border-radius: 0.4em;
|
-moz-border-radius: 0.4em;
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
ul.tabs {
|
ul.tabs {
|
||||||
margin-left: 0em;
|
|
||||||
padding: 1em 0 0 0;
|
padding: 1em 0 0 0;
|
||||||
list-style-type: inside;
|
list-style-type: inside;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls ul.tabs {
|
.controls ul.tabs {
|
||||||
|
margin-left: 0em;
|
||||||
margin-top: -3.6em;
|
margin-top: -3.6em;
|
||||||
height: 2.6em;
|
height: 2.6em;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -108,7 +108,7 @@ ul.tabs ul.dropdown-menu {
|
|||||||
|
|
||||||
ul.tabs ul.dropdown-menu li a {
|
ul.tabs ul.dropdown-menu li a {
|
||||||
color: #555;
|
color: #555;
|
||||||
margin: 1em;
|
margin: 0em;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.tabs ul.dropdown-menu li a:focus {
|
ul.tabs ul.dropdown-menu li a:focus {
|
||||||
|
@ -196,7 +196,6 @@ ul.tree li a.error:hover {
|
|||||||
margin-right: 0.6em;
|
margin-right: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
li li .badge-container {
|
li li .badge-container {
|
||||||
/*
|
/*
|
||||||
fix margin for smaller font-size of list elements
|
fix margin for smaller font-size of list elements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user