mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
adminbar: Style render timings.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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) + '%',
|
||||
|
||||
Reference in New Issue
Block a user