You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

animations.css 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. @keyframes isloadingspin {
  2. 0% { transform: translate(-50%, -50%) rotate(0deg); }
  3. 100% { transform: translate(-50%, -50%) rotate(360deg); }
  4. }
  5. .is-loading {
  6. pointer-events: none !important;
  7. position: relative !important;
  8. }
  9. .is-loading > * {
  10. opacity: 0.3;
  11. }
  12. .btn.is-loading > *,
  13. .button.is-loading > * {
  14. opacity: 0;
  15. }
  16. .is-loading::after {
  17. content: "";
  18. position: absolute;
  19. display: block;
  20. left: 50%;
  21. top: 50%;
  22. height: min(4em, 66.6%);
  23. width: fit-content; /* compat: safari - https://bugs.webkit.org/show_bug.cgi?id=267625 */
  24. aspect-ratio: 1;
  25. transform: translate(-50%, -50%);
  26. animation: isloadingspin 1000ms infinite linear;
  27. border-width: 4px;
  28. border-style: solid;
  29. border-color: var(--color-secondary) var(--color-secondary) var(--color-secondary-dark-8) var(--color-secondary-dark-8);
  30. border-radius: var(--border-radius-circle);
  31. }
  32. .is-loading.small-loading-icon::after {
  33. border-width: 2px;
  34. }
  35. /* for single form button, the loading state should be on the button, but not go semi-transparent, just replace the text on the button with the loader. */
  36. form.single-button-form.is-loading > * {
  37. opacity: 1;
  38. }
  39. form.single-button-form.is-loading .button {
  40. color: transparent;
  41. }
  42. .markup pre.is-loading,
  43. .editor-loading.is-loading,
  44. .pdf-content.is-loading {
  45. height: var(--height-loading);
  46. }
  47. .markup .is-loading > * {
  48. visibility: hidden;
  49. }
  50. .markup .is-loading {
  51. color: transparent;
  52. background: transparent;
  53. }
  54. /* TODO: not needed, use "is-loading small-loading-icon" instead */
  55. code.language-math.is-loading::after {
  56. padding: 0;
  57. border-width: 2px;
  58. width: 1.25rem;
  59. height: 1.25rem;
  60. }
  61. @keyframes fadein {
  62. 0% {
  63. opacity: 0;
  64. }
  65. 100% {
  66. opacity: 1;
  67. }
  68. }
  69. @keyframes fadeout {
  70. 0% {
  71. opacity: 1;
  72. }
  73. 100% {
  74. opacity: 0;
  75. }
  76. }
  77. @keyframes pulse {
  78. 0% {
  79. transform: scale(1);
  80. }
  81. 50% {
  82. transform: scale(1.8);
  83. }
  84. 100% {
  85. transform: scale(1);
  86. }
  87. }
  88. .pulse {
  89. animation: pulse 2s linear;
  90. }
  91. .ui.modal,
  92. .ui.dimmer.transition {
  93. animation-name: fadein;
  94. animation-duration: 100ms;
  95. animation-timing-function: ease-in-out;
  96. }