2016-02-08 15:41:00 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
// Styles for tab navigation of containers
|
2014-05-09 18:09:03 +02:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs {
|
|
|
|
letter-spacing: -0.417em;
|
2014-05-09 18:09:03 +02:00
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs > li {
|
|
|
|
display: inline-block;
|
|
|
|
letter-spacing: normal;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs {
|
|
|
|
height: 2.6em;
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
a {
|
|
|
|
padding: 0 1em;
|
|
|
|
line-height: 2.6em;
|
2014-03-25 09:02:21 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
&:focus {
|
|
|
|
outline-offset: -0.5em;
|
|
|
|
}
|
|
|
|
}
|
2014-03-25 09:02:21 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs > li {
|
|
|
|
margin-right: 0.5em;
|
2014-03-25 09:02:21 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
> a {
|
|
|
|
color: @body-bg-color;
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2016-01-13 11:26:11 +01:00
|
|
|
&.active > a,
|
|
|
|
> a:focus {
|
2016-01-11 15:52:56 +01:00
|
|
|
background-color: @body-bg-color;
|
2016-01-13 11:26:11 +01:00
|
|
|
color: @text-color;
|
2016-01-11 15:52:56 +01:00
|
|
|
}
|
2014-02-25 11:30:29 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2014-05-09 18:09:03 +02:00
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs > .dropdown-nav-item > a,
|
|
|
|
.tabs > li > .close-container-control,
|
|
|
|
.tabs > li > .refresh-container-control {
|
|
|
|
text-align: center;
|
|
|
|
width: 3em;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs > .dropdown-nav-item:hover > a,
|
|
|
|
.tabs > .dropdown-nav-item > a:focus,
|
|
|
|
.tabs > li > .close-container-control:focus,
|
|
|
|
.tabs > li > .close-container-control:hover,
|
|
|
|
.tabs > li > .refresh-container-control:focus,
|
|
|
|
.tabs > li > .refresh-container-control:hover {
|
|
|
|
background-color: @body-bg-color;
|
|
|
|
color: @text-color;
|
2014-02-18 19:39:54 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
.tabs > .dropdown-nav-item > ul {
|
|
|
|
.box-shadow();
|
|
|
|
.rounded-corners(0 0 0.3em 0.3em);
|
|
|
|
|
|
|
|
background-color: @body-bg-color;
|
|
|
|
border: 1px solid @gray-light;
|
|
|
|
border-top: none;
|
|
|
|
margin-left: -1px;
|
2016-01-13 10:08:04 +01:00
|
|
|
min-width: 14em;
|
2016-01-28 14:27:11 +01:00
|
|
|
z-index: 1;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 16:51:23 +01:00
|
|
|
.tabs > .dropdown-nav-item > ul > li:hover > a {
|
|
|
|
background-color: @gray-lighter;
|
|
|
|
text-decoration: none;
|
2014-03-25 09:02:21 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
// Dropdown tabs after the fourth title should be right-aligned
|
|
|
|
.tabs > li:nth-child(n+5).dropdown-nav-item > ul {
|
|
|
|
// Offset according to width
|
|
|
|
margin-left: -10.95em;
|
|
|
|
margin-right: 1px;
|
2016-01-13 10:08:04 +01:00
|
|
|
width: 14em;
|
2014-11-06 00:09:14 +01:00
|
|
|
}
|
2015-02-25 12:11:58 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
// TODO(el): Rename display-on-hover and move it to main.less
|
|
|
|
.display-on-hover {
|
|
|
|
font-size: @font-size-small;
|
|
|
|
left: -999em;
|
2015-03-16 17:38:07 +01:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2016-01-11 16:51:23 +01:00
|
|
|
.dropdown-nav-item > ul > li > a:focus > .display-on-hover,
|
|
|
|
.dropdown-nav-item > ul > li:hover > a > .display-on-hover {
|
2016-01-11 15:52:56 +01:00
|
|
|
position: static;
|
2015-03-16 17:38:07 +01:00
|
|
|
}
|