2016-02-08 15:41:00 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
2015-09-24 14:21:57 +02:00
|
|
|
|
|
|
|
@border-left-width: 6px;
|
|
|
|
|
2016-02-27 21:57:02 +01:00
|
|
|
// Icon images in list and detail views
|
|
|
|
.host-icon-image,
|
|
|
|
.service-icon-image {
|
|
|
|
max-width: 2em;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// Check source reachable information in the host and service detail views
|
|
|
|
.check-source-meta {
|
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
// Object link and comment author in the comment overview
|
|
|
|
.comment-author {
|
|
|
|
margin-bottom: 0.25em;
|
2019-07-26 17:13:37 +02:00
|
|
|
|
|
|
|
> a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-11-20 15:13:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Comment icons, e.g. persistent in the comment overview
|
|
|
|
.comment-icons {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2021-10-01 16:10:16 +02:00
|
|
|
.caption {
|
|
|
|
height: 3em;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-height: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-03 12:19:52 +01:00
|
|
|
// Type information for backends in the monitoring config
|
|
|
|
.config-label-meta {
|
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// Column for counts, e.g. host group members
|
2015-09-28 17:06:23 +02:00
|
|
|
.count-col {
|
2015-10-28 13:15:42 +01:00
|
|
|
width: 4em;
|
2015-09-28 17:06:23 +02:00
|
|
|
}
|
|
|
|
|
2015-11-12 11:41:14 +01:00
|
|
|
// Custom variables in the host and service detail view
|
|
|
|
.custom-variables > ul {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// Host name and IP addresses in the host and service detail view
|
|
|
|
.host-meta {
|
2022-02-08 12:23:37 +01:00
|
|
|
color: @text-color-light;
|
2015-11-02 11:08:15 +01:00
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Notification recipient in the notifications overview
|
|
|
|
.notification-recipient {
|
2022-02-08 12:23:37 +01:00
|
|
|
color: @text-color-light;
|
2015-11-02 11:08:15 +01:00
|
|
|
float: right;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
2015-11-11 15:23:10 +01:00
|
|
|
|
|
|
|
// Container for plugin output and performance data in overviews
|
|
|
|
.overview-plugin-output-container {
|
|
|
|
.clearfix();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Performance data pies in overviews
|
|
|
|
.overview-performance-data {
|
|
|
|
float: right;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
2016-02-27 18:05:22 +01:00
|
|
|
// Plugin output in detail views
|
|
|
|
.plugin-output,
|
2019-07-26 07:49:48 +02:00
|
|
|
// Plugin output in overviews
|
2016-02-27 18:05:22 +01:00
|
|
|
.overview-plugin-output {
|
|
|
|
-webkit-hyphens: auto;
|
|
|
|
-moz-hyphens: auto;
|
|
|
|
-ms-hyphens: auto;
|
|
|
|
hyphens: auto;
|
|
|
|
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2019-07-26 07:49:48 +02:00
|
|
|
// Plugin output in overviews
|
2015-11-02 11:08:15 +01:00
|
|
|
.overview-plugin-output {
|
2022-02-08 12:23:37 +01:00
|
|
|
color: @text-color-light;
|
2015-11-02 11:08:15 +01:00
|
|
|
font-family: @font-family-fixed;
|
|
|
|
font-size: @font-size-small;
|
2019-07-29 12:24:52 +02:00
|
|
|
margin: 0;
|
2016-02-23 16:06:43 +01:00
|
|
|
white-space: pre-wrap;
|
2016-02-27 18:06:35 +01:00
|
|
|
// Long text in table cells overflows the table's width if the table's layout is not fixed.
|
|
|
|
// Thus overflow-wrap will not have any effect. But w/ the following we set a width of any value
|
|
|
|
// plus a min-width of 100% to consume the full width nonetheless which seems to always
|
|
|
|
// instruct browsers to not overflow the table. Ridiculous.
|
|
|
|
min-width: 100%;
|
|
|
|
width: 1em;
|
2015-11-02 11:08:15 +01:00
|
|
|
}
|
|
|
|
|
2015-11-11 15:22:35 +01:00
|
|
|
// Table for performance data in detail views
|
|
|
|
.performance-data-table {
|
2016-12-05 16:35:23 +01:00
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
position: relative;
|
2015-11-11 15:22:35 +01:00
|
|
|
|
|
|
|
> thead > tr > th {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2015-11-12 09:43:55 +01:00
|
|
|
> thead > tr > th:first-child,
|
2015-11-11 15:22:35 +01:00
|
|
|
> tbody > tr > td:first-child {
|
|
|
|
// Reset base padding
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2016-12-05 16:35:23 +01:00
|
|
|
|
|
|
|
> thead > tr > th,
|
|
|
|
> tbody > tr > td {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2015-11-11 15:22:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Performance data table column for sparkline pie charts in detail views
|
|
|
|
.sparkline-col {
|
|
|
|
width: 2em;
|
|
|
|
}
|
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// Service description if in the service detail view
|
|
|
|
.service-meta {
|
2022-02-08 12:23:37 +01:00
|
|
|
color: @text-color-light;
|
2015-11-02 11:08:15 +01:00
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
// State column for label and duration in overviews
|
2015-09-24 14:21:57 +02:00
|
|
|
.state-col {
|
|
|
|
&.state-ok,
|
2015-09-28 17:03:20 +02:00
|
|
|
&.state-up {
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @color-ok;
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
|
|
|
|
2015-09-28 17:03:20 +02:00
|
|
|
&.state-pending {
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @color-pending;
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.state-critical,
|
|
|
|
&.state-down {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @color-critical;
|
|
|
|
color: @text-color-inverted;
|
2015-09-28 17:03:20 +02:00
|
|
|
|
|
|
|
&.handled {
|
2015-10-28 13:15:42 +01:00
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @color-critical-handled;
|
2015-09-28 17:03:20 +02:00
|
|
|
}
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.state-warning {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @color-warning;
|
|
|
|
color: @text-color-inverted;
|
2015-09-28 17:03:20 +02:00
|
|
|
|
|
|
|
&.handled {
|
2015-10-28 13:15:42 +01:00
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @color-warning-handled;
|
2015-09-28 17:03:20 +02:00
|
|
|
}
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.state-unknown {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @color-unknown;
|
|
|
|
color: @text-color-inverted;
|
2015-09-28 17:03:20 +02:00
|
|
|
|
|
|
|
&.handled {
|
2015-10-28 13:15:42 +01:00
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @color-unknown-handled;
|
2015-09-28 17:03:20 +02:00
|
|
|
}
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&.state-unreachable {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @color-unreachable;
|
|
|
|
color: @text-color-inverted;
|
2015-09-28 17:03:20 +02:00
|
|
|
|
|
|
|
&.handled {
|
2015-10-28 13:15:42 +01:00
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @color-unreachable-handled;
|
2015-09-28 17:03:20 +02:00
|
|
|
}
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
|
|
|
|
2015-11-03 10:41:36 +01:00
|
|
|
// State class for history events
|
|
|
|
&.state-no-state {
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: @border-left-width solid @text-color-light;
|
2015-11-03 10:41:36 +01:00
|
|
|
}
|
|
|
|
|
2015-09-24 14:21:57 +02:00
|
|
|
* {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
text-align: center;
|
2015-10-28 14:14:41 +01:00
|
|
|
width: 8em;
|
2015-09-24 14:21:57 +02:00
|
|
|
}
|
2015-09-29 19:29:43 +02:00
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// Wraps links, icons and meta in overviews
|
2015-10-28 13:15:42 +01:00
|
|
|
.state-header {
|
|
|
|
.clearfix();
|
2019-05-27 11:44:02 +02:00
|
|
|
|
|
|
|
> a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-10-28 13:15:42 +01:00
|
|
|
}
|
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// State icons, e.g. acknowledged in overviews
|
2015-10-28 13:15:42 +01:00
|
|
|
.state-icons {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2015-11-03 10:41:36 +01:00
|
|
|
// State labels in overviews
|
2015-10-28 13:15:42 +01:00
|
|
|
.state-label {
|
|
|
|
font-family: @font-family-wide;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
letter-spacing: 1px;
|
2015-09-29 19:29:43 +02:00
|
|
|
}
|
|
|
|
|
2015-11-02 11:08:15 +01:00
|
|
|
// State duration and state type information in overviews
|
2015-10-28 13:15:42 +01:00
|
|
|
.state-meta {
|
|
|
|
font-size: @font-size-small;
|
2015-09-29 19:29:43 +02:00
|
|
|
}
|
2015-11-04 17:43:30 +01:00
|
|
|
|
|
|
|
.state-table {
|
|
|
|
border-collapse: separate;
|
2015-11-04 17:49:00 +01:00
|
|
|
border-spacing: 0 1px;
|
|
|
|
width: 100%;
|
2015-11-04 17:43:30 +01:00
|
|
|
|
2019-04-24 12:12:00 +02:00
|
|
|
tr[href] {
|
2020-01-13 16:01:50 +01:00
|
|
|
-webkit-transform: translate3d(0,0,0); /* Without this, hovering in Safari is broken in history table rows */
|
|
|
|
-moz-transform: none; /* Firefox collapses border spacing due to the above */
|
2019-04-24 12:12:00 +02:00
|
|
|
}
|
|
|
|
|
2016-02-23 12:18:52 +01:00
|
|
|
tr[href]:hover {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @tr-hover-color;
|
2016-02-23 12:18:52 +01:00
|
|
|
cursor: pointer;
|
2015-11-04 17:43:30 +01:00
|
|
|
}
|
2019-07-12 11:46:34 +02:00
|
|
|
|
2024-07-31 15:23:43 +02:00
|
|
|
tr[href].active {
|
|
|
|
background-color: @tr-active-color;
|
|
|
|
}
|
|
|
|
|
2019-07-12 11:46:34 +02:00
|
|
|
tr[href].state-outdated:not(:hover):not(.active) td:not(.state-col) {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
2015-11-04 17:43:30 +01:00
|
|
|
}
|
2019-07-15 16:38:32 +02:00
|
|
|
|
|
|
|
// Event history
|
|
|
|
.history-message-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
> .history-message-icon {
|
|
|
|
padding: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .history-message-output {
|
|
|
|
flex: 1;
|
2019-07-26 17:24:17 +02:00
|
|
|
|
|
|
|
> a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-07-15 16:38:32 +02:00
|
|
|
}
|
|
|
|
}
|