icingaweb2/public/css/icinga/tabs.less

102 lines
1.9 KiB
Plaintext
Raw Normal View History

/*! Icinga Web 2 | (c) 2013-2015 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
2016-01-11 15:52:56 +01:00
.tabs {
letter-spacing: -0.417em;
}
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
}
2016-01-11 15:52:56 +01:00
&:last-child {
margin-right: 0;
}
}
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;
min-width: 14em;
2014-02-18 19:39:54 +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;
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;
position: relative;
}
.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;
}