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

52 lines
858 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;
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
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: linear-gradient(to right, #ffd500 0%, #ff4400 99%, #ff4400 100%);
}
2016-02-23 13:20:59 +01:00
}
}
2017-05-08 11:17:29 +02:00