ReconnectModal.razor.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. .components-reconnect-first-attempt-visible,
  2. .components-reconnect-repeated-attempt-visible,
  3. .components-reconnect-failed-visible,
  4. .components-pause-visible,
  5. .components-resume-failed-visible,
  6. .components-rejoining-animation {
  7. display: none;
  8. }
  9. #components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
  10. #components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
  11. #components-reconnect-modal.components-reconnect-paused .components-pause-visible,
  12. #components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
  13. #components-reconnect-modal.components-reconnect-retrying,
  14. #components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
  15. #components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
  16. #components-reconnect-modal.components-reconnect-failed,
  17. #components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
  18. display: block;
  19. }
  20. #components-reconnect-modal {
  21. background-color: white;
  22. width: 20rem;
  23. margin: 20vh auto;
  24. padding: 2rem;
  25. border: 0;
  26. border-radius: 0.5rem;
  27. box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
  28. opacity: 0;
  29. transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
  30. animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
  31. &[open]
  32. {
  33. animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
  34. animation-fill-mode: both;
  35. }
  36. }
  37. #components-reconnect-modal::backdrop {
  38. background-color: rgba(0, 0, 0, 0.4);
  39. animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
  40. opacity: 1;
  41. }
  42. @keyframes components-reconnect-modal-slideUp {
  43. 0% {
  44. transform: translateY(30px) scale(0.95);
  45. }
  46. 100% {
  47. transform: translateY(0);
  48. }
  49. }
  50. @keyframes components-reconnect-modal-fadeInOpacity {
  51. 0% {
  52. opacity: 0;
  53. }
  54. 100% {
  55. opacity: 1;
  56. }
  57. }
  58. @keyframes components-reconnect-modal-fadeOutOpacity {
  59. 0% {
  60. opacity: 1;
  61. }
  62. 100% {
  63. opacity: 0;
  64. }
  65. }
  66. .components-reconnect-container {
  67. display: flex;
  68. flex-direction: column;
  69. align-items: center;
  70. gap: 1rem;
  71. }
  72. #components-reconnect-modal p {
  73. margin: 0;
  74. text-align: center;
  75. }
  76. #components-reconnect-modal button {
  77. border: 0;
  78. background-color: #6b9ed2;
  79. color: white;
  80. padding: 4px 24px;
  81. border-radius: 4px;
  82. }
  83. #components-reconnect-modal button:hover {
  84. background-color: #3b6ea2;
  85. }
  86. #components-reconnect-modal button:active {
  87. background-color: #6b9ed2;
  88. }
  89. .components-rejoining-animation {
  90. position: relative;
  91. width: 80px;
  92. height: 80px;
  93. }
  94. .components-rejoining-animation div {
  95. position: absolute;
  96. border: 3px solid #0087ff;
  97. opacity: 1;
  98. border-radius: 50%;
  99. animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  100. }
  101. .components-rejoining-animation div:nth-child(2) {
  102. animation-delay: -0.5s;
  103. }
  104. @keyframes components-rejoining-animation {
  105. 0% {
  106. top: 40px;
  107. left: 40px;
  108. width: 0;
  109. height: 0;
  110. opacity: 0;
  111. }
  112. 4.9% {
  113. top: 40px;
  114. left: 40px;
  115. width: 0;
  116. height: 0;
  117. opacity: 0;
  118. }
  119. 5% {
  120. top: 40px;
  121. left: 40px;
  122. width: 0;
  123. height: 0;
  124. opacity: 1;
  125. }
  126. 100% {
  127. top: 0px;
  128. left: 0px;
  129. width: 80px;
  130. height: 80px;
  131. opacity: 0;
  132. }
  133. }