grafana/public/sass/components/_tabs.scss

61 lines
965 B
SCSS
Raw Normal View History

2016-02-23 06:20:59 -06:00
.gf-tabs {
@include clearfix();
float: left;
2017-11-30 04:31:38 -06:00
position: relative;
top: 1px;
2016-02-23 06:20:59 -06:00
}
.gf-tabs-item {
float: left;
list-style: none;
}
.gf-tabs-link {
2017-11-30 01:18:23 -06:00
padding: $tabs-padding;
2022-01-06 07:09:52 -06:00
margin-right: calc($spacer/2);
2016-02-23 07:05:12 -06:00
position: relative;
display: block;
2017-11-30 01:18:23 -06:00
border: solid transparent;
border-width: 0 1px 1px;
2017-11-30 01:18:23 -06:00
border-radius: 3px 3px 0 0;
2017-12-10 05:21:04 -06:00
color: $text-color;
2016-02-23 07:05:12 -06:00
2017-11-30 01:18:23 -06:00
i {
2017-11-30 04:31:38 -06:00
margin-right: 5px;
2017-11-30 01:18:23 -06:00
}
2016-02-15 08:27:41 -06:00
2017-12-10 05:21:04 -06:00
.gicon {
position: relative;
top: -2px;
}
2016-02-23 06:20:59 -06:00
&:hover,
&:focus {
color: $link-hover-color;
2016-02-23 06:20:59 -06:00
}
&.active,
&.active:hover,
&.active:focus {
border-color: $orange $tab-border-color transparent;
2017-11-30 01:18:23 -06:00
background: $page-bg;
2016-02-23 06:20:59 -06:00
color: $link-color;
overflow: hidden;
&::before {
display: block;
content: ' ';
position: absolute;
left: 0;
right: 0;
height: 2px;
top: 0;
background-image: $brand-gradient-horizontal;
}
2016-02-23 06:20:59 -06:00
}
2018-11-09 08:49:55 -06:00
&.active--panel {
background: $panel-bg !important;
}
2016-02-23 06:20:59 -06:00
}