2016-02-08 15:41:00 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
2014-02-03 17:03:05 +01:00
|
|
|
|
2016-01-11 11:41:43 +01:00
|
|
|
#menu [class^="icon-"],
|
|
|
|
#menu [class*=" icon-"] {
|
|
|
|
&:before {
|
|
|
|
width: 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@icon-width: 1.7em; // 1.5em width + 0.2em right margin
|
2015-10-27 13:53:26 +01:00
|
|
|
|
2014-05-26 10:18:47 +02:00
|
|
|
#menu {
|
2015-10-27 13:53:26 +01:00
|
|
|
height: 100%;
|
2014-05-26 10:18:47 +02:00
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2014-02-03 17:03:05 +01:00
|
|
|
#menu a {
|
2015-11-04 14:02:35 +01:00
|
|
|
&:focus {
|
|
|
|
color: @icinga-blue;
|
2016-11-10 15:00:47 +01:00
|
|
|
outline-offset: -3px;
|
2015-11-04 14:02:35 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
&:hover {
|
|
|
|
color: @icinga-blue;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2014-05-09 18:09:03 +02:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu .active > a {
|
2015-09-27 17:41:57 +02:00
|
|
|
color: @icinga-blue;
|
2014-02-03 17:03:05 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu .nav-level-1 > .nav-item {
|
2015-11-12 09:50:18 +01:00
|
|
|
border-left: 5px solid transparent;
|
2015-11-04 14:02:35 +01:00
|
|
|
line-height: 2.167em; // 26 px
|
2014-02-03 17:03:05 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
&.active {
|
2015-11-04 14:02:35 +01:00
|
|
|
> a > .badge {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
.nav-level-2 > li {
|
|
|
|
// Expand menu if active
|
|
|
|
display: block;
|
|
|
|
}
|
2015-09-27 16:34:33 +02:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
background-color: @body-bg-color;
|
2015-11-12 09:50:18 +01:00
|
|
|
border-color: @icinga-blue;
|
2015-10-27 13:53:26 +01:00
|
|
|
}
|
2015-09-27 16:34:33 +02:00
|
|
|
|
2015-10-29 09:27:35 +01:00
|
|
|
&.no-icon > a {
|
2015-10-27 13:53:26 +01:00
|
|
|
margin-left: @icon-width;
|
|
|
|
}
|
2015-11-04 14:02:35 +01:00
|
|
|
|
2015-11-12 10:40:40 +01:00
|
|
|
> a {
|
|
|
|
padding: 0.5em 0.5em; // 6px 6px
|
|
|
|
}
|
|
|
|
|
2015-11-04 14:02:35 +01:00
|
|
|
> a:active ~ .nav-level-2 > li {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-09-27 16:34:33 +02:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu .nav-level-2 > .nav-item {
|
|
|
|
// Collapse menu by default
|
2015-09-27 16:34:33 +02:00
|
|
|
display: none;
|
2015-11-04 14:02:35 +01:00
|
|
|
line-height: 1.833em; // 22px
|
2015-10-27 13:53:26 +01:00
|
|
|
margin-left: @icon-width;
|
2015-09-27 16:34:33 +02:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
> a {
|
2015-11-04 14:02:35 +01:00
|
|
|
font-size: @font-size-small;
|
2015-11-12 10:40:40 +01:00
|
|
|
padding: 0.364em 0.545em; // 4px 6px
|
2015-10-27 13:53:26 +01:00
|
|
|
}
|
2014-02-03 17:03:05 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
.no-js #menu .nav-level-2 > .nav-item {
|
|
|
|
// Expand menu if JavaScript is disabled
|
2014-02-03 17:03:05 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2014-03-25 09:24:50 +01:00
|
|
|
#menu img.icon {
|
2015-10-27 13:53:26 +01:00
|
|
|
line-height: 1;
|
|
|
|
margin: 0 0.2em;
|
2014-02-03 17:03:05 +01:00
|
|
|
width: 1em;
|
2015-09-27 16:34:33 +02:00
|
|
|
}
|
|
|
|
|
2015-11-10 16:52:46 +01:00
|
|
|
#menu .user-nav-item {
|
|
|
|
background-color: @gray-light;
|
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu input.search {
|
2016-01-11 11:41:43 +01:00
|
|
|
background: transparent url('../img/icons/search.png') no-repeat 0.7em center;
|
2015-11-04 14:02:35 +01:00
|
|
|
background-size: 1em auto;
|
2015-10-27 13:53:26 +01:00
|
|
|
border: none;
|
2015-11-12 10:09:57 +01:00
|
|
|
border-left: 5px solid transparent;
|
2015-11-04 14:02:35 +01:00
|
|
|
line-height: 2.167em;
|
2016-01-11 11:41:43 +01:00
|
|
|
padding-left: @icon-width + 0.5em;
|
2015-10-27 13:53:26 +01:00
|
|
|
width: 100%;
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
&.active {
|
|
|
|
background-color: @body-bg-color;
|
2015-11-12 10:09:57 +01:00
|
|
|
border-color: @icinga-blue;
|
2015-10-27 13:53:26 +01:00
|
|
|
}
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
2014-02-25 11:25:23 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
// Badge offset correction
|
2015-09-28 17:58:23 +02:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu > nav > .nav-level-1 > .badge-nav-item > a > .badge {
|
2015-11-11 15:10:51 +01:00
|
|
|
margin-top: 0.2em;
|
2014-03-27 20:39:04 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu .nav-level-2 > .badge-nav-item > a > .badge {
|
2015-11-11 15:10:51 +01:00
|
|
|
margin-top: 0.2em;
|
2014-03-27 20:39:04 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
// Hovered menu
|
2014-03-27 20:39:04 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu .nav-level-1 > .nav-item.hover {
|
|
|
|
position: relative;
|
2014-03-27 20:39:04 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
&:before {
|
|
|
|
border: 0.5em solid rgba(0, 0, 0, 0);
|
|
|
|
border-right-color: @text-color;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 30%;
|
|
|
|
}
|
2014-03-27 20:39:04 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
> .nav-level-2 {
|
|
|
|
background-color: @text-color;
|
|
|
|
color: @text-color-inverted;
|
|
|
|
left: 100%;
|
|
|
|
padding: @vertical-padding 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2015-11-12 09:38:38 +01:00
|
|
|
width: 14em;
|
2014-05-09 18:09:03 +02:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
> .nav-item {
|
|
|
|
display: block;
|
2016-05-24 14:24:16 +02:00
|
|
|
margin-left: 0.5em;
|
2014-03-27 20:39:04 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
> a:hover {
|
|
|
|
color: @text-color-inverted;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-03-27 20:39:04 +01:00
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
> a > .badge {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-03-27 20:39:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#layout.hoveredmenu {
|
|
|
|
#main {
|
2015-10-27 13:53:26 +01:00
|
|
|
z-index: 2;
|
2014-03-27 20:39:04 +01:00
|
|
|
}
|
2015-10-27 13:53:26 +01:00
|
|
|
|
2014-03-27 20:39:04 +01:00
|
|
|
#sidebar {
|
2015-10-27 13:53:26 +01:00
|
|
|
z-index: 3;
|
2014-03-27 20:39:04 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
#menu {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2014-12-30 13:53:46 +01:00
|
|
|
}
|
|
|
|
|
2015-10-27 13:53:26 +01:00
|
|
|
// Accessibility skip links
|
2015-02-12 12:45:06 +01:00
|
|
|
.skip-links {
|
2015-03-13 04:18:31 +01:00
|
|
|
position: relative;
|
2015-02-12 12:45:06 +01:00
|
|
|
ul {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
li {
|
2015-03-13 04:18:31 +01:00
|
|
|
display: block;
|
2015-02-13 15:33:39 +01:00
|
|
|
a, button[type="submit"] {
|
2015-10-27 13:53:26 +01:00
|
|
|
background-color: @body-bg-color;
|
2016-11-16 12:54:38 +01:00
|
|
|
border: none;
|
2015-11-04 14:02:35 +01:00
|
|
|
left: -999px;
|
2015-10-27 13:53:26 +01:00
|
|
|
padding: @vertical-padding @horizontal-padding;
|
2015-03-13 04:18:31 +01:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2016-11-16 12:54:38 +01:00
|
|
|
z-index: 1;
|
2015-02-12 12:45:06 +01:00
|
|
|
&:focus {
|
|
|
|
left: 0;
|
2016-11-16 12:54:38 +01:00
|
|
|
outline-offset: -3px;
|
2015-02-12 12:45:06 +01:00
|
|
|
}
|
|
|
|
}
|
2015-03-13 04:18:31 +01:00
|
|
|
button[type="submit"] {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2015-02-12 12:45:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-16 14:21:08 +01:00
|
|
|
|
|
|
|
#sidebar.expanded {
|
|
|
|
bottom: 0 !important;
|
|
|
|
height: auto !important;
|
|
|
|
}
|
2016-11-16 11:43:21 +01:00
|
|
|
|
|
|
|
.search-control {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-reset {
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
display: none;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-reset:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Override forms.less
|
|
|
|
input[type=text].search-input {
|
|
|
|
padding-right: 1.4em;
|
|
|
|
text-overflow: ellipsis;
|
2016-11-16 14:11:32 +01:00
|
|
|
transition: none;
|
2016-11-16 11:43:21 +01:00
|
|
|
}
|
|
|
|
|
2016-11-16 12:34:55 +01:00
|
|
|
.search-input:-moz-placeholder { // FF 18-
|
|
|
|
color: @gray-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input::-moz-placeholder { // FF 19+
|
|
|
|
color: @gray-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input:-ms-input-placeholder {
|
|
|
|
color: @gray-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input::-webkit-input-placeholder {
|
|
|
|
color: @gray-light;
|
|
|
|
}
|
|
|
|
|
2016-11-16 11:43:21 +01:00
|
|
|
.search-input:valid ~ .search-reset {
|
|
|
|
animation-duration: .4s;
|
|
|
|
animation-name: search-reset-in;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2016-11-16 13:28:46 +01:00
|
|
|
.search-input:invalid,
|
|
|
|
.search-input:-moz-submit-invalid,
|
|
|
|
.search-input:-moz-ui-invalid {
|
|
|
|
// Disable glow
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2016-11-16 11:43:21 +01:00
|
|
|
@keyframes search-reset-in {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translate3d(-20%, 0, 0);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|