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