]> source.dussan.org Git - gitea.git/commitdiff
Add hover outline to heatmap squares (#30828) (#30832)
authorGiteabot <teabot@gitea.io>
Thu, 2 May 2024 15:01:07 +0000 (23:01 +0800)
committerGitHub <noreply@github.com>
Thu, 2 May 2024 15:01:07 +0000 (15:01 +0000)
Backport #30828 by @silverwind

Makes it easier to use because you see which square is currently
hovered:

<img width="314" alt="Screenshot 2024-05-02 at 15 38 20"
src="https://github.com/go-gitea/gitea/assets/115237/3a15dad1-2259-4f28-9fae-5cf6ad3d8798">

I did try a `scoped` style for this, but that did not work for some
reason.

Co-authored-by: silverwind <me@silverwind.io>
web_src/css/features/heatmap.css

index 364754751ac02169d9e0aaa4a4e30c8dad035f3e..c064590c4669b654e1c4cfd153b111419cb72ebe 100644 (file)
   padding: 0 5px;
 }
 
+#user-heatmap .vch__day__square:hover {
+  outline: 1.5px solid var(--color-text);
+}
+
 /* move the "? contributions in the last ? months" text from top to bottom */
 #user-heatmap .total-contributions {
   font-size: 11px;