icingaweb2/public/css/icinga/tabs.less

168 lines
3.0 KiB
Plaintext
Raw Normal View History

/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
2014-02-18 19:39:54 +01:00
ul.tabs {
padding: 0;
2014-02-18 19:39:54 +01:00
list-style-type: inside;
}
.controls ul.tabs {
margin-left: -1em;
margin-right: -1em;
margin-top: -3.54em;
height: 2.6em;
overflow: hidden;
}
2014-02-18 19:39:54 +01:00
.impact ul.tabs {
border-bottom-color: white;
}
ul.tabs li {
display: inline-block;
}
ul.tabs li a {
text-decoration: none;
display: block;
padding: 0 1em;
line-height: 2.6em;
white-space: nowrap;
color: #ddd;
outline: 0;
margin-right: 0.5em;
}
ul.tabs > li > a {
2014-11-06 01:29:19 +01:00
color: white;
}
ul.tabs > li > a:focus {
2014-11-06 22:55:17 +01:00
color: @colorTextDefault;
2014-11-06 01:29:19 +01:00
text-shadow: none;
}
ul.tabs > li.active > a:focus {
2014-11-06 01:29:19 +01:00
text-shadow: none;
2014-11-06 22:55:17 +01:00
color: @colorTextDefault;
}
ul.tabs li.dropdown > a{
padding: 0 0.4em;
}
ul.tabs li.active a, ul.tabs li.dropdown:hover a, ul.tabs li.dropdown.hover a {
2014-02-18 19:39:54 +01:00
background-color: white;
2014-11-06 01:29:19 +01:00
color: black;
2014-02-18 19:39:54 +01:00
}
.impact ul.tabs li.active a, .impact ul.tabs li.dropdown:hover, .impact ul.tabs li.dropdown.hover a {
background-color: #ddd;
transition: background-color 2s 1s linear;
-moz-transition: background-color 2s 1s linear;
-o-transition: background-color 2s 1s linear;
-webkit-transition: background-color 2s 1s linear;
2014-02-18 19:39:54 +01:00
}
ul.tabs li a:hover {
text-decoration: underline;
}
ul.dropdown-menu {
2014-03-21 14:30:24 +01:00
margin: 0;
padding: 0;
2014-11-06 01:29:19 +01:00
background-color: #eee;
2014-02-18 19:39:54 +01:00
position: absolute;
overflow: hidden;
z-index: 1000;
2014-11-06 01:29:19 +01:00
border: 1px solid #d9d9d9;
2014-02-18 19:39:54 +01:00
border-top: none;
2014-03-25 09:02:21 +01:00
margin-left: -1px;
}
/* Dropdown tabs after the fourth title should be right-aligned */
ul.tabs li:nth-child(n+5) ul.dropdown-menu {
width: 13em;
margin-left: -11em;
2014-03-25 09:02:21 +01:00
}
ul.dropdown-menu {
box-shadow: 0.2em 0.2em 0.3em -0.2em #555;
2014-03-25 09:02:21 +01:00
-moz-box-shadow: 0.2em 0.2em 0.3em -0.2em #555;
-webkit-box-shadow: 0.2em 0.2em 0.3em -0.2em #555;
border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
2014-03-25 09:02:21 +01:00
}
ul.dropdown-menu li {
background-color: white;
2014-02-18 19:39:54 +01:00
}
ul.dropdown-menu li {
display: block;
}
ul.tabs ul.dropdown-menu {
display: none;
}
ul.tabs ul.dropdown-menu li a {
2014-11-06 22:55:17 +01:00
color: @colorTextDarkDefault;
2014-11-06 15:49:26 +01:00
margin: 0em;
}
ul.tabs ul.dropdown-menu li a:focus {
color: #333;
}
ul.tabs ul.dropdown-menu li a:hover, ul.tabs ul.dropdown-menu li a:focus {
background-color: #ccc;
color: #333;
2014-02-18 19:39:54 +01:00
}
ul.tabs li.dropdown:hover a {
text-decoration: none;
2014-11-06 22:55:17 +01:00
color: @colorTextDarkDefault;
2014-02-18 19:39:54 +01:00
}
2014-03-25 09:02:21 +01:00
li.dropdown:hover ul.dropdown-menu, li.dropdown.hover ul.dropdown-menu {
2014-02-18 19:39:54 +01:00
display: block;
}
2014-03-25 09:02:21 +01:00
ul.tabs img.icon {
margin-right: 4px;
margin-top: -4px;
}
a.close-tab {
display: none;
2014-11-06 00:09:14 +01:00
}
2015-02-25 12:11:58 +01:00
.spinner > i {
line-height: 1;
}
.spinner.active > i {
.animate(spin 2s infinite linear);
2015-02-25 12:11:58 +01:00
&:before {
// icon-spin6
2015-02-25 12:11:58 +01:00
content: '\e874';
}
}
span.display-on-hover {
font-size: 0.8em;
left: -9000px;
position: relative;
display: inline;
width: 0;
overflow: hidden;
color: #000000;
text-decoration: none;
}
:hover > span.display-on-hover, :focus > span.display-on-hover {
left:1em; width:12em;
text-align: center
}