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 {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @menu-bg-color;
|
2016-01-11 15:52:56 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-07-04 11:44:38 +02:00
|
|
|
.tabs a {
|
2016-01-11 15:52:56 +01:00
|
|
|
padding: 0 1em;
|
2020-01-13 16:02:50 +01:00
|
|
|
line-height: 2.5em;
|
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 {
|
2019-08-22 16:48:58 +02:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2014-03-25 09:02:21 +01:00
|
|
|
|
2016-01-11 15:52:56 +01:00
|
|
|
> a {
|
2022-02-08 12:23:37 +01:00
|
|
|
color: @menu-color;
|
2019-08-22 16:48:58 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
2022-02-08 12:23:37 +01:00
|
|
|
background: @tab-hover-bg-color;
|
2019-08-22 16:48:58 +02:00
|
|
|
}
|
2016-01-11 15:52:56 +01:00
|
|
|
}
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2016-01-13 11:26:11 +01:00
|
|
|
&.active > a,
|
|
|
|
> a:focus {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @body-bg-color;
|
|
|
|
color: @text-color;
|
2016-01-11 15:52:56 +01:00
|
|
|
}
|
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 {
|
2022-02-08 12:23:37 +01:00
|
|
|
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);
|
|
|
|
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @body-bg-color;
|
2021-06-23 11:56:56 +02:00
|
|
|
border: 1px solid;
|
2022-02-08 12:23:37 +01:00
|
|
|
border-color: @gray-light;
|
2016-01-11 15:52:56 +01:00
|
|
|
border-top: none;
|
|
|
|
margin-left: -1px;
|
2016-01-13 10:08:04 +01:00
|
|
|
min-width: 14em;
|
2021-10-26 10:40:08 +02:00
|
|
|
z-index: 10;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2016-01-11 16:51:23 +01:00
|
|
|
.tabs > .dropdown-nav-item > ul > li:hover > a {
|
2022-02-08 12:23:37 +01:00
|
|
|
background-color: @gray-lighter;
|
2016-01-11 16:51:23 +01:00
|
|
|
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 {
|
2022-03-02 14:43:28 +01:00
|
|
|
transform: translate(~"calc(-100% + 3em)"); // -full width + tab width
|
|
|
|
margin-left: 1px;
|
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
|
|
|
}
|
2016-02-27 15:09:11 +01:00
|
|
|
|
|
|
|
.tabs > li > .close-container-control {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.twocols .tabs > li > .close-container-control {
|
|
|
|
display: block;
|
|
|
|
}
|