forked from Creditra/Creditra-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOfflineBanner.css
More file actions
55 lines (50 loc) · 1.26 KB
/
Copy pathOfflineBanner.css
File metadata and controls
55 lines (50 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.offline-banner {
position: fixed;
bottom: var(--space-lg);
left: 50%;
transform: translateX(-50%);
background: var(--surface-raised);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: var(--space-md) var(--space-lg);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 50;
display: flex;
align-items: center;
gap: var(--space-md);
color: var(--text);
max-width: calc(100vw - var(--space-xl));
width: max-content;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.offline-banner--restored {
background: var(--success);
color: var(--bg);
border-color: var(--success);
}
.offline-banner__content {
display: flex;
align-items: center;
gap: var(--space-md);
font-size: 0.875rem;
font-weight: 500;
}
.offline-banner__retry-button {
background: transparent;
border: 1px solid var(--accent);
color: var(--accent);
border-radius: var(--radius-sm);
padding: var(--space-xs) var(--space-sm);
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
}
.offline-banner__retry-button:hover {
background: var(--accent);
color: var(--bg);
}
.offline-banner__retry-button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}