aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components/StopAlert.css
blob: c1d9a0a49e39049fa7cedbe9e697f763c1d08c6b (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* Alert color variables */
:root {
  --alert-info-bg: rgba(59, 130, 246, 0.1);
  --alert-info-border: rgba(59, 130, 246, 0.5);
  --alert-info-text: #1e40af;

  --alert-error-bg: rgba(239, 68, 68, 0.1);
  --alert-error-border: rgba(239, 68, 68, 0.5);
  --alert-error-text: #991b1b;
}

/* Dark mode overrides use data-mode */
[data-mode="dark"] {
  --alert-info-bg: rgba(59, 130, 246, 0.15);
  --alert-info-border: rgba(59, 130, 246, 0.4);
  --alert-info-text: #93c5fd;

  --alert-error-bg: rgba(239, 68, 68, 0.15);
  --alert-error-border: rgba(239, 68, 68, 0.4);
  --alert-error-text: #fca5a5;
}

.stop-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin: 0.75rem 0;
  border: 1px solid;
}

.stop-alert-info {
  background-color: var(--alert-info-bg);
  border-color: var(--alert-info-border);
  color: var(--alert-info-text);
}

.stop-alert-error {
  background-color: var(--alert-error-bg);
  border-color: var(--alert-error-border);
  color: var(--alert-error-text);
}

.stop-alert-compact {
  padding: 0.5rem;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 0.875rem;
}

.stop-alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.stop-alert-compact .stop-alert-icon {
  width: 1rem;
  height: 1rem;
}

.stop-alert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stop-alert-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.stop-alert-compact .stop-alert-title {
  font-size: 0.95rem;
}

.stop-alert-message {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stop-alert-compact .stop-alert-message {
  font-size: 0.85rem;
}