improve: remove CPU-taxing Execute button animation (#4204)

This commit is contained in:
kyle
2018-02-07 21:07:10 -08:00
committed by GitHub
parent f2a8ed07e0
commit 1f44231df9

View File

@@ -64,35 +64,12 @@
&.execute &.execute
{ {
animation: swagger-ui-pulse 2s infinite;
will-change: transform;
background-color: $btn-execute-background-color; background-color: $btn-execute-background-color;
color: $btn-execute-font-color; color: $btn-execute-font-color;
border-color: $btn-execute-border-color; border-color: $btn-execute-border-color;
} }
} }
@keyframes swagger-ui-pulse
{
0%
{
color: $btn-execute-font-color;
background: $btn-execute-background-color-alt;
box-shadow: 0 0 0 0 rgba($btn-execute-background-color-alt, .8);
}
70%
{
box-shadow: 0 0 0 5px rgba($btn-execute-background-color-alt, 0);
}
100%
{
color: $btn-execute-font-color;
background: $btn-execute-background-color-alt;
box-shadow: 0 0 0 0 rgba($btn-execute-background-color-alt, 0);
}
}
.btn-group .btn-group
{ {
display: flex; display: flex;