Switch chart button to an icon

This commit is contained in:
Joseph Schorr 2013-12-02 16:44:50 -05:00
parent 32efd9d635
commit 71f196e9c2
2 changed files with 16 additions and 4 deletions

View file

@ -21,6 +21,20 @@ html, body {
border-bottom: 1px dashed #aaa; border-bottom: 1px dashed #aaa;
} }
.toggle-icon {
font-size: 22px;
padding: 6px;
cursor: pointer;
}
i.toggle-icon:hover {
color: steelblue;
}
.toggle-icon.active {
border-radius: 4px;
background: #eee;
}
.entity-reference .prefix { .entity-reference .prefix {
color: #aaa; color: #aaa;

View file

@ -6,10 +6,8 @@
<div class="container header"> <div class="container header">
<b>Usage logs for the last seven days</b> <b>Usage logs for the last seven days</b>
<span class="right"> <span class="right">
<button class="btn btn-default btn-toggle" ng-class="chartVisible ? 'active' : ''" ng-click="toggleChart()"> <i class="fa fa-bar-chart-o toggle-icon" ng-class="chartVisible ? 'active' : ''"
Show Chart ng-click="toggleChart()" title="Toggle Chart" bs-tooltip="tooltip.title"></i>
<i class="fa" ng-class="chartVisible ? 'fa-toggle-down' : 'fa-toggle-right'" style="margin-left: 10px"></i>
</button>
</span> </span>
</div> </div>