-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore-components.css
More file actions
582 lines (508 loc) · 13.2 KB
/
Copy pathcore-components.css
File metadata and controls
582 lines (508 loc) · 13.2 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
@layer utilities {
.fieldset .label {
@apply text-sm font-normal text-neutrals-300 mb-2 block;
}
.fieldset .input,
.fieldset .textarea {
@apply w-full border border-neutrals-200 bg-neutrals-100 hover:border-neutrals-250 rounded-md px-3 py-2 text-neutrals-400;
@apply focus:outline-none focus:ring-5 focus:ring-interaction-100 focus:border-interaction-300 focus:bg-neutrals-0;
}
.fieldset .input .disabled {
@apply opacity-50 cursor-not-allowed pointer-events-none;
}
.fieldset .input-error {
@apply border-warning-300;
@apply focus:outline-none focus:ring-4 focus:ring-warning-100 focus:border-warning-300 focus:bg-neutrals-0;
}
.fieldset .textarea-error {
@apply border-warning-300;
@apply focus:outline-none focus:ring-4 focus:ring-warning-100 focus:border-warning-300 focus:bg-neutrals-0;
}
}
@layer utilities {
.checkbox {
@apply bg-neutrals-100 border-neutrals-200;
@apply hover:bg-neutrals-100 hover:border-neutrals-250;
@apply focus:outline-none focus:ring-4 focus:ring-interaction-100 focus:border-interaction-300;
@apply text-interaction-300;
}
}
@layer utilities {
.select {
@apply bg-neutrals-100 border-neutrals-200 text-neutrals-300 appearance-none;
@apply hover:bg-neutrals-100 hover:border-neutrals-250;
@apply focus:outline-none focus:ring-4 focus:ring-neutrals-100 focus:border-neutrals-200;
@apply active:bg-white active:border-interaction-300 active:ring-4 active:ring-interaction-100;
/* boilerplate chevron */
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%233957EA' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
}
}
@layer utilities {
.btn {
@apply focus:outline-none focus:ring-4 focus:ring-interaction-100 border-none;
@apply bg-interaction-300 text-neutrals-0 hover:bg-interaction-400 rounded-lg;
@apply shadow-none;
border-radius: 6px;
}
.btn.btn-icon {
@apply px-8 py-0;
}
.btn.disabled,
.btn[disabled] {
@apply opacity-50 cursor-not-allowed pointer-events-none;
}
/* Override DaisyUI's disabled background colors */
/* For default values we have default colors. Note: ghost and link has not yet been implemented */
.btn[disabled]:not(
.btn-link,
.btn-ghost,
.btn-secondary,
.btn-tertiary,
.btn-danger
),
.btn.disabled:not(
.btn-link,
.btn-ghost,
.btn-secondary,
.btn-tertiary,
.btn-danger
) {
@apply bg-interaction-300 hover:bg-interaction-300;
}
.btn.btn-secondary[disabled],
.btn.btn-secondary.disabled {
@apply bg-neutrals-100 hover:bg-neutrals-100;
}
.btn.btn-tertiary[disabled],
.btn.btn-tertiary.disabled {
@apply bg-neutrals-0 hover:bg-neutrals-0;
}
.btn.btn-danger[disabled],
.btn.btn-danger.disabled {
@apply bg-neutrals-0 hover:bg-neutrals-0;
}
.btn.btn-secondary {
@apply bg-neutrals-100 text-interaction-300;
@apply hover:text-interaction-400;
@apply focus:text-interaction-300;
}
.btn.btn-tertiary {
@apply bg-neutrals-0 border border-solid border-neutrals-200;
@apply text-neutrals-300;
@apply hover:border-neutrals-250 hover:text-neutrals-350;
}
.btn.btn-danger {
@apply bg-neutrals-0 border border-solid border-danger-300;
@apply text-danger-300;
@apply hover:text-danger-400;
@apply focus:ring-danger-100;
}
.btn.btn-ghost {
@apply bg-transparent border-none;
@apply text-interaction-300;
@apply hover:text-interaction-400;
@apply focus:ring-0;
}
/* Remove underline from button links, it's an internal design rule */
a.btn {
text-decoration: none !important;
}
}
/* Error message component with warning icon */
p.mt-1\.5.flex.gap-2.items-center.text-sm.text-error {
@apply text-neutrals-300;
}
p.mt-1\.5.flex.gap-2.items-center.text-sm.text-error .hero-exclamation-circle {
-webkit-mask: none !important;
mask: none !important;
background-color: transparent !important;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23f9aa00'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z'/%3e%3c/svg%3e") !important;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
width: 1.25rem;
height: 1.25rem;
}
header h1.text-lg.font-semibold.leading-8 {
@apply text-neutrals-350;
letter-spacing: -0.025em;
margin-bottom: 0.5rem;
}
/* Force table-zebra to use simple-table styling */
table.table.table-zebra {
@apply w-full border-collapse;
}
table.table.table-zebra th {
@apply text-neutrals-300 font-semibold p-3 bg-neutrals-50 border-b border-neutrals-300;
}
table.table.table-zebra td {
@apply p-3 border-b border-gray-200 bg-neutrals-0;
}
@layer utilities {
/* tables */
.simple-table {
@apply w-full border-collapse;
}
.simple-table th {
@apply text-neutrals-300 font-semibold p-3 bg-neutrals-50 border-b border-neutrals-300;
}
.simple-table td {
@apply p-3 border-b border-gray-200 bg-neutrals-0;
}
/* Checkbox fieldset styling - only for labels containing checkboxes */
.fieldset label:has(input[type="checkbox"]) {
@apply inline-flex items-center w-fit text-neutrals-300 hover:text-neutrals-400 focus:text-neutrals-400;
}
.fieldset label:has(input[type="checkbox"]) input[type="checkbox"] {
@apply flex-shrink-0;
}
.fieldset label:has(input[type="checkbox"]) span.label {
@apply text-base;
position: relative;
padding-left: 1.5rem; /* Space for checkbox */
}
.fieldset
label:has(input[type="checkbox"])
span.label
input[type="checkbox"] {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
}
.toast.toast-top.toast-end {
@apply fixed top-4 right-4 z-50 w-96;
}
.toast .alert {
@apply bg-white rounded-lg shadow-lg border-l-4 p-4 w-full;
@apply flex items-start justify-between gap-4;
border: none;
border-left: 4px solid;
}
.toast .alert-info {
@apply border-l-success-300;
}
.toast .alert-error {
@apply border-l-danger-300;
}
.toast .alert-error svg {
@apply text-danger-300;
}
.toast .alert p:first-of-type {
@apply font-bold text-neutrals-350 mb-1;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
.toast .alert p:last-of-type {
@apply text-sm text-neutrals-300;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
.toast .alert svg {
@apply w-5 h-5 flex-shrink-0 mt-0.5;
}
.toast .alert button {
@apply text-gray-400 hover:text-gray-600 transition-colors duration-200 flex-shrink-0;
}
.toast .alert button svg {
@apply w-5 h-5;
}
.toast .alert span.hero-information-circle,
.toast .alert span.hero-exclamation-circle {
display: none !important;
}
/* Odyssey Neutral Text Colors */
.ody-neutral-0 {
color: #ffffff;
}
.ody-neutral-50 {
color: #fafaff;
}
.ody-neutral-100 {
color: #f2f3fa;
}
.ody-neutral-200 {
color: #dadce7;
}
.ody-neutral-250 {
color: #9ca1b9;
}
.ody-neutral-300 {
color: #656a81;
}
.ody-neutral-350 {
color: #414159;
}
.ody-neutral-400 {
color: #202024;
}
/* Odyssey Text Styles */
.ody-p1 {
font-family: "IBM Plex Sans";
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%;
}
.ody-p1-medium {
font-family: "IBM Plex Sans";
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 150%; /* 24px */
}
.ody-p1-bold {
font-family: "IBM Plex Sans";
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 150%; /* 24px */
}
.ody-h3-medium {
font-family: "IBM Plex Sans";
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 125%; /* 25px */
}
/* Typography/H1/Regular */
.ody-h1 {
font-family: "IBM Plex Sans";
font-size: 28px;
font-style: normal;
font-weight: 400;
line-height: 125%;
}
/* Typography/H1/Medium */
.ody-h1-medium {
font-family: "IBM Plex Sans";
font-size: 28px;
font-style: normal;
font-weight: 500;
line-height: 125%;
}
/* Typography/H1/Bold */
.ody-h1-bold {
font-family: "IBM Plex Sans";
font-size: 28px;
font-style: normal;
font-weight: 700;
line-height: 125%;
}
/* Typography/H2/Regular */
.ody-h2 {
font-family: "IBM Plex Sans";
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 125%;
}
/* Typography/H2/Medium */
.ody-h2-medium {
font-family: "IBM Plex Sans";
font-size: 24px;
font-style: normal;
font-weight: 500;
line-height: 125%;
}
/* Typography/H2/Bold */
.ody-h2-bold {
font-family: "IBM Plex Sans";
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: 125%;
}
/* Typography/H3/Regular */
.ody-h3 {
font-family: "IBM Plex Sans";
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 125%;
}
/* Typography/H3/Bold */
.ody-h3-bold {
font-family: "IBM Plex Sans";
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 125%;
}
/* Typography/P2 Small/Regular */
.ody-p2 {
font-family: "IBM Plex Sans";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 150%;
}
/* Typography/P2 Small/Medium */
.ody-p2-medium {
font-family: "IBM Plex Sans";
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 150%;
}
/* Typography/P2 Small/Bold */
.ody-p2-bold {
font-family: "IBM Plex Sans";
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 150%;
}
/* Typography/P3 X-Small/Regular */
.ody-p3 {
font-family: "IBM Plex Sans";
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 125%;
}
/* Typography/P3 X-Small/Medium */
.ody-p3-medium {
font-family: "IBM Plex Sans";
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 125%;
}
/* Typography/P3 X-Small/Bold */
.ody-p3-bold {
font-family: "IBM Plex Sans";
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: 125%;
}
/* Typography/Mobile Footer/Regular */
.ody-mobile-footer {
font-family: "IBM Plex Sans";
font-size: 10px;
font-style: normal;
font-weight: 400;
line-height: 125%;
}
/* Typography/Mobile Footer/Medium */
.ody-mobile-footer-medium {
font-family: "IBM Plex Sans";
font-size: 10px;
font-style: normal;
font-weight: 500;
line-height: 125%;
}
/* Typography/Mobile Footer/Bold */
.ody-mobile-footer-bold {
font-family: "IBM Plex Sans";
font-size: 10px;
font-style: normal;
font-weight: 700;
line-height: 125%;
}
/* Typography/P1 Base/Regular Link */
.ody-p1-link {
font-family: "IBM Plex Sans";
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
/* Typography/P1 Base/Medium Link */
.ody-p1-medium-link {
font-family: "IBM Plex Sans";
font-size: 16px;
font-style: normal;
font-weight: 500;
line-height: 150%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
/* Typography/P1 Base/Bold Link */
.ody-p1-bold-link {
font-family: "IBM Plex Sans";
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 150%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
/* Typography/P2 Small/Regular Link */
.ody-p2-link {
font-family: "IBM Plex Sans";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 150%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
/* Typography/P2 Small/Medium Link */
.ody-p2-medium-link {
font-family: "IBM Plex Sans";
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 150%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
/* Typography/P2 Small/Bold Link */
.ody-p2-bold-link {
font-family: "IBM Plex Sans";
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 150%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
/* Typography/P3 X-Small/Link */
.ody-p3-link {
font-family: "IBM Plex Sans";
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 125%;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: none;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}