icingaweb2/modules/monitoring/public/css/main.less

252 lines
5.3 KiB
Plaintext
Raw Normal View History

2013-10-16 14:48:22 +02:00
/**
* This file is part of Icinga 2 Web.
*
* Icinga 2 Web - Head for multiple monitoring backends.
* Copyright (C) 2013 Icinga Development Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @copyright 2013 Icinga Development Team <info@icinga.org>
* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2
* @author Icinga Development Team <info@icinga.org>
*/
/* =========================================================================
Default elements for module monitoring
========================================================================= */
2013-10-16 15:37:44 +02:00
@colorOk : #00cc33;
@colorUp : #00cc33;
@colorCritical : #ff3300;
@colorDown: #ff3300;
@colorPending: #c0c0c0;
@colorUnknown : #E066FF;
@colorWarning : #FFA500;
@colorUnreachable : #E066FF;
2013-10-16 14:48:22 +02:00
.host-name {
display: block;
margin-top: 5px;
font-weight: bold;
}
.active {
2013-10-16 15:37:44 +02:00
background-color: @lightgrey;
2013-10-16 14:48:22 +02:00
}
.output-text {
font-size: 12px;
line-height: 16px;
display: block;
}
/* ==========================================================================
Forms
========================================================================== */
.panel-row form {
display: inline;
}
/* ==========================================================================
Pagination
========================================================================== */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
2013-10-16 15:37:44 +02:00
background-color: @petrol !important;
2013-10-16 14:48:22 +02:00
border-color: fuchsia !mportant;
}
.pagination-sm > li > a, .pagination-sm > li > span {
font-size: 16px !important;
}
/* ==========================================================================
Status colors
========================================================================== */
.status-up {
2013-10-16 15:37:44 +02:00
background-color: @colorUp;
2013-10-16 14:48:22 +02:00
}
.status-warning {
2013-10-16 15:37:44 +02:00
background-color: @colorWarning;
2013-10-16 14:48:22 +02:00
}
.status-critical {
2013-10-16 15:37:44 +02:00
background-color: @colorCritical;
2013-10-16 14:48:22 +02:00
}
.status-unknown {
2013-10-16 15:37:44 +02:00
background-color: @colorUnknown;
2013-10-16 14:48:22 +02:00
}
.status-pending {
2013-10-16 15:37:44 +02:00
background-color: @colorPending;
2013-10-16 14:48:22 +02:00
}
/** Service status **/
.tacheader-status-pending {
2013-10-16 15:37:44 +02:00
background-color: @colorPending;
2013-10-16 14:48:22 +02:00
}
.tacheader-status-critical {
2013-10-16 15:37:44 +02:00
background-color: @colorCritical;
2013-10-16 14:48:22 +02:00
}
.tacheader-status-ok {
2013-10-16 15:37:44 +02:00
/* No status is displayed */
2013-10-16 14:48:22 +02:00
}
.tacheader-status-warning {
2013-10-16 15:37:44 +02:00
background-color: @colorWarning;
2013-10-16 14:48:22 +02:00
}
.tacheader-status-unknown {
2013-10-16 15:37:44 +02:00
background-color: @colorUnknown;
2013-10-16 14:48:22 +02:00
}
/** Host status **/
.tacheader-status-unreachable {
2013-10-16 15:37:44 +02:00
background-color: @colorUnreachable;
2013-10-16 14:48:22 +02:00
}
.tacheader-status-down {
2013-10-16 15:37:44 +02:00
background-color: @colorDown;
2013-10-16 14:48:22 +02:00
}
.tacheader-status-up {
2013-10-16 15:37:44 +02:00
/* Do not display any status */
2013-10-16 14:48:22 +02:00
}
/* Borders for Detail Headers */
2013-10-16 15:37:44 +02:00
.border-status-mixin (@color) {
border-left: 10px solid @color;
}
2013-10-16 14:48:22 +02:00
.border-status-pending {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorPending);
2013-10-16 14:48:22 +02:00
}
.border-status-critical {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorCritical);
2013-10-16 14:48:22 +02:00
}
.border-status-ok {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorOk);
2013-10-16 14:48:22 +02:00
}
.border-status-warning {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorWarning);
2013-10-16 14:48:22 +02:00
}
.border-status-unknown {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorUnknown);
2013-10-16 14:48:22 +02:00
}
/** Host status **/
.border-status-unreachable {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorUnreachable);
2013-10-16 14:48:22 +02:00
}
.border-status-down {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorDown);
2013-10-16 14:48:22 +02:00
}
.border-status-up {
2013-10-16 15:37:44 +02:00
.border-status-mixin(@colorUp);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar {
margin-right: 15px;
}
.icinga-navbar-reload {
margin-top: 13px;
margin-right: 40px;
margin-left: 15px;
}
.icinga-navbar-search {
background-image: url('../../img/icons/search.png');
background-repeat: no-repeat;
background-position: 5px 50%;
padding-left: 25px !important;
}
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin (@color) {
border-color: @color;
color: @color;
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-critical {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorCritical);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-ok {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorOk);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-warning {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorWarning);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-unknown {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorWarning);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-unreachable {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorUnreachable);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-down {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorDown);
2013-10-16 14:48:22 +02:00
}
.icinga-navbar-pills-up {
2013-10-16 15:37:44 +02:00
.icinga-navbar-pills-mixin(@colorUp);
2013-10-16 14:48:22 +02:00
}
2013-10-16 15:37:44 +02:00
.state-tile (@color) {
border-style: solid;
border-width: 1px;
padding: 3px 5px 3px 5px;
border-radius: 3px;
font-size: 13px;
border-color: @color;
color: @color;
}
.state-tile-up {
.navigation-tile-mixin(@colorUp);
}
.state-tile-unreachable {
.navigation-tile-mixin(@colorUnreachable);
}
.state-tile-down {
.navigation-tile-mixin(@colorDown);
}
.state-tile-pending {
.navigation-tile-mixin(@colorPending);
}