Files
grafana/public/sass/components/_tabs.scss

61 lines
959 B
SCSS
Raw Normal View History

2016-02-23 13:20:59 +01:00
.gf-tabs {
@include clearfix();
float: left;
2017-11-30 11:31:38 +01:00
position: relative;
top: 1px;
2016-02-23 13:20:59 +01:00
}
.gf-tabs-item {
float: left;
list-style: none;
}
.gf-tabs-link {
2017-11-30 08:18:23 +01:00
padding: $tabs-padding;
2016-02-23 13:20:59 +01:00
margin-right: $spacer/2;
2016-02-23 14:05:12 +01:00
position: relative;
display: block;
2017-11-30 08:18:23 +01:00
border: solid transparent;
border-width: 0 1px 1px;
2017-11-30 08:18:23 +01:00
border-radius: 3px 3px 0 0;
2017-12-10 12:21:04 +01:00
color: $text-color;
2016-02-23 14:05:12 +01:00
2017-11-30 08:18:23 +01:00
i {
2017-11-30 11:31:38 +01:00
margin-right: 5px;
2017-11-30 08:18:23 +01:00
}
2016-02-15 15:27:41 +01:00
2017-12-10 12:21:04 +01:00
.gicon {
position: relative;
top: -2px;
}
2016-02-23 13:20:59 +01:00
&:hover,
&:focus {
color: $link-hover-color;
2016-02-23 13:20:59 +01:00
}
&.active,
&.active:hover,
&.active:focus {
border-color: $orange $tab-border-color transparent;
2017-11-30 08:18:23 +01:00
background: $page-bg;
2016-02-23 13:20:59 +01: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 13:20:59 +01:00
}
2018-11-09 15:49:55 +01:00
&.active--panel {
background: $panel-bg !important;
}
2016-02-23 13:20:59 +01:00
}