compile-button.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. .detach-compile-button-container {
  11. border-radius: @btn-border-radius-base 0 0 @btn-border-radius-base;
  12. margin-left: 6px;
  13. }
  14. // only apply for legacy editor
  15. .toolbar-pdf-right {
  16. // because 2px border on :active state
  17. .detach-compile-button-container {
  18. margin-right: -3px;
  19. }
  20. }
  21. .btn-striped-animated {
  22. // prettier-ignore
  23. #gradient > .striped(@color: rgba(255, 255, 255, 0.2), @angle: -45deg);
  24. background-size: @stripe-width @stripe-width;
  25. .animation(pdf-toolbar-stripes 2s linear infinite);
  26. }
  27. .detach-compile-button {
  28. height: 28px;
  29. padding-top: 0;
  30. padding-bottom: 0;
  31. &.detach-compile-button-disabled {
  32. &,
  33. &:hover {
  34. color: @white;
  35. background-color: @ol-green;
  36. }
  37. }
  38. }
  39. .detach-compile-button {
  40. border: none;
  41. }
  42. .detach-compile-button-label {
  43. margin-left: @line-height-computed / 4;
  44. }
  45. @keyframes compile-button-flash {
  46. from,
  47. to {
  48. background: rgba(0, 0, 0, 0);
  49. }
  50. 25%,
  51. 75% {
  52. background: rgba(0, 0, 0, 0.2);
  53. }
  54. }
  55. @keyframes compile-button-bounce {
  56. from,
  57. 50%,
  58. to {
  59. transform: translateY(0);
  60. }
  61. 25%,
  62. 75% {
  63. transform: translateY(2px);
  64. }
  65. }
  66. .detach-compile-button-animate {
  67. animation-duration: 1.2s;
  68. animation-fill-mode: both;
  69. animation-timing-function: ease-in-out;
  70. animation-name: compile-button-flash;
  71. }
  72. .detach-compile-button-animate .caret {
  73. animation-duration: 0.6s;
  74. animation-delay: 0.4s;
  75. animation-fill-mode: both;
  76. animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  77. animation-name: compile-button-bounce;
  78. }