Repository navigation
Expand file tree
/
Copy pathportal.tw.css
More file actions
318 lines (283 loc) · 10.5 KB
/
Copy pathportal.tw.css
File metadata and controls
318 lines (283 loc) · 10.5 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
/* Tailwind source for the standalone auth portal.
*
* Compiled to mapcontrol_server/static/portal.css (committed) with:
* npx tailwindcss@3.4.17 -c tailwind.config.js -i portal.tw.css \
* -o mapcontrol_server/static/portal.css --minify
*
* Token system follows shadcn/ui (hsl triplets in CSS variables) mapped to
* the ESIP Federation palette. Dark is the default; light activates via
* prefers-color-scheme. See tailwind.config.js for the color mapping.
*/
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
/* ESIP dark — deep ocean navy, ESIP blue primary, leaf green accent */
--background: 210 45% 7%;
--foreground: 210 25% 92%;
--card: 211 42% 10%;
--card-foreground: 210 25% 92%;
--muted: 211 35% 15%;
--muted-foreground: 212 16% 62%;
--primary: 210 62% 50%;
--primary-foreground: 210 40% 98%;
--accent: 95 45% 52%;
--accent-foreground: 210 45% 7%;
--destructive: 0 55% 45%;
--destructive-foreground: 0 0% 98%;
--border: 211 32% 18%;
--input: 211 32% 20%;
--ring: 210 62% 55%;
color-scheme: dark;
}
@media (prefers-color-scheme: light) {
:root {
--background: 210 30% 98%;
--foreground: 212 40% 12%;
--card: 0 0% 100%;
--card-foreground: 212 40% 12%;
--muted: 210 25% 94%;
--muted-foreground: 212 14% 42%;
--primary: 210 62% 42%;
--primary-foreground: 210 40% 98%;
--accent: 95 48% 38%;
--accent-foreground: 0 0% 100%;
--destructive: 0 62% 46%;
--destructive-foreground: 0 0% 98%;
--border: 211 22% 87%;
--input: 211 22% 84%;
--ring: 210 62% 48%;
color-scheme: light;
}
}
html {
@apply antialiased;
text-rendering: optimizeLegibility;
}
body {
@apply bg-background text-foreground font-sans min-h-screen flex flex-col;
font-size: 15px;
line-height: 1.6;
}
/* Subtle aurora — a restrained radial glow behind everything */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background:
radial-gradient(60rem 40rem at 85% -10%, hsl(210 62% 50% / 0.10), transparent 60%),
radial-gradient(50rem 35rem at -10% 110%, hsl(95 45% 52% / 0.06), transparent 60%);
pointer-events: none;
}
::selection {
background: hsl(var(--primary) / 0.35);
}
}
@layer components {
/* ── Layout ── */
.wrap {
@apply w-full max-w-3xl mx-auto px-6 py-12 flex-1;
}
.topbar {
@apply sticky top-0 z-30 flex items-center justify-between px-6 h-14
border-b border-border/70;
background: hsl(var(--background) / 0.75);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.brand {
@apply flex items-center gap-2.5 no-underline text-foreground;
}
.brand-name {
@apply text-[15px] font-semibold tracking-tight;
}
.brand-sub {
@apply text-[11px] font-medium uppercase tracking-[0.14em] text-muted-foreground;
}
.nav-right { @apply flex items-center gap-4; }
.nav-link {
@apply text-sm text-muted-foreground no-underline transition-colors
hover:text-foreground;
}
.nav-user { @apply text-sm text-foreground flex items-center gap-2; }
.footer {
@apply border-t border-border/70 px-6 py-8 text-center text-[13px]
text-muted-foreground;
}
.footer a { @apply text-primary no-underline hover:underline; }
/* ── Cards ── */
.card {
@apply rounded-xl border border-border bg-card p-6;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 8px 24px -12px rgb(0 0 0 / 0.35);
}
.auth-card {
@apply max-w-sm w-full mx-auto mt-[10vh] p-8 rounded-2xl;
background: hsl(var(--card) / 0.72);
backdrop-filter: blur(20px) saturate(1.3);
-webkit-backdrop-filter: blur(20px) saturate(1.3);
border: 1px solid hsl(var(--border) / 0.9);
box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 64px -24px rgb(0 0 0 / 0.5);
}
/* ── Typography ── */
h1 { @apply text-[26px] font-semibold tracking-tight leading-tight; }
h2 { @apply text-[17px] font-semibold tracking-tight; }
.muted { @apply text-muted-foreground; }
.small { @apply text-[13px]; }
a { @apply text-primary; }
code {
@apply font-mono text-[13px] rounded-md px-1.5 py-0.5 bg-muted
text-foreground break-all;
}
pre {
@apply relative rounded-lg border border-border bg-muted/60 p-4
overflow-x-auto my-3;
}
pre code { @apply bg-transparent p-0 text-[12.5px] leading-relaxed break-normal; }
/* ── Forms ── */
label { @apply block text-sm font-medium mb-1.5 mt-4; }
input {
@apply w-full h-10 rounded-lg border border-input bg-background/60 px-3
text-[15px] text-foreground outline-none transition-all
placeholder:text-muted-foreground;
}
input:focus {
border-color: hsl(var(--ring));
box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25);
}
/* ── Buttons ── */
.btn {
@apply inline-flex items-center justify-center gap-1.5 h-10 px-4
rounded-lg text-sm font-medium cursor-pointer select-none
border border-transparent transition-all duration-150
active:scale-[0.98];
}
.btn-primary {
@apply bg-primary text-primary-foreground hover:brightness-110;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.btn-ghost {
@apply bg-transparent border-border text-foreground hover:bg-muted;
}
.btn-danger {
@apply bg-transparent border-destructive/50 text-destructive
hover:bg-destructive hover:text-destructive-foreground;
}
.btn-sm { @apply h-8 px-3 text-[13px] rounded-md; }
.btn-block { @apply w-full mt-6; }
/* ── Chips / badges ── */
.role-chip, .status-chip {
@apply inline-flex items-center rounded-full px-2 py-0.5 text-[11px]
font-medium uppercase tracking-wide border;
}
.role-admin { @apply border-primary/40 text-primary bg-primary/10; }
.role-approver { @apply border-accent/40 text-accent bg-accent/10; }
.role-user { @apply border-border text-muted-foreground bg-muted/50; }
.status-approved { @apply border-accent/40 text-accent bg-accent/10; }
.status-pending { @apply border-yellow-500/40 text-yellow-500 bg-yellow-500/10; }
.status-disabled { @apply border-destructive/40 text-destructive bg-destructive/10; }
/* ── Flash messages ── */
.flash { @apply rounded-lg border px-3.5 py-2.5 text-sm my-3; }
.flash-error { @apply border-destructive/40 bg-destructive/10 text-destructive; }
.flash-notice { @apply border-accent/40 bg-accent/10 text-accent; }
/* ── Hero / endpoint ── */
.hero { @apply mb-8; }
.hero h1 { @apply text-[30px]; }
.hero .lede { @apply text-muted-foreground mt-3 max-w-xl; }
.endpoint-row {
@apply flex items-center gap-2 mt-5 p-1.5 pl-4 rounded-xl border
border-border bg-card;
}
.endpoint-row code {
@apply flex-1 bg-transparent p-0 text-[13.5px] text-foreground;
}
/* ── How-it-works strip ── */
.steps { @apply grid grid-cols-1 sm:grid-cols-3 gap-3 my-8; }
.step { @apply rounded-xl border border-border bg-card/60 p-4; }
.step-num {
@apply flex items-center justify-center w-7 h-7 rounded-full
bg-primary/15 text-primary text-[13px] font-semibold mb-2.5;
}
.step h3 { @apply text-sm font-semibold mb-1; }
.step p { @apply text-[13px] text-muted-foreground; }
/* ── Tabs (shadcn segmented control) ── */
.tabs { @apply mt-10; }
.tablist {
@apply inline-flex flex-wrap items-center gap-1 rounded-xl border
border-border bg-muted/50 p-1;
}
.tab {
@apply inline-flex items-center gap-2 h-9 px-3.5 rounded-lg text-sm
font-medium text-muted-foreground cursor-pointer select-none
border-0 bg-transparent transition-all duration-150
hover:text-foreground;
}
.tab[aria-selected="true"] {
@apply bg-card text-foreground;
box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}
.tab svg { @apply w-4 h-4 opacity-80; }
.tabpanel { @apply hidden mt-4; }
.tabpanel.active { @apply block; animation: panel-in 0.18s ease; }
/* ── Instruction steps inside panels ── */
.guide { @apply space-y-4 mt-2; }
.guide-step { @apply flex gap-3.5; }
.guide-num {
@apply flex-none flex items-center justify-center w-6 h-6 mt-0.5
rounded-full bg-primary/15 text-primary text-[12px] font-semibold;
}
.guide-body { @apply min-w-0 flex-1 text-[14.5px]; }
.guide-body p { @apply text-muted-foreground mt-0.5 text-[13.5px]; }
.note {
@apply rounded-lg border border-border bg-muted/40 px-4 py-3 text-[13px]
text-muted-foreground mt-5;
}
.note b { @apply text-foreground; }
/* ── Copy buttons ── */
.copy-btn {
@apply absolute top-2 right-2 h-7 px-2.5 rounded-md border border-border
bg-card text-[12px] font-medium text-muted-foreground cursor-pointer
transition-all hover:text-foreground;
}
.copy-btn.copied { @apply border-accent/50 text-accent; }
/* ── Verify panel ── */
.verify-row {
@apply flex items-center gap-3 py-2.5 border-b border-border/60
last:border-0 text-sm;
}
.verify-dot {
@apply flex-none w-5 h-5 rounded-full flex items-center justify-center
text-[11px] font-bold bg-muted text-muted-foreground;
}
.verify-dot.ok { @apply bg-accent/15 text-accent; }
.verify-dot.fail { @apply bg-destructive/15 text-destructive; }
.verify-hint { @apply ml-auto text-[12px] text-muted-foreground; }
/* ── Tool chips ── */
.toolgrid { @apply grid grid-cols-2 sm:grid-cols-3 gap-2 mt-4; }
.tool {
@apply rounded-lg border border-border bg-card/60 px-3 py-2.5
transition-colors hover:border-primary/40;
}
.tool code { @apply bg-transparent p-0 text-[12.5px] text-primary; }
.tool p { @apply text-[12px] text-muted-foreground mt-0.5; }
/* ── Admin table ── */
table.users { @apply w-full border-collapse text-sm; }
table.users th {
@apply text-left text-[12px] font-medium uppercase tracking-wide
text-muted-foreground pb-3 border-b border-border;
}
table.users td { @apply py-3 border-b border-border/60 align-middle; }
table.users tr:last-child td { @apply border-0; }
table.users tr { @apply transition-colors; }
table.users tbody tr:hover td { background: hsl(var(--muted) / 0.3); }
.actions { @apply text-right whitespace-nowrap; }
.actions form.inline { @apply inline-block ml-1.5; }
.consent-actions { @apply flex gap-3 mt-6; }
}
@layer utilities {
@keyframes panel-in {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: none; }
}
}