Skip to content

Commit

Permalink
chore(button): move disabled and keyframes to the bottom of the file …
Browse files Browse the repository at this point in the history
…per CSS conventions
  • Loading branch information
alisonailea committed Nov 21, 2024
1 parent a188205 commit a980bfc
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions packages/calcite-components/src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -373,33 +373,6 @@ button {
}
}

@include disabled();

@keyframes loader-in {
0% {
inline-size: 0;
opacity: 0;
transform: scale(0.5);
}
100% {
inline-size: 1em;
opacity: 1;
transform: scale(1);
}
}
@keyframes loader-out {
0% {
inline-size: 1em;
opacity: 1;
transform: scale(1);
}
100% {
inline-size: 0;
opacity: 0;
transform: scale(0.5);
}
}

.calcite-button--loader {
@apply flex;
calcite-loader {
Expand Down Expand Up @@ -581,3 +554,29 @@ button {
}

@include base-component();
@include disabled();

@keyframes loader-in {
0% {
inline-size: 0;
opacity: 0;
transform: scale(0.5);
}
100% {
inline-size: 1em;
opacity: 1;
transform: scale(1);
}
}
@keyframes loader-out {
0% {
inline-size: 1em;
opacity: 1;
transform: scale(1);
}
100% {
inline-size: 0;
opacity: 0;
transform: scale(0.5);
}
}

0 comments on commit a980bfc

Please sign in to comment.