Skip to content

Commit

Permalink
monitoring/module.less: prepare styles for summary
Browse files Browse the repository at this point in the history
refs #6993
  • Loading branch information
Thomas-Gelf committed Sep 5, 2014
1 parent 5a73f4b commit 6e33061
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions modules/monitoring/public/css/module.less
Expand Up @@ -53,3 +53,80 @@ div.contacts div.contact > img {
div.contacts div.notification-periods {
margin-top: 0.5em;
}

h3.tinystatesummary {
line-height: 2em;
font-size: 1em;
font-weight: bold;
padding-left: 1em;
background-color: #555;
color: white;
border: none;
border-radius: 0.2em;
-moz-border-radius: 0.2em;
-webkit-border-radius: 0.2em;
}

h3.tinystatesummary a {
color: inherit;
text-decoration: none;
padding: 1px 3px;
}

h3.tinystatesummary a:hover {
text-decoration: underline;
}

/* State badges */
span.state {
font-size: 0.8em;
color: white;
font-weight: bold;
padding: 1px 2px;
margin-right: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 2px solid transparent;
}

span.state.active {
border: 2px solid white;
}

span.state span.state {
font-size: 1em;
margin: 0 -3px 0 5px;
}

span.state.ok {
background: @colorOk;
}

span.state.critical {
background: @colorCritical;
}

span.state.handled.critical {
background: @colorCriticalHandled;
}

span.state.warning {
background: @colorWarning;
}

span.state.handled.warning {
background: @colorWarningHandled;
}

span.state.unknown {
background: @colorUnknown;
}

span.state.handled.unknown {
background: @colorUnknownHandled;
}

span.state.pending {
background: @colorPending;
}

0 comments on commit 6e33061

Please sign in to comment.