Skip to content

Commit

Permalink
refactor(styles): animation speed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwoodland committed Jul 1, 2022
1 parent 50e3c7c commit 42323c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions assets/styles/framework/animations.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Animations
@animation-speed: 0.05s;
@animation-speed-micro: 0.05s;
@animation-speed-slow: 0.25s;
@animation-speed-long: 0.25s;
@transition-all: all @animation-speed ease; // DEPRICATED don't use this

.fade-enter-active,
Expand Down
4 changes: 2 additions & 2 deletions components/interactables/Switch/Switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
height: 1.6rem;
width: calc(1.6rem * 2);
border-radius: 1.6rem;
transition: all @animation-speed-micro ease-in-out;
transition: all @animation-speed ease-in-out;
cursor: pointer;
border: 0.125rem solid @flair-color;
box-shadow: inset 0px 0px 2px 0px rgba(0, 0, 0, 0.33);
Expand All @@ -38,7 +38,7 @@
height: calc(1.6rem - (2 * 0.125rem) - 0.125rem);
width: calc(1.6rem - (2 * 0.125rem) - 0.125rem);
border-radius: calc(1.6rem - (2 * 0.125rem) - 0.125rem);
transition: transform @animation-speed-micro ease-in-out;
transition: transform @animation-speed ease-in-out;
transform: translateY(-50%) translateX(1px);
}

Expand Down
2 changes: 1 addition & 1 deletion components/ui/Modal/Modal.less
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
.modal-enter-active,
.modal-leave-active {
&, .modal-background, .modal-card {
transition: all @animation-speed-slow ease;
transition: all @animation-speed-long ease;
}
}

Expand Down

0 comments on commit 42323c5

Please sign in to comment.