compile-button.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. .detach-compile-button-container when (@is-new-css = false) {
  15. margin-right: -5px;
  16. }
  17. // because 2px border on :active state
  18. .detach-compile-button-container when (@is-new-css = true) {
  19. margin-right: -3px;
  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 when (@is-new-css = false) {
  28. &[disabled],
  29. &[disabled].active,
  30. &[disabled]:hover,
  31. &[disabled]:focus {
  32. background-color: mix(@btn-primary-bg, @toolbar-alt-bg-color, 65%);
  33. .opacity(1);
  34. }
  35. }
  36. .detach-compile-button {
  37. height: 28px;
  38. padding-top: 0;
  39. padding-bottom: 0;
  40. &.detach-compile-button-disabled {
  41. &,
  42. &:hover {
  43. color: @white;
  44. background-color: @ol-green;
  45. }
  46. }
  47. }
  48. .detach-compile-button when (@is-new-css = true) {
  49. border: none;
  50. }
  51. .detach-compile-button-label {
  52. margin-left: @line-height-computed / 4;
  53. }
  54. @keyframes compile-button-flash {
  55. from,
  56. to {
  57. background: rgba(0, 0, 0, 0);
  58. }
  59. 25%,
  60. 75% {
  61. background: rgba(0, 0, 0, 0.2);
  62. }
  63. }
  64. @keyframes compile-button-bounce {
  65. from,
  66. 50%,
  67. to {
  68. transform: translateY(0);
  69. }
  70. 25%,
  71. 75% {
  72. transform: translateY(2px);
  73. }
  74. }
  75. .detach-compile-button-animate {
  76. animation-duration: 1.2s;
  77. animation-fill-mode: both;
  78. animation-timing-function: ease-in-out;
  79. animation-name: compile-button-flash;
  80. }
  81. .detach-compile-button-animate .caret {
  82. animation-duration: 0.6s;
  83. animation-delay: 0.4s;
  84. animation-fill-mode: both;
  85. animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  86. animation-name: compile-button-bounce;
  87. }