santycss 1.3.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/santy-components.css +253 -0
- package/dist/santy-core.css +1 -1
- package/dist/santy.css +254 -1
- package/dist/santy.min.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,21 @@ Class names read like sentences. No build step. No configuration. Just link and
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
## What's New in v1.4
|
|
24
|
+
|
|
25
|
+
### 🧩 VS Code IntelliSense Extension
|
|
26
|
+
|
|
27
|
+
**SantyCSS IntelliSense** is now available as a VS Code extension — similar to Tailwind CSS IntelliSense.
|
|
28
|
+
|
|
29
|
+
- **Autocomplete** — type inside `class=""` or `className=""` and get instant suggestions for all 8,500+ SantyCSS classes
|
|
30
|
+
- **Hover docs** — hover any class to see the CSS it generates
|
|
31
|
+
- **Works in** HTML, JSX, TSX, Vue, Svelte, PHP, ERB
|
|
32
|
+
- **Toggle command** — `SantyCSS: Toggle IntelliSense` in the Command Palette
|
|
33
|
+
|
|
34
|
+
Install: search **SantyCSS IntelliSense** in the Extensions panel.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
23
38
|
## What's New in v1.3
|
|
24
39
|
|
|
25
40
|
### 🎨 70+ SVG Icons (new: Business & Finance)
|
|
@@ -543,6 +543,136 @@
|
|
|
543
543
|
.input-addon:first-child { border-radius: 6px 0 0 6px; }
|
|
544
544
|
.input-addon:last-child { border-radius: 0 6px 6px 0; border-left: none; border-right-width: 1px; }
|
|
545
545
|
|
|
546
|
+
/* ── Command Palette ── */
|
|
547
|
+
.cmd-palette-backdrop { position: fixed; inset: 0; background-color: rgba(0,0,0,0.5); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; }
|
|
548
|
+
.cmd-palette { width: 100%; max-width: 560px; background-color: #fff; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.3); overflow: hidden; animation: santy-zoom-in 0.15s ease; }
|
|
549
|
+
.cmd-palette-input-wrap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; }
|
|
550
|
+
.cmd-palette-icon { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; }
|
|
551
|
+
.cmd-palette-input { flex: 1; border: none; outline: none; font-size: 16px; color: #111827; background: transparent; }
|
|
552
|
+
.cmd-palette-input::placeholder { color: #9ca3af; }
|
|
553
|
+
.cmd-palette-kbd { font-size: 11px; color: #9ca3af; background-color: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
|
|
554
|
+
.cmd-palette-list { max-height: 360px; overflow-y: auto; padding: 6px; }
|
|
555
|
+
.cmd-palette-group { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; }
|
|
556
|
+
.cmd-palette-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #374151; cursor: pointer; transition: background-color 0.1s; }
|
|
557
|
+
.cmd-palette-item:hover, .cmd-palette-item.active { background-color: #eff6ff; color: #2563eb; }
|
|
558
|
+
.cmd-palette-item-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.6; }
|
|
559
|
+
.cmd-palette-item-label { flex: 1; }
|
|
560
|
+
.cmd-palette-item-hint { font-size: 12px; color: #9ca3af; }
|
|
561
|
+
.cmd-palette-empty { padding: 32px 16px; text-align: center; font-size: 14px; color: #9ca3af; }
|
|
562
|
+
.cmd-palette-footer { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #9ca3af; background-color: #f9fafb; }
|
|
563
|
+
|
|
564
|
+
/* ── Kanban Board ── */
|
|
565
|
+
.kanban { display: flex; gap: 16px; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
|
|
566
|
+
.kanban-col { flex-shrink: 0; width: 280px; background-color: #f3f4f6; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
|
|
567
|
+
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
|
|
568
|
+
.kanban-col-title { font-size: 13px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
569
|
+
.kanban-col-count { font-size: 12px; font-weight: 600; background-color: #e5e7eb; color: #6b7280; border-radius: 9999px; padding: 1px 8px; }
|
|
570
|
+
.kanban-card { background-color: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); cursor: grab; transition: box-shadow 0.15s, transform 0.15s; font-size: 14px; color: #111827; }
|
|
571
|
+
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }
|
|
572
|
+
.kanban-card:active { cursor: grabbing; }
|
|
573
|
+
.kanban-card-label { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 7px; margin-bottom: 8px; }
|
|
574
|
+
.kanban-card-title { font-weight: 500; margin-bottom: 6px; line-height: 1.4; }
|
|
575
|
+
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #9ca3af; }
|
|
576
|
+
.kanban-add-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 2px dashed #d1d5db; border-radius: 8px; background: transparent; color: #9ca3af; font-size: 13px; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
|
|
577
|
+
.kanban-add-btn:hover { border-color: #3b82f6; color: #3b82f6; }
|
|
578
|
+
|
|
579
|
+
/* ── Timeline / Activity Feed ── */
|
|
580
|
+
.timeline { display: flex; flex-direction: column; }
|
|
581
|
+
.timeline-item { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
|
|
582
|
+
.timeline-item:last-child { padding-bottom: 0; }
|
|
583
|
+
.timeline-item:not(:last-child) .timeline-dot::after { content: ''; position: absolute; top: 32px; left: 15px; bottom: 0; width: 2px; background-color: #e5e7eb; }
|
|
584
|
+
.timeline-dot { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background-color: #e5e7eb; border: 2px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; z-index: 1; }
|
|
585
|
+
.timeline-dot-blue { background-color: #3b82f6; box-shadow: 0 0 0 2px #bfdbfe; color: #fff; }
|
|
586
|
+
.timeline-dot-green { background-color: #22c55e; box-shadow: 0 0 0 2px #bbf7d0; color: #fff; }
|
|
587
|
+
.timeline-dot-red { background-color: #ef4444; box-shadow: 0 0 0 2px #fecaca; color: #fff; }
|
|
588
|
+
.timeline-dot-yellow { background-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a; color: #fff; }
|
|
589
|
+
.timeline-body { flex: 1; min-width: 0; padding-top: 4px; }
|
|
590
|
+
.timeline-time { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
|
|
591
|
+
.timeline-title { font-size: 14px; font-weight: 500; color: #111827; margin-bottom: 4px; }
|
|
592
|
+
.timeline-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }
|
|
593
|
+
.timeline-card { background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-size: 13px; color: #374151; }
|
|
594
|
+
.timeline-compact .timeline-item { padding-bottom: 12px; }
|
|
595
|
+
.timeline-compact .timeline-dot { width: 22px; height: 22px; font-size: 11px; }
|
|
596
|
+
.timeline-compact .timeline-item:not(:last-child) .timeline-dot::after { left: 10px; top: 22px; }
|
|
597
|
+
|
|
598
|
+
/* ── File Upload Dropzone ── */
|
|
599
|
+
.dropzone { border: 2px dashed #d1d5db; border-radius: 12px; padding: 40px 24px; text-align: center; background-color: #f9fafb; transition: border-color 0.2s, background-color 0.2s; cursor: pointer; }
|
|
600
|
+
.dropzone:hover, .dropzone.drag-over { border-color: #3b82f6; background-color: #eff6ff; }
|
|
601
|
+
.dropzone-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; line-height: 1; }
|
|
602
|
+
.dropzone-title { font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 6px; }
|
|
603
|
+
.dropzone-desc { font-size: 13px; color: #9ca3af; margin-bottom: 16px; }
|
|
604
|
+
.dropzone-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; font-size: 13px; font-weight: 600; border-radius: 8px; background-color: #3b82f6; color: #fff; border: none; cursor: pointer; transition: background-color 0.15s; }
|
|
605
|
+
.dropzone-btn:hover { background-color: #2563eb; }
|
|
606
|
+
.dropzone-types { font-size: 12px; color: #9ca3af; margin-top: 10px; }
|
|
607
|
+
.dropzone-sm { padding: 20px 16px; }
|
|
608
|
+
.dropzone-sm .dropzone-icon { font-size: 28px; }
|
|
609
|
+
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
|
|
610
|
+
.file-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background-color: #fff; font-size: 13px; }
|
|
611
|
+
.file-list-name { flex: 1; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
612
|
+
.file-list-size { color: #9ca3af; white-space: nowrap; }
|
|
613
|
+
.file-list-remove { color: #9ca3af; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; border: none; background: none; transition: color 0.1s; }
|
|
614
|
+
.file-list-remove:hover { color: #ef4444; }
|
|
615
|
+
|
|
616
|
+
/* ── Mega Menu ── */
|
|
617
|
+
.mega-menu-wrap { position: relative; }
|
|
618
|
+
.mega-menu { position: absolute; top: 100%; left: 0; min-width: 640px; background-color: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.12); z-index: 300; padding: 20px; display: none; animation: santy-zoom-in 0.15s ease; }
|
|
619
|
+
.mega-menu.open, .mega-menu-wrap:hover .mega-menu { display: flex; }
|
|
620
|
+
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
|
|
621
|
+
.mega-menu-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; margin-bottom: 10px; }
|
|
622
|
+
.mega-menu-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; transition: background-color 0.12s; cursor: pointer; }
|
|
623
|
+
.mega-menu-item:hover { background-color: #f3f4f6; }
|
|
624
|
+
.mega-menu-item-icon { width: 36px; height: 36px; border-radius: 8px; background-color: #eff6ff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
|
|
625
|
+
.mega-menu-item-title { font-size: 14px; font-weight: 500; color: #111827; }
|
|
626
|
+
.mega-menu-item-desc { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.4; }
|
|
627
|
+
.mega-menu-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #6b7280; }
|
|
628
|
+
|
|
629
|
+
/* ── Split Pane ── */
|
|
630
|
+
.split-pane { display: flex; height: 100%; overflow: hidden; }
|
|
631
|
+
.split-pane-vertical { flex-direction: column; }
|
|
632
|
+
.split-pane-panel { overflow: auto; flex: 1; min-width: 0; min-height: 0; }
|
|
633
|
+
.split-pane-divider { flex-shrink: 0; background-color: #e5e7eb; transition: background-color 0.15s; position: relative; z-index: 1; }
|
|
634
|
+
.split-pane:not(.split-pane-vertical) .split-pane-divider { width: 5px; cursor: col-resize; }
|
|
635
|
+
.split-pane.split-pane-vertical .split-pane-divider { height: 5px; cursor: row-resize; }
|
|
636
|
+
.split-pane-divider:hover, .split-pane-divider.dragging { background-color: #3b82f6; }
|
|
637
|
+
.split-pane-divider::after { content: ''; position: absolute; inset: -4px; }
|
|
638
|
+
|
|
639
|
+
/* ── Rating / Stars ── */
|
|
640
|
+
.rating { display: inline-flex; gap: 2px; align-items: center; }
|
|
641
|
+
.rating-star { font-size: 20px; color: #d1d5db; cursor: pointer; transition: color 0.1s, transform 0.1s; line-height: 1; user-select: none; }
|
|
642
|
+
.rating-star:hover, .rating-star.filled { color: #f59e0b; }
|
|
643
|
+
.rating-star:hover { transform: scale(1.15); }
|
|
644
|
+
.rating-sm .rating-star { font-size: 14px; }
|
|
645
|
+
.rating-lg .rating-star { font-size: 28px; }
|
|
646
|
+
.rating-readonly .rating-star { cursor: default; pointer-events: none; }
|
|
647
|
+
.rating-readonly .rating-star:hover { transform: none; }
|
|
648
|
+
.rating-value { font-size: 14px; font-weight: 600; color: #374151; margin-left: 6px; }
|
|
649
|
+
.rating-count { font-size: 13px; color: #9ca3af; margin-left: 4px; }
|
|
650
|
+
|
|
651
|
+
/* ── Code Block ── */
|
|
652
|
+
.code-block { position: relative; border-radius: 10px; background-color: #1e293b; color: #e2e8f0; font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace; font-size: 13px; line-height: 1.7; overflow: hidden; }
|
|
653
|
+
.code-block-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background-color: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.07); }
|
|
654
|
+
.code-block-lang { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.07em; }
|
|
655
|
+
.code-block-dots { display: flex; gap: 6px; }
|
|
656
|
+
.code-block-dot { width: 12px; height: 12px; border-radius: 50%; }
|
|
657
|
+
.code-block-dot-red { background-color: #ef4444; }
|
|
658
|
+
.code-block-dot-yellow { background-color: #f59e0b; }
|
|
659
|
+
.code-block-dot-green { background-color: #22c55e; }
|
|
660
|
+
.code-block-copy { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 12px; font-weight: 500; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background-color: rgba(255,255,255,0.06); color: #94a3b8; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
|
|
661
|
+
.code-block-copy:hover { background-color: rgba(255,255,255,0.12); color: #e2e8f0; }
|
|
662
|
+
.code-block-copy.copied { color: #22c55e; border-color: rgba(34,197,94,0.3); }
|
|
663
|
+
.code-block pre { margin: 0; padding: 16px 20px; overflow-x: auto; }
|
|
664
|
+
.code-block code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
|
|
665
|
+
.code-block-line-numbers pre { padding-left: 0; }
|
|
666
|
+
.code-block-gutter { display: inline-flex; flex-direction: column; padding: 16px 12px 16px 16px; text-align: right; user-select: none; border-right: 1px solid rgba(255,255,255,0.07); color: #475569; font-size: 13px; line-height: 1.7; }
|
|
667
|
+
.code-block-inner { display: flex; }
|
|
668
|
+
.token-keyword { color: #c084fc; }
|
|
669
|
+
.token-string { color: #86efac; }
|
|
670
|
+
.token-comment { color: #475569; font-style: italic; }
|
|
671
|
+
.token-number { color: #fb923c; }
|
|
672
|
+
.token-fn { color: #60a5fa; }
|
|
673
|
+
.token-tag { color: #f87171; }
|
|
674
|
+
.token-attr { color: #fbbf24; }
|
|
675
|
+
|
|
546
676
|
|
|
547
677
|
/* ── Dropdown ── */
|
|
548
678
|
.dropdown { position: relative; display: inline-block; }
|
|
@@ -898,3 +1028,126 @@
|
|
|
898
1028
|
@container (min-width: 800px) { .cq-lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); } }
|
|
899
1029
|
.container-query { container-type: inline-size; }
|
|
900
1030
|
.container-query-size { container-type: size; }
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
/* ── Dark Theme CSS Tokens ── */
|
|
1034
|
+
:root {
|
|
1035
|
+
--color-surface: #0f172a;
|
|
1036
|
+
--color-card: #1e293b;
|
|
1037
|
+
--color-accent: #38bdf8;
|
|
1038
|
+
--color-accent-light: rgba(56,189,248,.13);
|
|
1039
|
+
--color-text: #f1f5f9;
|
|
1040
|
+
--color-muted: #64748b;
|
|
1041
|
+
--color-warning: #facc15;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/* ── Semantic Color Utilities ── */
|
|
1045
|
+
.bg-surface { background-color: var(--color-surface); }
|
|
1046
|
+
.bg-accent-light { background-color: var(--color-accent-light); }
|
|
1047
|
+
.text-accent { color: var(--color-accent); }
|
|
1048
|
+
.text-primary { color: var(--color-text); }
|
|
1049
|
+
.text-muted { color: var(--color-muted); }
|
|
1050
|
+
|
|
1051
|
+
/* ── Badge Color Variants ── */
|
|
1052
|
+
.badge-green { background-color: rgba(22,163,74,.13); color: #4ade80; }
|
|
1053
|
+
.badge-blue { background-color: rgba(37,99,235,.13); color: #60a5fa; }
|
|
1054
|
+
.badge-yellow { background-color: rgba(202,138,4,.13); color: #facc15; }
|
|
1055
|
+
.badge-red { background-color: rgba(220,38,38,.13); color: #f87171; }
|
|
1056
|
+
|
|
1057
|
+
/* ── Named Height Utilities ── */
|
|
1058
|
+
.h-xs { height: 24px; }
|
|
1059
|
+
.h-sm { height: 48px; }
|
|
1060
|
+
.h-md { height: 96px; }
|
|
1061
|
+
.h-lg { height: 160px; }
|
|
1062
|
+
|
|
1063
|
+
/* ── Progress Bar Color Variants ── */
|
|
1064
|
+
.progress-bar-green { background-color: #22c55e; }
|
|
1065
|
+
.progress-bar-red { background-color: #ef4444; }
|
|
1066
|
+
.progress-bar-yellow { background-color: #eab308; }
|
|
1067
|
+
.progress-bar-purple { background-color: #8b5cf6; }
|
|
1068
|
+
.progress-bar-orange { background-color: #f97316; }
|
|
1069
|
+
|
|
1070
|
+
/* ── Slider (Range — dark-themed) ── */
|
|
1071
|
+
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--color-card, #1e293b); outline: none; cursor: pointer; }
|
|
1072
|
+
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent, #38bdf8); cursor: pointer; box-shadow: 0 0 0 3px rgba(56,189,248,.2); }
|
|
1073
|
+
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent, #38bdf8); cursor: pointer; border: none; }
|
|
1074
|
+
|
|
1075
|
+
/* ── Stat Card ── */
|
|
1076
|
+
.stat-card {
|
|
1077
|
+
background: var(--color-card, #1e293b);
|
|
1078
|
+
border-radius: 8px;
|
|
1079
|
+
padding: 12px;
|
|
1080
|
+
flex: 1;
|
|
1081
|
+
display: flex;
|
|
1082
|
+
flex-direction: column;
|
|
1083
|
+
align-items: center;
|
|
1084
|
+
gap: 4px;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/* ── Button Icon ── */
|
|
1088
|
+
.btn-icon {
|
|
1089
|
+
width: 44px;
|
|
1090
|
+
height: 44px;
|
|
1091
|
+
border-radius: 9999px;
|
|
1092
|
+
display: inline-flex;
|
|
1093
|
+
align-items: center;
|
|
1094
|
+
justify-content: center;
|
|
1095
|
+
background: var(--color-accent-light, rgba(56,189,248,.13));
|
|
1096
|
+
border: none;
|
|
1097
|
+
cursor: pointer;
|
|
1098
|
+
transition: opacity 0.2s;
|
|
1099
|
+
}
|
|
1100
|
+
.btn-icon:hover { opacity: 0.8; }
|
|
1101
|
+
|
|
1102
|
+
/* ── Input Text (dark-theme) ── */
|
|
1103
|
+
.input-text {
|
|
1104
|
+
flex: 1;
|
|
1105
|
+
width: 100%;
|
|
1106
|
+
background: var(--color-surface, #0f172a);
|
|
1107
|
+
border-radius: 8px;
|
|
1108
|
+
padding: 10px 14px;
|
|
1109
|
+
color: var(--color-text, #f1f5f9);
|
|
1110
|
+
font-size: 15px;
|
|
1111
|
+
min-height: 44px;
|
|
1112
|
+
border: 1px solid #334155;
|
|
1113
|
+
outline: none;
|
|
1114
|
+
}
|
|
1115
|
+
.input-text:focus { border-color: var(--color-accent, #38bdf8); }
|
|
1116
|
+
|
|
1117
|
+
/* ── Chat Bubbles ── */
|
|
1118
|
+
.chat-bubble-user {
|
|
1119
|
+
align-self: flex-end;
|
|
1120
|
+
background: var(--color-accent-light, rgba(56,189,248,.13));
|
|
1121
|
+
border-radius: 16px 16px 4px 16px;
|
|
1122
|
+
padding: 10px 14px;
|
|
1123
|
+
max-width: 78%;
|
|
1124
|
+
color: var(--color-text, #f1f5f9);
|
|
1125
|
+
}
|
|
1126
|
+
.chat-bubble-ai {
|
|
1127
|
+
align-self: flex-start;
|
|
1128
|
+
background: var(--color-card, #1e293b);
|
|
1129
|
+
border-radius: 16px 16px 16px 4px;
|
|
1130
|
+
padding: 10px 14px;
|
|
1131
|
+
max-width: 78%;
|
|
1132
|
+
color: var(--color-text, #f1f5f9);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/* ── Typing Indicator ── */
|
|
1136
|
+
.typing-indicator { display: flex; gap: 4px; padding: 10px; align-self: flex-start; }
|
|
1137
|
+
.typing-indicator span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-muted, #64748b); animation: santy-blink 1.2s ease-in-out infinite; }
|
|
1138
|
+
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
|
|
1139
|
+
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
|
|
1140
|
+
@keyframes santy-blink { 0%, 80%, 100% { opacity: 0; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
|
|
1141
|
+
|
|
1142
|
+
/* ── Calorie Ring (SVG ring chart wrapper) ── */
|
|
1143
|
+
.calorie-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
|
|
1144
|
+
|
|
1145
|
+
/* ── Scan Overlay ── */
|
|
1146
|
+
.scan-overlay { position: absolute; border: 2px solid var(--color-accent, #38bdf8); border-radius: 12px; overflow: hidden; }
|
|
1147
|
+
|
|
1148
|
+
/* ── Scan Line Animated ── */
|
|
1149
|
+
.scan-line-animated { position: absolute; left: 0; right: 0; height: 2px; background: var(--color-accent, #38bdf8); animation: santy-scan-sweep 1.8s ease-in-out infinite alternate; }
|
|
1150
|
+
@keyframes santy-scan-sweep { from { top: 0%; } to { top: 100%; } }
|
|
1151
|
+
|
|
1152
|
+
/* ── Bar Chart Wrapper ── */
|
|
1153
|
+
.bar-chart-wrapper { background: var(--color-card, #1e293b); border-radius: 12px; padding: 16px; overflow: hidden; }
|
package/dist/santy-core.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
|
-
SantyCSS v1.0 — Plain-English Utility CSS Framework
|
|
2
|
+
SantyCSS v1.6.0 — Plain-English Utility CSS Framework
|
|
3
3
|
https://github.com/santybad/santy_css
|
|
4
4
|
============================================================ */
|
|
5
5
|
|
package/dist/santy.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ============================================================
|
|
2
|
-
SantyCSS v1.0 — Plain-English Utility CSS Framework
|
|
2
|
+
SantyCSS v1.6.0 — Plain-English Utility CSS Framework
|
|
3
3
|
https://github.com/santybad/santy_css
|
|
4
4
|
============================================================ */
|
|
5
5
|
|
|
@@ -12711,6 +12711,136 @@
|
|
|
12711
12711
|
.input-addon:first-child { border-radius: 6px 0 0 6px; }
|
|
12712
12712
|
.input-addon:last-child { border-radius: 0 6px 6px 0; border-left: none; border-right-width: 1px; }
|
|
12713
12713
|
|
|
12714
|
+
/* ── Command Palette ── */
|
|
12715
|
+
.cmd-palette-backdrop { position: fixed; inset: 0; background-color: rgba(0,0,0,0.5); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; }
|
|
12716
|
+
.cmd-palette { width: 100%; max-width: 560px; background-color: #fff; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.3); overflow: hidden; animation: santy-zoom-in 0.15s ease; }
|
|
12717
|
+
.cmd-palette-input-wrap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; }
|
|
12718
|
+
.cmd-palette-icon { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; }
|
|
12719
|
+
.cmd-palette-input { flex: 1; border: none; outline: none; font-size: 16px; color: #111827; background: transparent; }
|
|
12720
|
+
.cmd-palette-input::placeholder { color: #9ca3af; }
|
|
12721
|
+
.cmd-palette-kbd { font-size: 11px; color: #9ca3af; background-color: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
|
|
12722
|
+
.cmd-palette-list { max-height: 360px; overflow-y: auto; padding: 6px; }
|
|
12723
|
+
.cmd-palette-group { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; }
|
|
12724
|
+
.cmd-palette-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #374151; cursor: pointer; transition: background-color 0.1s; }
|
|
12725
|
+
.cmd-palette-item:hover, .cmd-palette-item.active { background-color: #eff6ff; color: #2563eb; }
|
|
12726
|
+
.cmd-palette-item-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.6; }
|
|
12727
|
+
.cmd-palette-item-label { flex: 1; }
|
|
12728
|
+
.cmd-palette-item-hint { font-size: 12px; color: #9ca3af; }
|
|
12729
|
+
.cmd-palette-empty { padding: 32px 16px; text-align: center; font-size: 14px; color: #9ca3af; }
|
|
12730
|
+
.cmd-palette-footer { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #9ca3af; background-color: #f9fafb; }
|
|
12731
|
+
|
|
12732
|
+
/* ── Kanban Board ── */
|
|
12733
|
+
.kanban { display: flex; gap: 16px; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
|
|
12734
|
+
.kanban-col { flex-shrink: 0; width: 280px; background-color: #f3f4f6; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
|
|
12735
|
+
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
|
|
12736
|
+
.kanban-col-title { font-size: 13px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
12737
|
+
.kanban-col-count { font-size: 12px; font-weight: 600; background-color: #e5e7eb; color: #6b7280; border-radius: 9999px; padding: 1px 8px; }
|
|
12738
|
+
.kanban-card { background-color: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); cursor: grab; transition: box-shadow 0.15s, transform 0.15s; font-size: 14px; color: #111827; }
|
|
12739
|
+
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }
|
|
12740
|
+
.kanban-card:active { cursor: grabbing; }
|
|
12741
|
+
.kanban-card-label { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 7px; margin-bottom: 8px; }
|
|
12742
|
+
.kanban-card-title { font-weight: 500; margin-bottom: 6px; line-height: 1.4; }
|
|
12743
|
+
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #9ca3af; }
|
|
12744
|
+
.kanban-add-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 2px dashed #d1d5db; border-radius: 8px; background: transparent; color: #9ca3af; font-size: 13px; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
|
|
12745
|
+
.kanban-add-btn:hover { border-color: #3b82f6; color: #3b82f6; }
|
|
12746
|
+
|
|
12747
|
+
/* ── Timeline / Activity Feed ── */
|
|
12748
|
+
.timeline { display: flex; flex-direction: column; }
|
|
12749
|
+
.timeline-item { display: flex; gap: 16px; position: relative; padding-bottom: 24px; }
|
|
12750
|
+
.timeline-item:last-child { padding-bottom: 0; }
|
|
12751
|
+
.timeline-item:not(:last-child) .timeline-dot::after { content: ''; position: absolute; top: 32px; left: 15px; bottom: 0; width: 2px; background-color: #e5e7eb; }
|
|
12752
|
+
.timeline-dot { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background-color: #e5e7eb; border: 2px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; z-index: 1; }
|
|
12753
|
+
.timeline-dot-blue { background-color: #3b82f6; box-shadow: 0 0 0 2px #bfdbfe; color: #fff; }
|
|
12754
|
+
.timeline-dot-green { background-color: #22c55e; box-shadow: 0 0 0 2px #bbf7d0; color: #fff; }
|
|
12755
|
+
.timeline-dot-red { background-color: #ef4444; box-shadow: 0 0 0 2px #fecaca; color: #fff; }
|
|
12756
|
+
.timeline-dot-yellow { background-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a; color: #fff; }
|
|
12757
|
+
.timeline-body { flex: 1; min-width: 0; padding-top: 4px; }
|
|
12758
|
+
.timeline-time { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
|
|
12759
|
+
.timeline-title { font-size: 14px; font-weight: 500; color: #111827; margin-bottom: 4px; }
|
|
12760
|
+
.timeline-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }
|
|
12761
|
+
.timeline-card { background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-size: 13px; color: #374151; }
|
|
12762
|
+
.timeline-compact .timeline-item { padding-bottom: 12px; }
|
|
12763
|
+
.timeline-compact .timeline-dot { width: 22px; height: 22px; font-size: 11px; }
|
|
12764
|
+
.timeline-compact .timeline-item:not(:last-child) .timeline-dot::after { left: 10px; top: 22px; }
|
|
12765
|
+
|
|
12766
|
+
/* ── File Upload Dropzone ── */
|
|
12767
|
+
.dropzone { border: 2px dashed #d1d5db; border-radius: 12px; padding: 40px 24px; text-align: center; background-color: #f9fafb; transition: border-color 0.2s, background-color 0.2s; cursor: pointer; }
|
|
12768
|
+
.dropzone:hover, .dropzone.drag-over { border-color: #3b82f6; background-color: #eff6ff; }
|
|
12769
|
+
.dropzone-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; line-height: 1; }
|
|
12770
|
+
.dropzone-title { font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 6px; }
|
|
12771
|
+
.dropzone-desc { font-size: 13px; color: #9ca3af; margin-bottom: 16px; }
|
|
12772
|
+
.dropzone-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; font-size: 13px; font-weight: 600; border-radius: 8px; background-color: #3b82f6; color: #fff; border: none; cursor: pointer; transition: background-color 0.15s; }
|
|
12773
|
+
.dropzone-btn:hover { background-color: #2563eb; }
|
|
12774
|
+
.dropzone-types { font-size: 12px; color: #9ca3af; margin-top: 10px; }
|
|
12775
|
+
.dropzone-sm { padding: 20px 16px; }
|
|
12776
|
+
.dropzone-sm .dropzone-icon { font-size: 28px; }
|
|
12777
|
+
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
|
|
12778
|
+
.file-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background-color: #fff; font-size: 13px; }
|
|
12779
|
+
.file-list-name { flex: 1; font-weight: 500; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
12780
|
+
.file-list-size { color: #9ca3af; white-space: nowrap; }
|
|
12781
|
+
.file-list-remove { color: #9ca3af; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; border: none; background: none; transition: color 0.1s; }
|
|
12782
|
+
.file-list-remove:hover { color: #ef4444; }
|
|
12783
|
+
|
|
12784
|
+
/* ── Mega Menu ── */
|
|
12785
|
+
.mega-menu-wrap { position: relative; }
|
|
12786
|
+
.mega-menu { position: absolute; top: 100%; left: 0; min-width: 640px; background-color: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.12); z-index: 300; padding: 20px; display: none; animation: santy-zoom-in 0.15s ease; }
|
|
12787
|
+
.mega-menu.open, .mega-menu-wrap:hover .mega-menu { display: flex; }
|
|
12788
|
+
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; }
|
|
12789
|
+
.mega-menu-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; margin-bottom: 10px; }
|
|
12790
|
+
.mega-menu-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; transition: background-color 0.12s; cursor: pointer; }
|
|
12791
|
+
.mega-menu-item:hover { background-color: #f3f4f6; }
|
|
12792
|
+
.mega-menu-item-icon { width: 36px; height: 36px; border-radius: 8px; background-color: #eff6ff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
|
|
12793
|
+
.mega-menu-item-title { font-size: 14px; font-weight: 500; color: #111827; }
|
|
12794
|
+
.mega-menu-item-desc { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.4; }
|
|
12795
|
+
.mega-menu-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #6b7280; }
|
|
12796
|
+
|
|
12797
|
+
/* ── Split Pane ── */
|
|
12798
|
+
.split-pane { display: flex; height: 100%; overflow: hidden; }
|
|
12799
|
+
.split-pane-vertical { flex-direction: column; }
|
|
12800
|
+
.split-pane-panel { overflow: auto; flex: 1; min-width: 0; min-height: 0; }
|
|
12801
|
+
.split-pane-divider { flex-shrink: 0; background-color: #e5e7eb; transition: background-color 0.15s; position: relative; z-index: 1; }
|
|
12802
|
+
.split-pane:not(.split-pane-vertical) .split-pane-divider { width: 5px; cursor: col-resize; }
|
|
12803
|
+
.split-pane.split-pane-vertical .split-pane-divider { height: 5px; cursor: row-resize; }
|
|
12804
|
+
.split-pane-divider:hover, .split-pane-divider.dragging { background-color: #3b82f6; }
|
|
12805
|
+
.split-pane-divider::after { content: ''; position: absolute; inset: -4px; }
|
|
12806
|
+
|
|
12807
|
+
/* ── Rating / Stars ── */
|
|
12808
|
+
.rating { display: inline-flex; gap: 2px; align-items: center; }
|
|
12809
|
+
.rating-star { font-size: 20px; color: #d1d5db; cursor: pointer; transition: color 0.1s, transform 0.1s; line-height: 1; user-select: none; }
|
|
12810
|
+
.rating-star:hover, .rating-star.filled { color: #f59e0b; }
|
|
12811
|
+
.rating-star:hover { transform: scale(1.15); }
|
|
12812
|
+
.rating-sm .rating-star { font-size: 14px; }
|
|
12813
|
+
.rating-lg .rating-star { font-size: 28px; }
|
|
12814
|
+
.rating-readonly .rating-star { cursor: default; pointer-events: none; }
|
|
12815
|
+
.rating-readonly .rating-star:hover { transform: none; }
|
|
12816
|
+
.rating-value { font-size: 14px; font-weight: 600; color: #374151; margin-left: 6px; }
|
|
12817
|
+
.rating-count { font-size: 13px; color: #9ca3af; margin-left: 4px; }
|
|
12818
|
+
|
|
12819
|
+
/* ── Code Block ── */
|
|
12820
|
+
.code-block { position: relative; border-radius: 10px; background-color: #1e293b; color: #e2e8f0; font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace; font-size: 13px; line-height: 1.7; overflow: hidden; }
|
|
12821
|
+
.code-block-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background-color: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.07); }
|
|
12822
|
+
.code-block-lang { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.07em; }
|
|
12823
|
+
.code-block-dots { display: flex; gap: 6px; }
|
|
12824
|
+
.code-block-dot { width: 12px; height: 12px; border-radius: 50%; }
|
|
12825
|
+
.code-block-dot-red { background-color: #ef4444; }
|
|
12826
|
+
.code-block-dot-yellow { background-color: #f59e0b; }
|
|
12827
|
+
.code-block-dot-green { background-color: #22c55e; }
|
|
12828
|
+
.code-block-copy { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 12px; font-weight: 500; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12); background-color: rgba(255,255,255,0.06); color: #94a3b8; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
|
|
12829
|
+
.code-block-copy:hover { background-color: rgba(255,255,255,0.12); color: #e2e8f0; }
|
|
12830
|
+
.code-block-copy.copied { color: #22c55e; border-color: rgba(34,197,94,0.3); }
|
|
12831
|
+
.code-block pre { margin: 0; padding: 16px 20px; overflow-x: auto; }
|
|
12832
|
+
.code-block code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
|
|
12833
|
+
.code-block-line-numbers pre { padding-left: 0; }
|
|
12834
|
+
.code-block-gutter { display: inline-flex; flex-direction: column; padding: 16px 12px 16px 16px; text-align: right; user-select: none; border-right: 1px solid rgba(255,255,255,0.07); color: #475569; font-size: 13px; line-height: 1.7; }
|
|
12835
|
+
.code-block-inner { display: flex; }
|
|
12836
|
+
.token-keyword { color: #c084fc; }
|
|
12837
|
+
.token-string { color: #86efac; }
|
|
12838
|
+
.token-comment { color: #475569; font-style: italic; }
|
|
12839
|
+
.token-number { color: #fb923c; }
|
|
12840
|
+
.token-fn { color: #60a5fa; }
|
|
12841
|
+
.token-tag { color: #f87171; }
|
|
12842
|
+
.token-attr { color: #fbbf24; }
|
|
12843
|
+
|
|
12714
12844
|
|
|
12715
12845
|
/* ── Dropdown ── */
|
|
12716
12846
|
.dropdown { position: relative; display: inline-block; }
|
|
@@ -13066,3 +13196,126 @@
|
|
|
13066
13196
|
@container (min-width: 800px) { .cq-lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); } }
|
|
13067
13197
|
.container-query { container-type: inline-size; }
|
|
13068
13198
|
.container-query-size { container-type: size; }
|
|
13199
|
+
|
|
13200
|
+
|
|
13201
|
+
/* ── Dark Theme CSS Tokens ── */
|
|
13202
|
+
:root {
|
|
13203
|
+
--color-surface: #0f172a;
|
|
13204
|
+
--color-card: #1e293b;
|
|
13205
|
+
--color-accent: #38bdf8;
|
|
13206
|
+
--color-accent-light: rgba(56,189,248,.13);
|
|
13207
|
+
--color-text: #f1f5f9;
|
|
13208
|
+
--color-muted: #64748b;
|
|
13209
|
+
--color-warning: #facc15;
|
|
13210
|
+
}
|
|
13211
|
+
|
|
13212
|
+
/* ── Semantic Color Utilities ── */
|
|
13213
|
+
.bg-surface { background-color: var(--color-surface); }
|
|
13214
|
+
.bg-accent-light { background-color: var(--color-accent-light); }
|
|
13215
|
+
.text-accent { color: var(--color-accent); }
|
|
13216
|
+
.text-primary { color: var(--color-text); }
|
|
13217
|
+
.text-muted { color: var(--color-muted); }
|
|
13218
|
+
|
|
13219
|
+
/* ── Badge Color Variants ── */
|
|
13220
|
+
.badge-green { background-color: rgba(22,163,74,.13); color: #4ade80; }
|
|
13221
|
+
.badge-blue { background-color: rgba(37,99,235,.13); color: #60a5fa; }
|
|
13222
|
+
.badge-yellow { background-color: rgba(202,138,4,.13); color: #facc15; }
|
|
13223
|
+
.badge-red { background-color: rgba(220,38,38,.13); color: #f87171; }
|
|
13224
|
+
|
|
13225
|
+
/* ── Named Height Utilities ── */
|
|
13226
|
+
.h-xs { height: 24px; }
|
|
13227
|
+
.h-sm { height: 48px; }
|
|
13228
|
+
.h-md { height: 96px; }
|
|
13229
|
+
.h-lg { height: 160px; }
|
|
13230
|
+
|
|
13231
|
+
/* ── Progress Bar Color Variants ── */
|
|
13232
|
+
.progress-bar-green { background-color: #22c55e; }
|
|
13233
|
+
.progress-bar-red { background-color: #ef4444; }
|
|
13234
|
+
.progress-bar-yellow { background-color: #eab308; }
|
|
13235
|
+
.progress-bar-purple { background-color: #8b5cf6; }
|
|
13236
|
+
.progress-bar-orange { background-color: #f97316; }
|
|
13237
|
+
|
|
13238
|
+
/* ── Slider (Range — dark-themed) ── */
|
|
13239
|
+
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--color-card, #1e293b); outline: none; cursor: pointer; }
|
|
13240
|
+
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent, #38bdf8); cursor: pointer; box-shadow: 0 0 0 3px rgba(56,189,248,.2); }
|
|
13241
|
+
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent, #38bdf8); cursor: pointer; border: none; }
|
|
13242
|
+
|
|
13243
|
+
/* ── Stat Card ── */
|
|
13244
|
+
.stat-card {
|
|
13245
|
+
background: var(--color-card, #1e293b);
|
|
13246
|
+
border-radius: 8px;
|
|
13247
|
+
padding: 12px;
|
|
13248
|
+
flex: 1;
|
|
13249
|
+
display: flex;
|
|
13250
|
+
flex-direction: column;
|
|
13251
|
+
align-items: center;
|
|
13252
|
+
gap: 4px;
|
|
13253
|
+
}
|
|
13254
|
+
|
|
13255
|
+
/* ── Button Icon ── */
|
|
13256
|
+
.btn-icon {
|
|
13257
|
+
width: 44px;
|
|
13258
|
+
height: 44px;
|
|
13259
|
+
border-radius: 9999px;
|
|
13260
|
+
display: inline-flex;
|
|
13261
|
+
align-items: center;
|
|
13262
|
+
justify-content: center;
|
|
13263
|
+
background: var(--color-accent-light, rgba(56,189,248,.13));
|
|
13264
|
+
border: none;
|
|
13265
|
+
cursor: pointer;
|
|
13266
|
+
transition: opacity 0.2s;
|
|
13267
|
+
}
|
|
13268
|
+
.btn-icon:hover { opacity: 0.8; }
|
|
13269
|
+
|
|
13270
|
+
/* ── Input Text (dark-theme) ── */
|
|
13271
|
+
.input-text {
|
|
13272
|
+
flex: 1;
|
|
13273
|
+
width: 100%;
|
|
13274
|
+
background: var(--color-surface, #0f172a);
|
|
13275
|
+
border-radius: 8px;
|
|
13276
|
+
padding: 10px 14px;
|
|
13277
|
+
color: var(--color-text, #f1f5f9);
|
|
13278
|
+
font-size: 15px;
|
|
13279
|
+
min-height: 44px;
|
|
13280
|
+
border: 1px solid #334155;
|
|
13281
|
+
outline: none;
|
|
13282
|
+
}
|
|
13283
|
+
.input-text:focus { border-color: var(--color-accent, #38bdf8); }
|
|
13284
|
+
|
|
13285
|
+
/* ── Chat Bubbles ── */
|
|
13286
|
+
.chat-bubble-user {
|
|
13287
|
+
align-self: flex-end;
|
|
13288
|
+
background: var(--color-accent-light, rgba(56,189,248,.13));
|
|
13289
|
+
border-radius: 16px 16px 4px 16px;
|
|
13290
|
+
padding: 10px 14px;
|
|
13291
|
+
max-width: 78%;
|
|
13292
|
+
color: var(--color-text, #f1f5f9);
|
|
13293
|
+
}
|
|
13294
|
+
.chat-bubble-ai {
|
|
13295
|
+
align-self: flex-start;
|
|
13296
|
+
background: var(--color-card, #1e293b);
|
|
13297
|
+
border-radius: 16px 16px 16px 4px;
|
|
13298
|
+
padding: 10px 14px;
|
|
13299
|
+
max-width: 78%;
|
|
13300
|
+
color: var(--color-text, #f1f5f9);
|
|
13301
|
+
}
|
|
13302
|
+
|
|
13303
|
+
/* ── Typing Indicator ── */
|
|
13304
|
+
.typing-indicator { display: flex; gap: 4px; padding: 10px; align-self: flex-start; }
|
|
13305
|
+
.typing-indicator span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-muted, #64748b); animation: santy-blink 1.2s ease-in-out infinite; }
|
|
13306
|
+
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
|
|
13307
|
+
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
|
|
13308
|
+
@keyframes santy-blink { 0%, 80%, 100% { opacity: 0; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
|
|
13309
|
+
|
|
13310
|
+
/* ── Calorie Ring (SVG ring chart wrapper) ── */
|
|
13311
|
+
.calorie-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
|
|
13312
|
+
|
|
13313
|
+
/* ── Scan Overlay ── */
|
|
13314
|
+
.scan-overlay { position: absolute; border: 2px solid var(--color-accent, #38bdf8); border-radius: 12px; overflow: hidden; }
|
|
13315
|
+
|
|
13316
|
+
/* ── Scan Line Animated ── */
|
|
13317
|
+
.scan-line-animated { position: absolute; left: 0; right: 0; height: 2px; background: var(--color-accent, #38bdf8); animation: santy-scan-sweep 1.8s ease-in-out infinite alternate; }
|
|
13318
|
+
@keyframes santy-scan-sweep { from { top: 0%; } to { top: 100%; } }
|
|
13319
|
+
|
|
13320
|
+
/* ── Bar Chart Wrapper ── */
|
|
13321
|
+
.bar-chart-wrapper { background: var(--color-card, #1e293b); border-radius: 12px; padding: 16px; overflow: hidden; }
|