compile-button.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. $stripe-width: 20px;
  2. @keyframes pdf-toolbar-stripes {
  3. from {
  4. background-position: 0 0;
  5. }
  6. to {
  7. background-position: $stripe-width 0;
  8. }
  9. }
  10. .btn-striped-animated {
  11. @include striped;
  12. background-size: $stripe-width $stripe-width;
  13. background-origin: content-box;
  14. @include animation(pdf-toolbar-stripes 2s linear infinite);
  15. }
  16. .detach-compile-button {
  17. &[disabled],
  18. &[disabled]:active {
  19. background-color: var(--bs-btn-bg);
  20. color: var(--bs-btn-color);
  21. opacity: 1;
  22. pointer-events: auto;
  23. cursor: not-allowed;
  24. }
  25. }
  26. @keyframes compile-button-flash {
  27. 0%,
  28. 100% {
  29. background: rgb(0 0 0 / 0%);
  30. }
  31. 25%,
  32. 75% {
  33. background: rgb(0 0 0 / 20%);
  34. }
  35. }
  36. @keyframes compile-button-bounce {
  37. 0%,
  38. 50%,
  39. 100% {
  40. transform: translateY(0);
  41. }
  42. 25%,
  43. 75% {
  44. transform: translateY(2px);
  45. }
  46. }
  47. .detach-compile-button-animate {
  48. animation-duration: 1.2s;
  49. animation-fill-mode: both;
  50. animation-timing-function: ease-in-out;
  51. animation-name: compile-button-flash;
  52. }
  53. .detach-compile-button-animate .material-symbols {
  54. animation-duration: 0.6s;
  55. animation-delay: 0.4s;
  56. animation-fill-mode: both;
  57. animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  58. animation-name: compile-button-bounce;
  59. }