Skip to content

Commit ef76f83

Browse files
Merge pull request #828 from bjorn3/color_slight_changes
Give small perf changes a light color
2 parents 6d02c04 + f88ff52 commit ef76f83

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

site/static/compare.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ <h3>Cache states</h3>
115115
let klass = "";
116116
if (pct > 1) {
117117
klass = 'class="positive"';
118+
} else if (pct > 0.1) {
119+
klass = 'class="slightly-positive"';
118120
} else if (pct < -1) {
119121
klass = 'class="negative"';
122+
} else if (pct < -0.1) {
123+
klass = 'class="slightly-negative"';
120124
}
121125
let title = "";
122126
let marker = "";

site/static/perf.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,15 @@ img {
8686
.positive {
8787
color: red;
8888
}
89+
.slightly-positive {
90+
color: #ee9090;
91+
}
8992
.negative {
9093
color: green;
9194
}
95+
.slightly-negative {
96+
color: #90ee90;
97+
}
9298
.neutral {
9399
color: black;
94100
}

0 commit comments

Comments
 (0)