adminbar: Style render timings.

This commit is contained in:
Max Goodman
2013-03-12 14:28:11 -07:00
parent 99046f992c
commit 1fa58d5a7c
2 changed files with 11 additions and 1 deletions

View File

@@ -276,7 +276,7 @@
.event-color(@color) {
background: @color;
border-color: darken(saturate(@color, 30%), 20%);
border-color: darken(saturate(@color, 30%), 23%);
box-shadow: 0 -2px 0px darken(@color, 4%) inset;
}
@@ -342,6 +342,15 @@
.event-color(rgb(50, 150, 20));
}
.event.render {
&.nocache {
.event-color(rgb(240, 200, 17));
}
&.cached {
.event-color(rgb(200, 170, 50));
}
}
.event.cassandra {
.event-color(rgb(150, 50, 20));
}

View File

@@ -144,6 +144,7 @@ r.adminbar.TimingBarGraph = Backbone.View.extend({
eventsEl.append($('<li class="event">')
.addClass(keyParts[0])
.addClass(keyParts[1])
.addClass(keyParts[2])
.attr('title', key + ': ' + eventDuration + 's')
.css({
left: pos(timing.get('start') - startBound) + '%',