Commit 8aa73401 by Torkel Ödegaard

ux: new breadcrumb progress

parent 8d6a1cdb
...@@ -15,8 +15,7 @@ export class DataSourcesCtrl { ...@@ -15,8 +15,7 @@ export class DataSourcesCtrl {
private $http, private $http,
private backendSrv, private backendSrv,
private datasourceSrv, private datasourceSrv,
private navModelSrv private navModelSrv) {
) {
this.navModel = this.navModelSrv.getDatasourceNav(0); this.navModel = this.navModelSrv.getDatasourceNav(0);
......
...@@ -101,34 +101,71 @@ ...@@ -101,34 +101,71 @@
margin-bottom: $spacer; margin-bottom: $spacer;
} }
$breadcrumb-hover-hl: #111;
.page-breadcrumb__item { .page-breadcrumb__item {
background: black;
> a { > a {
color: $text-color-weak; color: $text-color-weak;
display: block; display: block;
padding: 0.6rem 3rem 0.6rem 1rem;; padding: 0.6rem 1rem 0.6rem 3rem;;
position: relative;
&::after {
content: '';
position: absolute;
top: -53px;
left: 100%;
content: '';
height: 0;
width: 0;
border: 46px solid transparent;
border-right-width: 0;
border-left-width: 41px;
z-index: 2;
border-left-color: black;
}
} }
&:hover a { &:first-child {
.page-breadcrumb__caret { a {
opacity: 1; padding-left: 1rem;
} }
} }
background: black;
&::after { &::after {
content: ""; content: '';
position: absolute; position: absolute;
top: 0; top: -53px;
left: 100%; left: 100%;
content: ''; content: '';
height: 0; height: 0;
width: 0; width: 0;
border: 24px solid transparent; border: 46px solid transparent;
border-right-width: 0; border-right-width: 0;
border-left-width: 20px; border-left-width: 41px;
z-index: 1;
transform: translateX(4px); transform: translateX(4px);
border-left-color: #ffffff; border-left-color: #282020;
margin: 0;
}
&:hover {
background: $breadcrumb-hover-hl;
.page-breadcrumb__caret {
opacity: 1;
}
> a {
color: $text-color;
&::after {
border-left-color: $breadcrumb-hover-hl;
color: $text-color;
}
}
} }
} }
...@@ -138,7 +175,8 @@ ...@@ -138,7 +175,8 @@
display: block; display: block;
width: 16px; width: 16px;
height: 16px; height: 16px;
right: 20px; right: -9px;
top: 14px; top: 12px;
z-index: 3;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment