Skip to content

Commit

Permalink
Add hover outline to heatmap squares (go-gitea#30828)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silverwind authored and GiteaBot committed May 2, 2024
1 parent c34a03d commit ace33e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_src/css/features/heatmap.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
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;
Expand Down

0 comments on commit ace33e0

Please sign in to comment.