Skip to content

Commit 253c97b

Browse files
GiteaBotsilverwind
andauthored
Add hover outline to heatmap squares (go-gitea#30828) (go-gitea#30832)
Backport go-gitea#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 <[email protected]>
1 parent c34a03d commit 253c97b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web_src/css/features/heatmap.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
padding: 0 5px;
3232
}
3333

34+
#user-heatmap .vch__day__square:hover {
35+
outline: 1.5px solid var(--color-text);
36+
}
37+
3438
/* move the "? contributions in the last ? months" text from top to bottom */
3539
#user-heatmap .total-contributions {
3640
font-size: 11px;

0 commit comments

Comments
 (0)