aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/features
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-07 22:04:40 +0100
committerGitHub <noreply@github.com>2020-11-07 23:04:40 +0200
commit9aa8693e2cdbd4d1f128da0bdaf3af083d5fe679 (patch)
tree90681cbe36913112d4c8260462918e76c3e21627 /web_src/less/features
parente461f0854f451c4bbca15007696278aa6435535c (diff)
downloadgitea-9aa8693e2cdbd4d1f128da0bdaf3af083d5fe679.tar.gz
gitea-9aa8693e2cdbd4d1f128da0bdaf3af083d5fe679.zip
Frontpage and Heatmap CSS tweaks (#13443)
* Frontpage and Heatmap CSS tweaks - Make heatmap use primary color - Defined secondary color shades - Set various blue colors to CSS vars - Misc tweaks * remove a useless variable * remove another useless variable Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'web_src/less/features')
-rw-r--r--web_src/less/features/heatmap.less50
1 files changed, 50 insertions, 0 deletions
diff --git a/web_src/less/features/heatmap.less b/web_src/less/features/heatmap.less
new file mode 100644
index 0000000000..3aa46a500f
--- /dev/null
+++ b/web_src/less/features/heatmap.less
@@ -0,0 +1,50 @@
+#user-heatmap {
+ width: 107%; // Fixes newest contributions not showing
+ text-align: center;
+
+ svg:not(:root) {
+ overflow: inherit;
+ padding: 0 !important;
+ }
+
+ @media (max-width: 1200px) {
+ & {
+ display: none;
+ }
+ }
+
+ .total-contributions {
+ text-align: left;
+ font-weight: 500;
+ margin-top: 0;
+ }
+}
+
+.heatmap-container {
+ position: relative;
+}
+
+.heatmap-container .total-contributions {
+ font-size: 11px;
+ position: absolute;
+ bottom: 0;
+ left: 25px;
+}
+
+@media (max-width: 1200px) {
+ .heatmap-container .total-contributions {
+ left: 21px;
+ }
+}
+
+@media (max-width: 1000px) {
+ .heatmap-container .total-contributions {
+ font-size: 10px;
+ left: 17px;
+ bottom: -2px;
+ }
+}
+
+.heatmap-container text {
+ fill: currentColor !important;
+}