summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorDamien Pollet <damien.pollet@gmail.com>2019-11-06 18:23:06 +0100
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-11-06 18:23:06 +0100
commitd5b1e6bc51f87eb1be07a4682798428bf4bbb9ce (patch)
treeef0a9a2d5a9ac929c6d5ba78c31d6182d8856ae0 /public/less
parentf05cd3e31792859156ac3b77954f9f343bb3620e (diff)
downloadgitea-d5b1e6bc51f87eb1be07a4682798428bf4bbb9ce.tar.gz
gitea-d5b1e6bc51f87eb1be07a4682798428bf4bbb9ce.zip
Theme arc-green: reverse heatmap colors (#8840)
* Theme arc-green: reverse heatmap colors This uses the same colors as the updated palette in the base theme. See #8709 and #5864, in particular [my comment showing the problem](https://github.com/go-gitea/gitea/issues/5864#issuecomment-462334171) * Rebuild CSS * Use link color as hot, interpolate between hot and cold colors * Use color from a:hover
Diffstat (limited to 'public/less')
-rw-r--r--public/less/themes/arc-green.less28
1 files changed, 27 insertions, 1 deletions
diff --git a/public/less/themes/arc-green.less b/public/less/themes/arc-green.less
index 27c32728a2..06e7c78d41 100644
--- a/public/less/themes/arc-green.less
+++ b/public/less/themes/arc-green.less
@@ -1294,8 +1294,34 @@ a.ui.labels .label:hover {
}
}
+.heatmap(@heat) {
+ @heatmap-cold: #2d303b;
+ @heatmap-hot: #a0cc75;
+ background-color: mix(@heatmap-hot, @heatmap-cold, @heat);
+}
+
.heatmap-color-0 {
- background-color: #2d303b;
+ .heatmap(0%);
+}
+
+.heatmap-color-1 {
+ .heatmap(20%);
+}
+
+.heatmap-color-2 {
+ .heatmap(40%);
+}
+
+.heatmap-color-3 {
+ .heatmap(60%);
+}
+
+.heatmap-color-4 {
+ .heatmap(80%);
+}
+
+.heatmap-color-5 {
+ .heatmap(100%);
}
/* code mirror dark theme */