4
0

ReconnectModal.razor.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. 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;
  33. animation-fill-mode: both;
  34. }
  35. }
  36. #components-reconnect-modal::backdrop {
  37. background-color: rgba(0, 0, 0, 0.4);
  38. animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
  39. opacity: 1;
  40. }
  41. @keyframes components-reconnect-modal-slideUp {
  42. 0% {
  43. transform: translateY(30px) scale(0.95);
  44. }
  45. 100% {
  46. transform: translateY(0);
  47. }
  48. }
  49. @keyframes components-reconnect-modal-fadeInOpacity {
  50. 0% {
  51. opacity: 0;
  52. }
  53. 100% {
  54. opacity: 1;
  55. }
  56. }
  57. @keyframes components-reconnect-modal-fadeOutOpacity {
  58. 0% {
  59. opacity: 1;
  60. }
  61. 100% {
  62. opacity: 0;
  63. }
  64. }
  65. .components-reconnect-container {
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. gap: 1rem;
  70. }
  71. #components-reconnect-modal p {
  72. margin: 0;
  73. text-align: center;
  74. }
  75. #components-reconnect-modal button {
  76. border: 0;
  77. background-color: #6b9ed2;
  78. color: white;
  79. padding: 4px 24px;
  80. border-radius: 4px;
  81. }
  82. #components-reconnect-modal button:hover {
  83. background-color: #3b6ea2;
  84. }
  85. #components-reconnect-modal button:active {
  86. background-color: #6b9ed2;
  87. }
  88. .components-rejoining-animation {
  89. position: relative;
  90. width: 80px;
  91. height: 80px;
  92. }
  93. .components-rejoining-animation div {
  94. position: absolute;
  95. border: 3px solid #0087ff;
  96. opacity: 1;
  97. border-radius: 50%;
  98. animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  99. }
  100. .components-rejoining-animation div:nth-child(2) {
  101. animation-delay: -0.5s;
  102. }
  103. @keyframes components-rejoining-animation {
  104. 0% {
  105. top: 40px;
  106. left: 40px;
  107. width: 0;
  108. height: 0;
  109. opacity: 0;
  110. }
  111. 4.9% {
  112. top: 40px;
  113. left: 40px;
  114. width: 0;
  115. height: 0;
  116. opacity: 0;
  117. }
  118. 5% {
  119. top: 40px;
  120. left: 40px;
  121. width: 0;
  122. height: 0;
  123. opacity: 1;
  124. }
  125. 100% {
  126. top: 0px;
  127. left: 0px;
  128. width: 80px;
  129. height: 80px;
  130. opacity: 0;
  131. }
  132. }