Skip to content

Commit

Permalink
Update transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
agatemosu committed Dec 29, 2024
1 parent c85c92b commit 34cbd47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/styles/tier-label.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.tier-label {
position: relative;
transition-duration: 300ms;
transition-property: background-color, color;
transition: background-color 300ms, color 200ms;
border: 1px solid var(--tier-border);
width: 100px;
min-width: 100px;
Expand Down
7 changes: 3 additions & 4 deletions src/styles/tier-tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
top: 50%;
left: 110%;
translate: 0 -50%;
visibility: hidden;
opacity: 0;
transition: opacity 300ms, visibility 0s 300ms;
transition: opacity 300ms;
border-radius: 6px;
background-color: var(--tooltip);
width: 80px;
height: 50px;
pointer-events: none;
}

.tier-tooltip::before {
Expand All @@ -24,7 +24,6 @@
}

.tier-tooltip[data-visibility="visible"] {
visibility: visible;
opacity: 1;
transition: opacity 300ms;
pointer-events: all;
}

0 comments on commit 34cbd47

Please sign in to comment.