Skip to content

Commit

Permalink
show the +1 over the tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenist committed Jun 27, 2024
1 parent 0eab80b commit 3b25ebd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .ladle/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,32 @@ body {

.plus-one {
position: absolute;
z-index: 2147483648;
bottom: 100%;
animation: plus-one 1s forwards;
font-weight: bold;
font-size: 12px;
color: rgba(10, 60, 90, 0.9);
background-color: rgba(255, 255, 255, 0.2);
font-size: 15px;
color: #276ef1da;
border-radius: 4px;
}

[data-theme="dark"] .plus-one {
color: rgba(117, 194, 242, 0.9);
background-color: rgba(0, 0, 0, 0.2);
color: #72a4ffda;
}

@keyframes plus-one {
0% {
opacity: 0;
transform: translateY(100%) scale(0.5);
transform: translateY(100%) scale(0.2);
}
25% {
opacity: 1;
transform: translateY(-50%) scale(1);
}
50% {
opacity: 1;
}
100% {
opacity: 0;
transform: translateY(0);
transform: translateY(0%) scale(1);
}
}

0 comments on commit 3b25ebd

Please sign in to comment.