-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.css
More file actions
583 lines (513 loc) · 14.5 KB
/
Copy pathinput.css
File metadata and controls
583 lines (513 loc) · 14.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Self-hosted brand fonts: the CSP keeps font-src 'self' data:, so never link
Google Fonts (amarra-cais doctor --mobile checks this). */
@font-face {
font-family: "Geist";
src: url("/static/fonts/geist-variable.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "JetBrains Mono";
src: url("/static/fonts/jetbrains-mono-variable.woff2") format("woff2");
font-weight: 100 800;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Material Symbols Outlined";
src: url("/static/fonts/material-symbols-outlined.woff2") format("woff2");
font-weight: 100 700;
font-style: normal;
font-display: block;
}
@layer base {
/* CloudStore palette as variables: `html.light` (toggled by the header button
through amarra-hook="theme") swaps the whole console. Channels, not hex, so
Tailwind's /opacity modifiers keep working. */
:root {
--cs-surface: 3 20 39;
--cs-surface-dim: 3 20 39;
--cs-surface-bright: 42 58 79;
--cs-surface-container-lowest: 0 15 33;
--cs-surface-container-low: 11 28 48;
--cs-surface-container: 16 32 52;
--cs-surface-container-high: 27 43 63;
--cs-surface-container-highest: 38 54 74;
--cs-surface-variant: 38 54 74;
--cs-on-surface: 211 228 254;
--cs-on-surface-variant: 194 198 214;
--cs-outline: 140 144 159;
--cs-outline-variant: 66 71 84;
--cs-primary: 173 198 255;
--cs-on-primary: 0 46 106;
--cs-primary-container: 77 142 255;
--cs-on-primary-container: 0 40 93;
--cs-primary-fixed: 216 226 255;
--cs-primary-fixed-dim: 173 198 255;
--cs-inverse-primary: 0 90 194;
--cs-secondary: 78 222 163;
--cs-on-secondary: 0 56 36;
--cs-secondary-container: 0 165 114;
--cs-on-secondary-container: 0 49 31;
--cs-secondary-fixed: 111 251 190;
--cs-secondary-fixed-dim: 78 222 163;
--cs-on-secondary-fixed: 0 33 19;
--cs-on-secondary-fixed-variant: 0 82 54;
--cs-tertiary: 255 185 95;
--cs-on-tertiary: 71 42 0;
--cs-tertiary-container: 202 129 0;
--cs-on-tertiary-container: 62 36 0;
--cs-tertiary-fixed: 255 221 184;
--cs-tertiary-fixed-dim: 255 185 95;
--cs-on-tertiary-fixed: 42 23 0;
--cs-on-tertiary-fixed-variant: 101 62 0;
--cs-error: 255 180 171;
--cs-on-error: 105 0 5;
--cs-error-container: 147 0 10;
--cs-on-error-container: 255 218 214;
--cs-background: 3 20 39;
--cs-on-background: 211 228 254;
--cs-inverse-surface: 211 228 254;
--cs-inverse-on-surface: 33 49 69;
--cs-surface-tint: 173 198 255;
}
html.light {
--cs-surface: 246 248 252;
--cs-surface-dim: 233 238 246;
--cs-surface-bright: 255 255 255;
--cs-surface-container-lowest: 255 255 255;
--cs-surface-container-low: 250 251 254;
--cs-surface-container: 240 244 250;
--cs-surface-container-high: 231 237 246;
--cs-surface-container-highest: 221 229 240;
--cs-surface-variant: 221 229 240;
--cs-on-surface: 16 26 40;
--cs-on-surface-variant: 70 83 106;
--cs-outline: 107 120 137;
--cs-outline-variant: 195 203 216;
--cs-primary: 37 99 235;
--cs-on-primary: 255 255 255;
--cs-primary-container: 59 130 246;
--cs-on-primary-container: 255 255 255;
--cs-primary-fixed: 29 78 216;
--cs-primary-fixed-dim: 96 165 250;
--cs-inverse-primary: 173 198 255;
--cs-secondary: 5 150 105;
--cs-on-secondary: 255 255 255;
--cs-secondary-container: 16 185 129;
--cs-on-secondary-container: 255 255 255;
--cs-secondary-fixed: 5 150 105;
--cs-secondary-fixed-dim: 16 185 129;
--cs-on-secondary-fixed: 255 255 255;
--cs-on-secondary-fixed-variant: 6 95 70;
--cs-tertiary: 180 83 9;
--cs-on-tertiary: 255 255 255;
--cs-tertiary-container: 245 158 11;
--cs-on-tertiary-container: 255 255 255;
--cs-tertiary-fixed: 120 53 15;
--cs-tertiary-fixed-dim: 180 83 9;
--cs-on-tertiary-fixed: 255 255 255;
--cs-on-tertiary-fixed-variant: 120 53 15;
--cs-error: 185 28 28;
--cs-on-error: 255 255 255;
--cs-error-container: 254 226 226;
--cs-on-error-container: 127 29 29;
--cs-background: 246 248 252;
--cs-on-background: 16 26 40;
--cs-inverse-surface: 16 26 40;
--cs-inverse-on-surface: 246 248 252;
--cs-surface-tint: 37 99 235;
}
/* Tailwind display utilities beat the `hidden` attribute (equal specificity,
later in the sheet), so the console's panels/bulk bar hide explicitly. */
[hidden] {
display: none !important;
}
/* Theme toggle icon: shows what the next click switches to. */
html.light .cs-theme-icon-light {
display: none;
}
html:not(.light) .cs-theme-icon-dark {
display: none;
}
/* Amarra Drive paints its loading chrome inline with the scaffold copper
(amarra.js); repaint the bar and the spinner with the console palette so
they follow the theme. Inline styles need !important to be overridden. */
#amarra-progress {
background: rgb(var(--cs-primary-container)) !important;
}
#amarra-veil > div {
border-color: rgb(var(--cs-primary-container) / 0.25) !important;
border-top-color: rgb(var(--cs-primary-container)) !important;
}
body {
@apply bg-surface font-sans text-on-surface antialiased;
}
/* Console-session scrollbars: quiet until hovered, 10px hit area. */
* {
scrollbar-width: thin;
scrollbar-color: theme("colors.surface-container-highest") transparent;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: theme("colors.surface-container-highest");
background-clip: content-box;
border: 2px solid transparent;
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background: theme("colors.surface-bright");
background-clip: content-box;
}
}
@layer utilities {
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
}
@layer components {
/* Material Symbols icon font (variable axes: FILL/GRAD via modifiers). */
.material-symbols-outlined {
font-family: "Material Symbols Outlined";
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
font-variation-settings:
"FILL" 0,
"wght" 400,
"GRAD" 0,
"opsz" 24;
font-feature-settings: "liga";
-webkit-font-smoothing: antialiased;
user-select: none;
}
.material-symbols-outlined.msi-fill {
font-variation-settings:
"FILL" 1,
"wght" 400,
"GRAD" 0,
"opsz" 24;
}
/* Progressive native select (#219). Unsupported browsers keep the current
OS picker. Do not add a JS listbox here — Drive/iOS keep a real <select>. */
@supports (appearance: base-select) {
select {
appearance: base-select;
}
}
/* Client-side invalid after interaction; server 422 still uses .Error. */
.amarra-field:user-invalid,
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
border-color: rgb(255 180 171);
}
.cais-nav-icon {
width: 14px;
height: 14px;
flex-shrink: 0;
}
.cais-skeleton {
@apply animate-pulse rounded-lg bg-surface-container;
}
.cais-auth-screen {
@apply min-h-screen bg-surface text-on-surface;
}
/* Auth screens breathe: taller controls than the dense console tables. */
.auth-card input:not([type="checkbox"]),
.auth-card select {
height: 2.5rem;
}
.auth-card button[type="submit"] {
height: 2.25rem;
}
.cais-password-wrap {
@apply relative;
}
.cais-password-wrap input {
padding-right: 2.5rem;
}
.cais-password-toggle {
@apply absolute right-0 top-0 flex h-full items-center px-3 text-outline hover:text-on-surface;
border: none;
background: transparent;
cursor: pointer;
}
.cais-password-toggle svg {
width: 1rem;
height: 1rem;
}
.relative > [data-cais-password-toggle] {
@apply absolute right-0 top-0 flex h-full items-center px-3 text-outline hover:text-on-surface;
border: none;
background: transparent;
cursor: pointer;
}
.relative > input[type="password"] {
padding-right: 2.5rem;
}
.cais-select-search {
position: relative;
}
.cais-select-search-native {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.cais-select-search-trigger {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
border-radius: 0.5rem;
border: 1px solid theme("colors.surface-bright");
background: theme("colors.surface-container");
color: theme("colors.on-surface");
padding: 0.5rem 0.75rem;
text-align: left;
outline: none;
}
.cais-select-search-trigger:focus {
box-shadow: 0 0 0 2px theme("colors.primary-container");
}
.cais-select-search-trigger:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.cais-select-search-panel {
position: absolute;
z-index: 20;
margin-top: 0.25rem;
width: 100%;
overflow: hidden;
border-radius: 0.5rem;
border: 1px solid theme("colors.surface-bright");
background: theme("colors.surface-container-high");
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}
.cais-select-search-input {
width: 100%;
border: 0;
border-bottom: 1px solid theme("colors.surface-bright");
background: transparent;
color: theme("colors.on-surface");
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
line-height: 1.25rem;
outline: none;
}
.cais-select-search-list {
max-height: 12rem;
overflow-y: auto;
margin: 0;
padding: 0.25rem 0;
list-style: none;
}
.cais-select-search-option {
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
line-height: 1.25rem;
cursor: pointer;
}
.cais-select-search-option:hover {
background: theme("colors.surface-container-highest");
}
.cais-select-search-option.is-selected {
background: theme("colors.surface-container-highest");
font-weight: 500;
color: theme("colors.primary");
}
.cais-select-search-option.is-highlighted {
background: theme("colors.surface-container-highest");
}
.cais-select-search-option.is-hidden {
display: none;
}
.cais-select-search-chevron {
width: 1rem;
height: 1rem;
flex-shrink: 0;
color: theme("colors.outline");
}
/* Amarra Drive toast stack: fixed top-right, stacked, animated in/out. */
#amarra-toast-host {
position: fixed;
top: 1.25rem;
right: 1.25rem;
z-index: 60;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.5rem;
pointer-events: none;
max-width: min(24rem, calc(100vw - 2.5rem));
}
#amarra-toast-host > * {
pointer-events: auto;
width: 100%;
}
.amarra-toast {
display: flex;
align-items: flex-start;
gap: 0.6rem;
padding: 0.625rem 0.875rem;
border-radius: 0.5rem;
border: 1px solid theme("colors.surface-bright");
background: theme("colors.surface-container-high");
box-shadow: 0 12px 24px -8px rgb(0 0 0 / 0.6);
color: theme("colors.on-surface");
font-size: 0.875rem;
line-height: 1.4;
}
.amarra-toast-enter {
animation: amarra-toast-in 240ms cubic-bezier(0.21, 1.02, 0.73, 1) both;
}
.amarra-toast-leave {
animation: amarra-toast-out 180ms ease-in forwards;
}
.amarra-toast-icon {
flex-shrink: 0;
margin-top: 0.1rem;
width: 1rem;
height: 1rem;
border-radius: 9999px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 0.625rem;
line-height: 1;
}
.amarra-toast-success .amarra-toast-icon {
background: rgb(78 222 163 / 0.25);
color: rgb(111 251 190);
}
.amarra-toast-error .amarra-toast-icon {
background: rgb(255 180 171 / 0.22);
color: rgb(255 218 214);
}
.amarra-toast-info .amarra-toast-icon {
background: rgb(77 142 255 / 0.25);
color: rgb(173 198 255);
}
.amarra-toast-warning .amarra-toast-icon {
background: rgb(255 185 95 / 0.25);
color: rgb(255 221 184);
}
.amarra-toast-close {
margin-left: auto;
flex-shrink: 0;
padding: 0;
border: 0;
background: transparent;
color: rgb(194 198 214 / 0.7);
cursor: pointer;
font-size: 0.875rem;
line-height: 1;
}
.amarra-toast-close:hover {
color: theme("colors.on-surface");
}
@keyframes amarra-toast-in {
from {
opacity: 0;
transform: translateY(-0.75rem) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes amarra-toast-out {
from {
opacity: 1;
transform: translateY(0) scale(0.97);
}
to {
opacity: 0;
transform: translateY(-0.5rem) scale(0.97);
}
}
/* Page transitions for Amarra Drive morphs (fallback to CSS fade). */
@keyframes amarra-page-in {
from {
opacity: 0;
transform: translateY(0.5rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.amarra-page-enter {
animation: amarra-page-in 260ms ease-out both;
}
@keyframes amarra-fade-out {
to {
opacity: 0;
}
}
::view-transition-old(root) {
animation: amarra-fade-out 140ms ease-in both;
}
::view-transition-new(root) {
animation: amarra-page-in 280ms ease-out both;
}
/* Marketing page ambient effects kept for the scaffold home page. */
.amarra-grain::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.08;
mix-blend-mode: overlay;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes amarra-rise {
from {
opacity: 0;
transform: translateY(1.15rem);
}
to {
opacity: 1;
transform: none;
}
}
.amarra-rise {
animation: amarra-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
.amarra-rise,
.amarra-toast-enter,
.amarra-page-enter {
animation: none;
}
}
}