Skip to content
Source
Sign inSign up
samwillis/one-million-boxes
Open History to see the last commit

ConnectionStatus.css

57 lines1.0 KB

1.connection-status {
2 position: fixed;
3 top: 60px;
4 left: 50%;
5 transform: translateX(-50%);
6 z-index: 100;
7 padding: 8px 16px;
8 background: var(--color-text);
9 border-radius: var(--radius-md);
10 color: #fff;
11 font-size: 14px;
12 font-weight: 500;
13 box-shadow: var(--shadow-md);
14 backdrop-filter: blur(8px);
16​
17.connection-status__loading,
18.connection-status__disconnected {
19 display: flex;
20 align-items: center;
21 gap: 8px;
23​
24.connection-status__spinner {
25 width: 14px;
26 height: 14px;
27 border: 2px solid rgba(255, 255, 255, 0.3);
28 border-top-color: #fff;
29 border-radius: 50%;
30 animation: connection-spin 0.8s linear infinite;
32​
33@keyframes connection-spin {
34 to {
35 transform: rotate(360deg);
36 }
38​
39.connection-status__dot {
40 width: 8px;
41 height: 8px;
42 background: #f59e0b;
43 border-radius: 50%;
44 animation: connection-pulse 1.5s ease-in-out infinite;
46​
47@keyframes connection-pulse {
48 0%,
49 100% {
50 opacity: 1;
51 transform: scale(1);
52 }
53 50% {
54 opacity: 0.5;
55 transform: scale(0.8);
56 }