mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-30 17:28:03 -05:00
traffic: Generalize max-row highlighter and use on all columns.
This commit is contained in:
@@ -3990,7 +3990,7 @@ ul.tabmenu.formtab {
|
||||
.traffic-table tfoot th,
|
||||
.traffic-table tfoot td { font-style: italic; }
|
||||
|
||||
.traffic-table tr.max { border: 2px solid #FF8B60; }
|
||||
.traffic-table tr.max { border-width: 2px; border-style: solid; }
|
||||
.traffic-table tr.min { border: 2px solid #336699; }
|
||||
.traffic-table tbody tr:nth-child(even) { background-color: #E0E0E0; }
|
||||
.traffic-table tr.mean { font-style: italic; border-top: 1px solid; }
|
||||
|
||||
@@ -77,8 +77,10 @@ r.timeseries = {
|
||||
if (datum > 0)
|
||||
newcol.append(bar)
|
||||
|
||||
if (i === 0 && datum !== 0 && datum === s.maxValue)
|
||||
if (datum !== 0 && datum === s.maxValue) {
|
||||
row.addClass('max')
|
||||
.css('border-color', s.color)
|
||||
}
|
||||
})
|
||||
|
||||
row.append(newcol)
|
||||
|
||||
Reference in New Issue
Block a user