Skip to content

Commit

Permalink
add hover for bars
Browse files Browse the repository at this point in the history
  • Loading branch information
cookspam committed Jun 24, 2024
1 parent 25256d2 commit a1d4e20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 3 additions & 1 deletion input.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@
display: block;
background: rgba(97, 170, 207, 0.75);
animation: draw 0.5s ease-in-out;
--tooltip-offset: calc(var(--bar-height) / 10); /* Adjust this value if necessary */
}
.chart span:hover {
background: rgba(55, 146, 191, 0.75); /* Change the color on hover */
}
.chart span:before {
position: absolute;
Expand Down
19 changes: 7 additions & 12 deletions public/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ h2:where(.dark, .dark *) {
margin-left: auto;
}

.mr-20 {
margin-right: 5rem;
.mr-12 {
margin-right: 3rem;
}

.mr-4 {
Expand Down Expand Up @@ -886,14 +886,6 @@ h2:where(.dark, .dark *) {
margin-top: auto;
}

.mr-10 {
margin-right: 2.5rem;
}

.mr-12 {
margin-right: 3rem;
}

.block {
display: block;
}
Expand Down Expand Up @@ -2203,8 +2195,11 @@ h2:where(.dark, .dark *) {
display: block;
background: rgba(97, 170, 207, 0.75);
animation: draw 0.5s ease-in-out;
--tooltip-offset: calc(var(--bar-height) / 10);
/* Adjust this value if necessary */
}

.chart span:hover {
background: rgba(55, 146, 191, 0.75);
/* Change the color on hover */
}

.chart span:before {
Expand Down

0 comments on commit a1d4e20

Please sign in to comment.