compile-button.less 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. background-origin: content-box;
  26. .animation(pdf-toolbar-stripes 2s linear infinite);
  27. }
  28. .detach-compile-button {
  29. height: 28px;
  30. padding-top: 0;
  31. padding-bottom: 0;
  32. &.detach-compile-button-disabled {
  33. &,
  34. &:hover {
  35. color: @white;
  36. background-color: @ol-green;
  37. }
  38. }
  39. }
  40. .detach-compile-button {
  41. border: none;
  42. }
  43. .detach-compile-button-label {
  44. margin-left: @line-height-computed / 4;
  45. }
  46. @keyframes compile-button-flash {
  47. from,
  48. to {
  49. background: rgba(0, 0, 0, 0);
  50. }
  51. 25%,
  52. 75% {
  53. background: rgba(0, 0, 0, 0.2);
  54. }
  55. }
  56. @keyframes compile-button-bounce {
  57. from,
  58. 50%,
  59. to {
  60. transform: translateY(0);
  61. }
  62. 25%,
  63. 75% {
  64. transform: translateY(2px);
  65. }
  66. }
  67. .detach-compile-button-animate {
  68. animation-duration: 1.2s;
  69. animation-fill-mode: both;
  70. animation-timing-function: ease-in-out;
  71. animation-name: compile-button-flash;
  72. }
  73. .detach-compile-button-animate .caret {
  74. animation-duration: 0.6s;
  75. animation-delay: 0.4s;
  76. animation-fill-mode: both;
  77. animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  78. animation-name: compile-button-bounce;
  79. }