Steven Burrows

Styled the breadcrumbs bar

Change-Id: I1930e95532fed2e1842b59c0bec73e6fa09988b3
...@@ -52,15 +52,35 @@ ...@@ -52,15 +52,35 @@
52 } 52 }
53 53
54 #breadcrumbs { 54 #breadcrumbs {
55 + font-size: 13px;
56 + background: #f5f5f5;
57 + border-bottom: 1px solid #c7c7c0;
55 position: absolute; 58 position: absolute;
56 - padding: 10px 30px; 59 + padding: 10px 20px;
57 - top: 54px; 60 + left: 0;
61 + top: 48px;
58 width: 100%; 62 width: 100%;
59 } 63 }
60 64
61 #breadcrumbs .breadcrumb { 65 #breadcrumbs .breadcrumb {
62 display: inline-block; 66 display: inline-block;
63 - margin-right: 20px; 67 + margin-right: 5px;
68 +}
69 +
70 +#breadcrumbs .breadcrumb a {
71 + cursor: pointer;
72 +}
73 +
74 +#breadcrumbs .breadcrumb:after {
75 + content: '»';
76 + pointer-events: none;
77 + color: #353535;
78 + line-height: 20px;
79 + margin-left: 5px;
80 +}
81 +
82 +#breadcrumbs .breadcrumb:last-child:after {
83 + display: none;
64 } 84 }
65 85
66 #topo2-p-instance.floatpanel { 86 #topo2-p-instance.floatpanel {
......
...@@ -37,3 +37,5 @@ ...@@ -37,3 +37,5 @@
37 notifier="notifyResize()"> 37 notifier="notifyResize()">
38 </svg> 38 </svg>
39 </div> 39 </div>
40 +
41 +<div id="breadcrumbs"></div>
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
32 function init() { 32 function init() {
33 $log.debug("Topo2BreadcrumbService Initiated"); 33 $log.debug("Topo2BreadcrumbService Initiated");
34 breadcrumbs = []; 34 breadcrumbs = [];
35 - breadcrumbContainer = d3.select('#breadcrumbs'); 35 + breadcrumbContainer = d3.select('#breadcrumbs').append('span')
36 + .text('Regions: ');
36 render(); 37 render();
37 } 38 }
38 39
...@@ -69,7 +70,7 @@ ...@@ -69,7 +70,7 @@
69 .append('div') 70 .append('div')
70 .attr('class', 'breadcrumb') 71 .attr('class', 'breadcrumb')
71 .on('click', navigateToRegion) 72 .on('click', navigateToRegion)
72 - .append('text') 73 + .append('a')
73 .text(function (d) { 74 .text(function (d) {
74 return d.name; 75 return d.name;
75 }); 76 });
......
...@@ -238,7 +238,6 @@ ...@@ -238,7 +238,6 @@
238 ng-controller="NavCtrl as navCtrl" 238 ng-controller="NavCtrl as navCtrl"
239 ng-include="'nav.html'"></div> 239 ng-include="'nav.html'"></div>
240 240
241 - <div id="breadcrumbs"></div>
242 <div id="floatpanels"></div> 241 <div id="floatpanels"></div>
243 <div id="alerts"></div> 242 <div id="alerts"></div>
244 <div id="tooltip"></div> 243 <div id="tooltip"></div>
......