2016-02-08 15:41:00 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
2015-05-29 14:17:12 +02:00
|
|
|
|
2015-12-15 13:25:15 +01:00
|
|
|
#footer {
|
2016-01-11 11:12:24 +01:00
|
|
|
bottom: 0;
|
2015-12-15 13:25:15 +01:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2016-01-11 11:12:24 +01:00
|
|
|
position: fixed;
|
2015-12-15 13:25:15 +01:00
|
|
|
z-index: 999;
|
|
|
|
}
|
|
|
|
|
2015-12-10 13:02:25 +01:00
|
|
|
#guest-error {
|
|
|
|
background-color: @icinga-blue;
|
|
|
|
height: 100%;
|
2015-12-15 13:25:15 +01:00
|
|
|
overflow: auto;
|
2015-12-10 13:02:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#guest-error #icinga-logo {
|
|
|
|
.fadein();
|
|
|
|
}
|
|
|
|
|
|
|
|
#guest-error-message {
|
|
|
|
.fadein();
|
|
|
|
color: @body-bg-color;
|
|
|
|
font-size: 2em;
|
|
|
|
}
|
|
|
|
|
2016-12-12 16:54:28 +01:00
|
|
|
#header,
|
2016-01-04 11:41:36 +01:00
|
|
|
#login,
|
2019-12-06 10:31:00 +01:00
|
|
|
#content-wrapper {
|
2015-12-10 12:13:40 +01:00
|
|
|
font-size: @font-size;
|
|
|
|
line-height: @line-height;
|
|
|
|
}
|
|
|
|
|
2015-12-10 13:16:55 +01:00
|
|
|
#header-logo-container {
|
2019-12-06 10:31:00 +01:00
|
|
|
background: @icinga-blue;
|
2017-11-21 15:28:19 +01:00
|
|
|
height: 6em;
|
|
|
|
padding: 1.25em;
|
|
|
|
width: 16em;
|
2015-12-10 12:13:40 +01:00
|
|
|
}
|
|
|
|
|
2019-05-06 14:49:41 +02:00
|
|
|
#header-logo,
|
|
|
|
#mobile-menu-logo {
|
2016-06-07 13:00:23 +02:00
|
|
|
background-image: url('../img/icinga-logo.svg');
|
2017-11-21 15:28:19 +01:00
|
|
|
background-position: center center;
|
2015-12-10 12:13:40 +01:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
2017-11-21 15:31:04 +01:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
opacity: .6;
|
2017-11-20 17:53:12 +01:00
|
|
|
outline: none;
|
2017-11-21 15:31:04 +01:00
|
|
|
}
|
2015-12-10 12:13:40 +01:00
|
|
|
}
|
|
|
|
|
2019-05-06 14:49:41 +02:00
|
|
|
#mobile-menu-logo {
|
|
|
|
width: 50%;
|
|
|
|
float: left;
|
|
|
|
height: 2em;
|
|
|
|
margin-top: .25em;
|
|
|
|
background-position: .75em center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mobile-menu-toggle .icon-cancel {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-12-10 13:02:25 +01:00
|
|
|
#icinga-logo {
|
2016-06-07 13:00:23 +02:00
|
|
|
background-image: url('../img/icinga-logo-big.svg');
|
|
|
|
background-position: center bottom;
|
2015-12-10 13:02:25 +01:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain; // Does not work in IE < 10
|
|
|
|
height: 177px;
|
|
|
|
margin-bottom: 2em;
|
|
|
|
width: 100%;
|
2017-11-14 17:24:21 +01:00
|
|
|
|
|
|
|
&.invert {
|
|
|
|
background-image: url('../img/icinga-logo-big-dark.svg');
|
|
|
|
}
|
2015-12-10 13:02:25 +01:00
|
|
|
}
|
|
|
|
|
2015-12-15 13:25:15 +01:00
|
|
|
#layout {
|
|
|
|
background-color: @body-bg-color;
|
|
|
|
color: @text-color;
|
|
|
|
font-family: @font-family;
|
|
|
|
}
|
|
|
|
|
|
|
|
#login {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2016-01-11 11:12:24 +01:00
|
|
|
@gutter: 1em;
|
|
|
|
|
|
|
|
// x-column-layout
|
|
|
|
#main {
|
|
|
|
.clearfix();
|
|
|
|
|
|
|
|
& > .container {
|
2019-07-03 17:44:26 +02:00
|
|
|
width: 0;
|
2019-12-06 16:04:10 +01:00
|
|
|
overflow: auto;
|
2019-07-03 17:44:26 +02:00
|
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-07-03 16:57:46 +02:00
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-01-11 11:12:24 +01:00
|
|
|
|
|
|
|
& > .content {
|
2019-07-03 17:44:26 +02:00
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: auto;
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
& > .controls {
|
2016-02-22 09:26:53 +01:00
|
|
|
> .tabs {
|
|
|
|
// Remove gutter for tabs
|
|
|
|
margin-left: -1 * @gutter;
|
|
|
|
margin-right: -1 * @gutter;
|
2019-08-06 14:11:38 +02:00
|
|
|
height: 2.5em;
|
2016-02-20 15:12:40 +01:00
|
|
|
}
|
2019-08-06 14:53:08 +02:00
|
|
|
|
|
|
|
.tabs:first-child:not(:last-child) {
|
|
|
|
margin-bottom: .5em;
|
|
|
|
}
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-11 11:31:23 +01:00
|
|
|
// Not part of the above to relax specificity and to allow modules adjust this
|
|
|
|
:not(.dashboard) > .container {
|
|
|
|
& > .controls {
|
|
|
|
padding-left: @gutter;
|
|
|
|
padding-right: @gutter;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > .content {
|
|
|
|
padding: @gutter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-09 13:45:26 +01:00
|
|
|
// Mobile menu
|
2017-11-20 17:53:12 +01:00
|
|
|
#layout.minimal-layout #sidebar {
|
|
|
|
background-color: @menu-bg-color;
|
|
|
|
}
|
|
|
|
|
2016-03-09 13:45:26 +01:00
|
|
|
#mobile-menu-toggle {
|
2017-11-20 17:53:12 +01:00
|
|
|
color: @menu-color;
|
2016-03-09 13:45:26 +01:00
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
> button {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
height: 2.5em;
|
|
|
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
-ms-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-25 07:44:48 +01:00
|
|
|
.container,
|
2020-06-03 16:27:40 +02:00
|
|
|
.error-message,
|
|
|
|
.modal-window {
|
2016-01-25 07:44:48 +01:00
|
|
|
// Don't outline containers and error messages when focused because they receive focus for accessibility only
|
|
|
|
// programmatically
|
2016-01-18 11:02:06 +01:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2015-12-15 13:35:26 +01:00
|
|
|
.controls {
|
2016-01-07 17:31:54 +01:00
|
|
|
> .tabs {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-12-15 13:35:26 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 11:12:24 +01:00
|
|
|
// Dashboard grid
|
|
|
|
|
|
|
|
.dashboard {
|
|
|
|
letter-spacing: -0.417em;
|
|
|
|
|
|
|
|
> .container {
|
|
|
|
display: inline-block;
|
|
|
|
letter-spacing: normal;
|
|
|
|
vertical-align: top;
|
|
|
|
// Column width controlled by #layout
|
|
|
|
width: 100%;
|
2016-01-11 13:25:58 +01:00
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
// See reponsive.less for gutters
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-10 12:13:40 +01:00
|
|
|
// Notification styles
|
2015-06-17 13:37:11 +02:00
|
|
|
|
|
|
|
#notifications {
|
2016-01-25 09:01:26 +01:00
|
|
|
// Reset defaults
|
|
|
|
list-style-type: none;
|
2015-06-17 13:37:11 +02:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#notifications > li {
|
2016-01-25 09:01:26 +01:00
|
|
|
background: no-repeat 1em center;
|
|
|
|
border-top: 1px solid @gray-light;
|
|
|
|
color: @body-bg-color;
|
2015-06-17 13:37:11 +02:00
|
|
|
display: block;
|
|
|
|
line-height: 2.5em;
|
|
|
|
padding-left: 3em;
|
|
|
|
|
2016-01-25 09:01:26 +01:00
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2015-06-18 13:29:47 +02:00
|
|
|
|
2016-01-25 09:01:26 +01:00
|
|
|
&.error {
|
|
|
|
background-color: @color-notification-error;
|
|
|
|
background-image: url(../img/icons/error_white.png);
|
|
|
|
}
|
2015-06-17 13:37:11 +02:00
|
|
|
|
2016-01-25 09:01:26 +01:00
|
|
|
&.info {
|
|
|
|
background-color: @color-notification-info;
|
|
|
|
}
|
2015-06-17 13:37:11 +02:00
|
|
|
|
2016-01-25 09:01:26 +01:00
|
|
|
&.success {
|
|
|
|
background-color: @color-notification-success;
|
|
|
|
background-image: url(../img/icons/success.png);
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.warning {
|
|
|
|
background-color: @color-notification-warning;
|
|
|
|
}
|
2015-06-17 13:37:11 +02:00
|
|
|
}
|
2017-11-17 15:16:52 +01:00
|
|
|
|
2017-11-20 17:53:12 +01:00
|
|
|
// Collapsed sidebar
|
2017-11-27 13:52:39 +01:00
|
|
|
#layout:not(.minimal-layout).sidebar-collapsed {
|
2017-11-21 15:28:19 +01:00
|
|
|
#header-logo-container {
|
2019-07-23 11:36:04 +02:00
|
|
|
height: 3em;
|
2017-11-21 15:28:19 +01:00
|
|
|
padding: 0.25em 0.125em;
|
|
|
|
width: 4em;
|
|
|
|
}
|
|
|
|
|
2017-11-17 16:02:59 +01:00
|
|
|
#header-logo {
|
|
|
|
background-image: url('../img/icinga-logo-compact.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar {
|
2019-12-06 10:31:00 +01:00
|
|
|
width: 4em;
|
2017-11-17 16:02:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#open-sidebar {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
#close-sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#menu {
|
2019-06-26 10:34:30 +02:00
|
|
|
.nav-level-1 {
|
|
|
|
> .badge-nav-item > a {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
> .badge {
|
|
|
|
position: absolute;
|
|
|
|
right: .5em;
|
|
|
|
bottom: .25em;
|
|
|
|
font-size: 75%;
|
2019-07-03 11:30:20 +02:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
max-width: 4em;
|
2019-06-26 10:34:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .nav-item.active > a > .badge {
|
|
|
|
display: unset;
|
|
|
|
}
|
2017-11-17 16:02:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
img.icon {
|
|
|
|
margin: 0 1.25em -.25em 0.25em;
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2017-11-22 11:33:38 +01:00
|
|
|
.nav-item.no-icon > a {
|
|
|
|
padding-left: .75em;
|
|
|
|
}
|
|
|
|
|
2017-11-17 16:02:59 +01:00
|
|
|
.nav-level-1 > .nav-item i {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
2017-11-17 17:43:45 +01:00
|
|
|
|
|
|
|
> .search-control {
|
|
|
|
height: 3.333em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-27 13:01:43 +01:00
|
|
|
#search {
|
|
|
|
padding-left: 3.75em;
|
|
|
|
}
|
|
|
|
|
2017-11-17 17:43:45 +01:00
|
|
|
#search:focus {
|
2017-11-20 17:53:12 +01:00
|
|
|
background-color: @menu-bg-color;
|
|
|
|
border-radius: 0 .25em .25em 0;
|
2017-11-17 17:43:45 +01:00
|
|
|
box-shadow: 0 0 .25em 0 rgba(0, 0, 0, .2);
|
2017-11-20 17:53:12 +01:00
|
|
|
color: @menu-color;
|
2017-11-17 17:43:45 +01:00
|
|
|
width: 20em;
|
|
|
|
position: fixed;
|
2017-11-22 11:33:38 +01:00
|
|
|
z-index: 1;
|
2017-11-17 16:02:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-input {
|
|
|
|
font-size: 1.25em;
|
2017-11-22 11:33:38 +01:00
|
|
|
padding-right: .625em;
|
2017-11-17 16:02:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-reset {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.skip-links {
|
|
|
|
a, button {
|
|
|
|
width: 20em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|