icingaweb2-module-businessp.../public/css/module.less

251 lines
5.1 KiB
Text
Raw Normal View History

2014-10-30 10:08:49 -04:00
/* Default font settings */
h1 {
font-size: 1em;
}
h1 a {
color: inherit;
2014-10-30 10:08:49 -04:00
float: right;
font-weight: normal;
}
h1 a:focus {
outline: none;
}
2014-10-30 10:08:49 -04:00
div.bp {
font-size: 0.82em;
margin-bottom: 4px;
}
2014-10-30 10:08:49 -04:00
.simulation div.bp {
border-right: 1em solid @colorCriticalHandled;
padding-right: 1em;
background: white;
}
2014-10-30 10:08:49 -04:00
table.bp {
/* Business process table styling starts here */
width: 100%;
margin: 0;
padding: 0;
2014-10-30 10:08:49 -04:00
color: #0a0a0a;
border-collapse: collapse;
border-spacing: 0;
box-sizing: border-box;
font-size: 1em;
2014-10-30 10:08:49 -04:00
font-weight: normal;
2014-10-30 10:08:49 -04:00
/* Reset all paddings and margins, just to be on the safe side */
th, td {
padding: 0;
margin: 0;
}
2014-10-30 10:08:49 -04:00
/* Left outer margin on nested BPs */
table.bp {
2014-10-30 10:08:49 -04:00
width: 99.6%;
margin-left: .4%;
margin-top: 4px;
2014-10-30 10:08:49 -04:00
}
}
2014-10-30 10:08:49 -04:00
/* We try our best to avoid flickering */
table.bp th, table.bp td a {
/* SHIT margin-bottom: 5px; */
}
2014-10-30 10:08:49 -04:00
table.bp th {
font-weight: bold;
}
2014-10-30 10:08:49 -04:00
/* END of font settings */
2014-10-30 10:08:49 -04:00
/* No focus outline on our links, look ugly */
table.bp a:focus {
outline: none;
}
2014-10-30 10:08:49 -04:00
/* No link underlining */
table.bp a, table.bp a:hover {
text-decoration: none;
}
2014-10-30 10:08:49 -04:00
/* White font for all hovered objects */
table.bp.hovered {
color: white;
}
2014-10-30 10:08:49 -04:00
table.bp.handled.hovered {
color: #0a0a0a;
}
2014-10-30 10:08:49 -04:00
table.bp a {
color: inherit;
}
2014-10-30 10:08:49 -04:00
/* Show a pointer when hovering th, highlighting is JS-triggered */
table.bp tr th {
cursor: pointer;
}
2014-10-30 10:08:49 -04:00
/* Expand / collapse styling */
table.bp.process {
> tbody > tr > th {
background-image: url('../img/bpapp/icon_collapse.png');
background-repeat: no-repeat;
background-position: 0.3em 0.3em;
}
2014-10-30 10:08:49 -04:00
&.collapsed {
> tbody > tr > th {
background-image: url('../img/bpapp/icon_expand.png');
}
table.bp, th span {
display: none;
}
}
}
2014-10-30 10:08:49 -04:00
table.bp th > a, table.bp td > a {
display: block;
text-decoration: none;
}
2014-10-30 10:08:49 -04:00
table.bp span.op {
width: 1.5em;
min-height: 1.5em;
margin-top: 1em;
display: block;
line-height: 2em;
transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
}
2014-10-30 10:08:49 -04:00
table.bp td > a {
line-height: 2em;
padding-left: 0.5em;
display: block;
}
2014-10-30 10:08:49 -04:00
table.bp.node td > a {
padding-left: 2.5em;
background-repeat: no-repeat;
2014-10-30 10:08:49 -04:00
background-position: 0.5em 0.5em;
}
2014-10-30 10:08:49 -04:00
table.bp .icon {
float: left;
margin-top: 0.4em;
margin-right: 0.4em;
}
2014-10-30 10:08:49 -04:00
table.bp.node.service td > a {
background-image: url('../img/icons/service.png');
}
2014-10-30 10:08:49 -04:00
table.bp.node.host td > a {
background-image: url('../img/icons/host.png');
}
2014-10-30 10:08:49 -04:00
/* Border defaults */
table.bp {
2014-10-30 10:08:49 -04:00
border-width: 0;
border-style: solid;
border-color: transparent;
}
2014-10-30 10:08:49 -04:00
table.bp tr, table.bp tbody, table.bp th, table.bp td, table.bp.node td > a {
border-width: 0;
border-style: inherit;
border-color: inherit;
}
table.bp th {
2014-10-30 10:08:49 -04:00
border-left-width: 0.5em;
width: 1.5em;
}
2014-10-30 10:08:49 -04:00
table.bp.node td > a {
border-left-width: 0.5em;
}
2014-10-30 10:08:49 -04:00
/* Operator: upper line */
table.bp.operator > tbody > tr:first-child > * {
border-top-width: 1px;
border-top-style: dotted;
}
2014-10-30 10:08:49 -04:00
table.bp.operator.hovered > tbody > tr:first-child > * {
border-top-style: solid;
}
2014-10-30 10:08:49 -04:00
table.bp {
&.ok { border-color: @colorOk; }
&.warning { border-color: @colorWarning; }
&.warning.handled { border-color: @colorWarningHandled; }
&.critical { border-color: @colorCritical; }
&.critical.handled { border-color: @colorCriticalHandled; }
&.unknown { border-color: @colorUnknown; }
&.unknown.handled { border-color: @colorUnknownHandled; }
&.hovered {
&.ok > tbody > tr > {
th, td > a { background-color: @colorOk; }
}
&.warning > tbody > tr > {
th, td > a { background-color: @colorWarning; }
}
&.warning.handled > tbody > tr {
> th, > td > a { background-color: @colorWarningHandled; }
}
&.critical > tbody > tr > {
th, td > a { background-color: @colorCritical; }
}
&.critical.handled > tbody > tr > {
th, td > a { background-color: @colorCriticalHandled; }
}
&.unknown > tbody > tr > {
th, td > a { background-color: @colorUnknown; }
}
&.unknown.handled > tbody > tr > {
th, td > a { background-color: @colorCUnknownHandled; }
}
}
}
table.bp table.bp table.bp table.bp {
font-size: 0.9em;
}
table.bp table.bp table.bp table.bp table.bp {
font-size: 1em;
}
2014-10-30 10:08:49 -04:00
/* Transitions */
table.bp {
2014-10-30 10:08:49 -04:00
// That's ugly, I know
.transition(@val1, @val2) {
transition: @val1, @val2;
-moz-transition: @val1, @val2;
-o-transition: @val1, @val2;
-webkit-transition: @val1, @val2;
}
> tbody > tr > td > a, > tbody > tr > th {
// Fade out
.transition(color 0.5s 0.1s step-start,
background-color 0.5s 0.1s ease-out
);
}
&.hovered > tbody > tr {
> td > a, > th {
// Fade in
.transition(color 0.0s 0.0s step-start,
background-color 0.0s 0.0s ease-out
);
}
}
}