@tulipfarm/sprout 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +183 -2
- package/dist/components/accordion.d.ts +28 -0
- package/dist/components/accordion.js +26 -0
- package/dist/components/alert-dialog.d.ts +60 -0
- package/dist/components/alert-dialog.js +69 -0
- package/dist/components/alert.d.ts +30 -0
- package/dist/components/alert.js +35 -0
- package/dist/components/aspect-ratio.d.ts +7 -0
- package/dist/components/aspect-ratio.js +6 -0
- package/dist/components/attachment.d.ts +118 -0
- package/dist/components/attachment.js +285 -0
- package/dist/components/avatar.d.ts +32 -0
- package/dist/components/avatar.js +73 -0
- package/dist/components/badge.d.ts +21 -0
- package/dist/components/badge.js +27 -0
- package/dist/components/brand-icon.d.ts +28 -0
- package/dist/components/brand-icon.js +82 -0
- package/dist/components/breadcrumb.d.ts +29 -0
- package/dist/components/breadcrumb.js +44 -0
- package/dist/components/button-group.d.ts +28 -0
- package/dist/components/button-group.js +36 -0
- package/dist/components/button.d.ts +79 -0
- package/dist/components/button.js +93 -0
- package/dist/components/calendar.d.ts +27 -0
- package/dist/components/calendar.js +107 -0
- package/dist/components/canvas.d.ts +78 -0
- package/dist/components/canvas.js +180 -0
- package/dist/components/card.d.ts +43 -0
- package/dist/components/card.js +42 -0
- package/dist/components/carousel.d.ts +57 -0
- package/dist/components/carousel.js +422 -0
- package/dist/components/chart.d.ts +112 -0
- package/dist/components/chart.js +172 -0
- package/dist/components/chat-confirmation.d.ts +42 -0
- package/dist/components/chat-confirmation.js +62 -0
- package/dist/components/chat-input.d.ts +94 -0
- package/dist/components/chat-input.js +279 -0
- package/dist/components/chat-plan.d.ts +21 -0
- package/dist/components/chat-plan.js +35 -0
- package/dist/components/chat-sources.d.ts +64 -0
- package/dist/components/chat-sources.js +66 -0
- package/dist/components/checkbox.d.ts +16 -0
- package/dist/components/checkbox.js +17 -0
- package/dist/components/choice-list.d.ts +53 -0
- package/dist/components/choice-list.js +36 -0
- package/dist/components/code-block.d.ts +35 -0
- package/dist/components/code-block.js +64 -0
- package/dist/components/collapsible.d.ts +24 -0
- package/dist/components/collapsible.js +27 -0
- package/dist/components/combobox.d.ts +95 -0
- package/dist/components/combobox.js +106 -0
- package/dist/components/command.d.ts +94 -0
- package/dist/components/command.js +414 -0
- package/dist/components/context-menu.d.ts +57 -0
- package/dist/components/context-menu.js +60 -0
- package/dist/components/dialog.d.ts +60 -0
- package/dist/components/dialog.js +79 -0
- package/dist/components/direction.d.ts +6 -0
- package/dist/components/direction.js +6 -0
- package/dist/components/dropdown-menu.d.ts +62 -0
- package/dist/components/dropdown-menu.js +59 -0
- package/dist/components/field.d.ts +117 -0
- package/dist/components/field.js +150 -0
- package/dist/components/file-explorer.d.ts +27 -0
- package/dist/components/file-explorer.js +300 -0
- package/dist/components/file-viewer.d.ts +137 -0
- package/dist/components/file-viewer.js +400 -0
- package/dist/components/form.d.ts +87 -0
- package/dist/components/form.js +55 -0
- package/dist/components/glass-banner.d.ts +27 -0
- package/dist/components/glass-banner.js +116 -0
- package/dist/components/gradient-banner.d.ts +37 -0
- package/dist/components/gradient-banner.js +43 -0
- package/dist/components/hover-card.d.ts +27 -0
- package/dist/components/hover-card.js +26 -0
- package/dist/components/input-group.d.ts +68 -0
- package/dist/components/input-group.js +88 -0
- package/dist/components/input-otp.d.ts +38 -0
- package/dist/components/input-otp.js +43 -0
- package/dist/components/input.d.ts +16 -0
- package/dist/components/input.js +18 -0
- package/dist/components/kbd.d.ts +12 -0
- package/dist/components/kbd.js +11 -0
- package/dist/components/label.d.ts +8 -0
- package/dist/components/label.js +10 -0
- package/dist/components/mention-list.d.ts +54 -0
- package/dist/components/mention-list.js +31 -0
- package/dist/components/menubar.d.ts +64 -0
- package/dist/components/menubar.js +68 -0
- package/dist/components/message-actions.d.ts +34 -0
- package/dist/components/message-actions.js +68 -0
- package/dist/components/message-response.d.ts +20 -0
- package/dist/components/message-response.js +46 -0
- package/dist/components/message-scroller.d.ts +71 -0
- package/dist/components/message-scroller.js +217 -0
- package/dist/components/message.d.ts +49 -0
- package/dist/components/message.js +59 -0
- package/dist/components/navigation-menu.d.ts +45 -0
- package/dist/components/navigation-menu.js +54 -0
- package/dist/components/notice-banner.d.ts +14 -0
- package/dist/components/notice-banner.js +11 -0
- package/dist/components/page-content.d.ts +7 -0
- package/dist/components/page-content.js +9 -0
- package/dist/components/page-header.d.ts +37 -0
- package/dist/components/page-header.js +53 -0
- package/dist/components/pagination.d.ts +29 -0
- package/dist/components/pagination.js +29 -0
- package/dist/components/plan-outline.d.ts +60 -0
- package/dist/components/plan-outline.js +108 -0
- package/dist/components/popover.d.ts +34 -0
- package/dist/components/popover.js +35 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +35 -0
- package/dist/components/prompt-list.d.ts +23 -0
- package/dist/components/prompt-list.js +11 -0
- package/dist/components/questionnaire.d.ts +148 -0
- package/dist/components/questionnaire.js +1002 -0
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/radio-group.js +21 -0
- package/dist/components/reasoning-effort.d.ts +24 -0
- package/dist/components/reasoning-effort.js +269 -0
- package/dist/components/resizable.d.ts +67 -0
- package/dist/components/resizable.js +536 -0
- package/dist/components/result-card.d.ts +58 -0
- package/dist/components/result-card.js +88 -0
- package/dist/components/review-card.d.ts +62 -0
- package/dist/components/review-card.js +49 -0
- package/dist/components/rich-text-editor.d.ts +51 -0
- package/dist/components/rich-text-editor.js +248 -0
- package/dist/components/schema-diagram.d.ts +52 -0
- package/dist/components/schema-diagram.js +226 -0
- package/dist/components/scroll-area.d.ts +22 -0
- package/dist/components/scroll-area.js +19 -0
- package/dist/components/search-dialog.d.ts +103 -0
- package/dist/components/search-dialog.js +65 -0
- package/dist/components/search-field.d.ts +17 -0
- package/dist/components/search-field.js +27 -0
- package/dist/components/select.d.ts +57 -0
- package/dist/components/select.js +57 -0
- package/dist/components/selection-slot.d.ts +18 -0
- package/dist/components/selection-slot.js +53 -0
- package/dist/components/separator.d.ts +48 -0
- package/dist/components/separator.js +54 -0
- package/dist/components/settings-list.d.ts +26 -0
- package/dist/components/settings-list.js +17 -0
- package/dist/components/sheet.d.ts +70 -0
- package/dist/components/sheet.js +77 -0
- package/dist/components/sidebar.d.ts +70 -0
- package/dist/components/sidebar.js +187 -0
- package/dist/components/skeleton.d.ts +31 -0
- package/dist/components/skeleton.js +32 -0
- package/dist/components/slider.d.ts +17 -0
- package/dist/components/slider.js +24 -0
- package/dist/components/spinner.d.ts +37 -0
- package/dist/components/spinner.js +43 -0
- package/dist/components/state-panel-samples.d.ts +25 -0
- package/dist/components/state-panel-samples.js +423 -0
- package/dist/components/state-panel.d.ts +35 -0
- package/dist/components/state-panel.js +29 -0
- package/dist/components/state-sample.d.ts +63 -0
- package/dist/components/state-sample.js +42 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.js +14 -0
- package/dist/components/table-nuqs.d.ts +16 -0
- package/dist/components/table-nuqs.js +59 -0
- package/dist/components/table.d.ts +120 -0
- package/dist/components/table.js +663 -0
- package/dist/components/tabs.d.ts +37 -0
- package/dist/components/tabs.js +36 -0
- package/dist/components/textarea.d.ts +18 -0
- package/dist/components/textarea.js +19 -0
- package/dist/components/toast.d.ts +45 -0
- package/dist/components/toast.js +83 -0
- package/dist/components/toggle-group.d.ts +30 -0
- package/dist/components/toggle-group.js +39 -0
- package/dist/components/toggle.d.ts +27 -0
- package/dist/components/toggle.js +21 -0
- package/dist/components/tool-activity.d.ts +79 -0
- package/dist/components/tool-activity.js +226 -0
- package/dist/components/toolbar-status.d.ts +21 -0
- package/dist/components/toolbar-status.js +14 -0
- package/dist/components/tooltip.d.ts +31 -0
- package/dist/components/tooltip.js +99 -0
- package/dist/components/typed-text.d.ts +17 -0
- package/dist/components/typed-text.js +56 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +90 -0
- package/dist/internal/brand-glyphs.d.ts +370 -0
- package/dist/internal/brand-glyphs.js +262 -0
- package/dist/internal/classes.d.ts +3 -0
- package/dist/internal/classes.js +20 -0
- package/dist/internal/code-tokens.d.ts +4 -0
- package/dist/internal/code-tokens.js +34 -0
- package/dist/internal/fieldset.d.ts +6 -0
- package/dist/internal/fieldset.js +38 -0
- package/dist/internal/file-kind.d.ts +4 -0
- package/dist/internal/file-kind.js +62 -0
- package/dist/internal/languages.d.ts +7 -0
- package/dist/internal/languages.js +1010 -0
- package/dist/internal/message-scroller.d.ts +102 -0
- package/dist/internal/message-scroller.js +637 -0
- package/dist/internal/pressable.d.ts +2 -0
- package/dist/internal/pressable.js +29 -0
- package/dist/internal/syntax.d.ts +14 -0
- package/dist/internal/syntax.js +137 -0
- package/dist/styles/accordion.css +102 -0
- package/dist/styles/alert-dialog.css +198 -0
- package/dist/styles/alert.css +149 -0
- package/dist/styles/aspect-ratio.css +8 -0
- package/dist/styles/attachment.css +700 -0
- package/dist/styles/avatar.css +186 -0
- package/dist/styles/badge.css +178 -0
- package/dist/styles/brand-icon.css +104 -0
- package/dist/styles/breadcrumb.css +121 -0
- package/dist/styles/button-group.css +113 -0
- package/dist/styles/button.css +380 -0
- package/dist/styles/calendar.css +295 -0
- package/dist/styles/canvas.css +313 -0
- package/dist/styles/card.css +146 -0
- package/dist/styles/carousel.css +107 -0
- package/dist/styles/chart.css +227 -0
- package/dist/styles/chat-confirmation.css +29 -0
- package/dist/styles/chat-input.css +240 -0
- package/dist/styles/chat-plan.css +109 -0
- package/dist/styles/chat-sources.css +191 -0
- package/dist/styles/checkbox.css +122 -0
- package/dist/styles/choice-list.css +343 -0
- package/dist/styles/code-block.css +211 -0
- package/dist/styles/collapsible.css +72 -0
- package/dist/styles/combobox.css +347 -0
- package/dist/styles/command.css +233 -0
- package/dist/styles/context-menu.css +151 -0
- package/dist/styles/dialog.css +237 -0
- package/dist/styles/dropdown-menu.css +150 -0
- package/dist/styles/field.css +340 -0
- package/dist/styles/file-explorer.css +517 -0
- package/dist/styles/file-viewer.css +375 -0
- package/dist/styles/form.css +155 -0
- package/dist/styles/glass-banner.css +308 -0
- package/dist/styles/gradient-banner.css +256 -0
- package/dist/styles/hover-card.css +95 -0
- package/dist/styles/index.css +268 -0
- package/dist/styles/input-group.css +285 -0
- package/dist/styles/input-otp.css +138 -0
- package/dist/styles/input.css +98 -0
- package/dist/styles/kbd.css +59 -0
- package/dist/styles/label.css +89 -0
- package/dist/styles/mention-list.css +166 -0
- package/dist/styles/menubar.css +226 -0
- package/dist/styles/message-actions.css +83 -0
- package/dist/styles/message-response.css +176 -0
- package/dist/styles/message-scroller.css +136 -0
- package/dist/styles/message.css +310 -0
- package/dist/styles/navigation-menu.css +291 -0
- package/dist/styles/notice-banner.css +68 -0
- package/dist/styles/page-content.css +21 -0
- package/dist/styles/page-header.css +156 -0
- package/dist/styles/pagination.css +72 -0
- package/dist/styles/plan-outline.css +393 -0
- package/dist/styles/popover.css +140 -0
- package/dist/styles/progress.css +93 -0
- package/dist/styles/prompt-list.css +165 -0
- package/dist/styles/questionnaire.css +308 -0
- package/dist/styles/radio-group.css +119 -0
- package/dist/styles/reasoning-effort.css +157 -0
- package/dist/styles/resizable.css +108 -0
- package/dist/styles/result-card.css +215 -0
- package/dist/styles/review-card.css +235 -0
- package/dist/styles/rich-text-editor.css +169 -0
- package/dist/styles/schema-diagram.css +419 -0
- package/dist/styles/scroll-area.css +77 -0
- package/dist/styles/search-dialog.css +280 -0
- package/dist/styles/search-field.css +17 -0
- package/dist/styles/select.css +285 -0
- package/dist/styles/selection-slot.css +31 -0
- package/dist/styles/separator.css +206 -0
- package/dist/styles/settings-list.css +81 -0
- package/dist/styles/sheet.css +361 -0
- package/dist/styles/sidebar.css +363 -0
- package/dist/styles/skeleton.css +80 -0
- package/dist/styles/slider.css +142 -0
- package/dist/styles/spinner.css +39 -0
- package/dist/styles/state-panel-samples.css +41 -0
- package/dist/styles/state-panel.css +173 -0
- package/dist/styles/state-sample.css +285 -0
- package/dist/styles/switch.css +128 -0
- package/dist/styles/table.css +604 -0
- package/dist/styles/tabs.css +223 -0
- package/dist/styles/textarea.css +77 -0
- package/dist/styles/themes/chatgpt.css +125 -0
- package/dist/styles/themes/claude.css +125 -0
- package/dist/styles/themes/cloudflare.css +125 -0
- package/dist/styles/themes/discord.css +125 -0
- package/dist/styles/themes/github.css +125 -0
- package/dist/styles/themes/grok.css +125 -0
- package/dist/styles/themes/linear.css +126 -0
- package/dist/styles/themes/neutral.css +125 -0
- package/dist/styles/themes/notion.css +125 -0
- package/dist/styles/themes/perplexity.css +125 -0
- package/dist/styles/themes/raycast.css +125 -0
- package/dist/styles/themes/spotify.css +125 -0
- package/dist/styles/themes/stripe.css +125 -0
- package/dist/styles/themes/supabase.css +125 -0
- package/dist/styles/themes/tulipfarm.css +115 -0
- package/dist/styles/themes/vercel.css +126 -0
- package/dist/styles/toast.css +197 -0
- package/dist/styles/toggle-group.css +161 -0
- package/dist/styles/toggle.css +119 -0
- package/dist/styles/tool-activity.css +396 -0
- package/dist/styles/toolbar-status.css +52 -0
- package/dist/styles/tooltip.css +122 -0
- package/dist/styles/typed-text.css +17 -0
- package/package.json +452 -4
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
:root,
|
|
3
|
+
.light {
|
|
4
|
+
--sprout-file-paper: #ffffff;
|
|
5
|
+
--sprout-file-edge: #d4d4da;
|
|
6
|
+
--sprout-file-generic: #8e8f97;
|
|
7
|
+
--sprout-file-pdf: #e2463f;
|
|
8
|
+
--sprout-file-sheet: #1f8f4a;
|
|
9
|
+
--sprout-file-document: #2b67d1;
|
|
10
|
+
--sprout-file-slides: #d9622b;
|
|
11
|
+
--sprout-file-image: #a8d4f7;
|
|
12
|
+
--sprout-file-label: #ffffff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.dark {
|
|
16
|
+
--sprout-file-paper: #2a2b30;
|
|
17
|
+
--sprout-file-edge: #4a4b52;
|
|
18
|
+
--sprout-file-image: #4d7ea8;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (prefers-color-scheme: dark) {
|
|
22
|
+
:root:not(.light):not(.dark) {
|
|
23
|
+
--sprout-file-paper: #2a2b30;
|
|
24
|
+
--sprout-file-edge: #4a4b52;
|
|
25
|
+
--sprout-file-image: #4d7ea8;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@layer components {
|
|
31
|
+
/* Attachment */
|
|
32
|
+
.sprout-attachment {
|
|
33
|
+
position: relative;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
width: fit-content;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
border: 1px solid var(--sprout-line);
|
|
42
|
+
border-radius: 12px;
|
|
43
|
+
background: var(--sprout-surface);
|
|
44
|
+
color: var(--sprout-text);
|
|
45
|
+
font-family: inherit;
|
|
46
|
+
}
|
|
47
|
+
.sprout-attachment:has(> a, > button):hover {
|
|
48
|
+
background: color-mix(
|
|
49
|
+
in oklab,
|
|
50
|
+
var(--sprout-hover) 50%,
|
|
51
|
+
var(--sprout-surface)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
.sprout-attachment:has(> .sprout-attachment-trigger:focus-visible) {
|
|
55
|
+
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
56
|
+
outline-offset: 0;
|
|
57
|
+
}
|
|
58
|
+
.sprout-attachment[data-state="idle"] {
|
|
59
|
+
border-style: dashed;
|
|
60
|
+
}
|
|
61
|
+
.sprout-attachment[data-state="error"] {
|
|
62
|
+
border-color: color-mix(in oklab, var(--sprout-danger) 35%, transparent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.sprout-attachment-size-default {
|
|
66
|
+
gap: 8px;
|
|
67
|
+
font-size: var(--sprout-text-sm);
|
|
68
|
+
}
|
|
69
|
+
.sprout-attachment-size-default:has([data-slot="attachment-content"]) {
|
|
70
|
+
padding: 8px 10px;
|
|
71
|
+
}
|
|
72
|
+
.sprout-attachment-size-default:has([data-slot="attachment-media"]) {
|
|
73
|
+
padding: 8px;
|
|
74
|
+
}
|
|
75
|
+
.sprout-attachment-size-sm {
|
|
76
|
+
gap: 10px;
|
|
77
|
+
font-size: var(--sprout-text-xs);
|
|
78
|
+
}
|
|
79
|
+
.sprout-attachment-size-sm:has([data-slot="attachment-content"]) {
|
|
80
|
+
padding: 6px 8px;
|
|
81
|
+
}
|
|
82
|
+
.sprout-attachment-size-sm:has([data-slot="attachment-media"]) {
|
|
83
|
+
padding: 6px;
|
|
84
|
+
}
|
|
85
|
+
.sprout-attachment-size-xs {
|
|
86
|
+
gap: 6px;
|
|
87
|
+
border-radius: 8px;
|
|
88
|
+
font-size: var(--sprout-text-xs);
|
|
89
|
+
}
|
|
90
|
+
.sprout-attachment-size-xs:has([data-slot="attachment-content"]) {
|
|
91
|
+
padding: 4px 6px;
|
|
92
|
+
}
|
|
93
|
+
.sprout-attachment-size-xs:has([data-slot="attachment-media"]) {
|
|
94
|
+
padding: 4px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sprout-attachment-horizontal {
|
|
98
|
+
min-width: 10rem;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
.sprout-attachment-vertical {
|
|
102
|
+
width: 6rem;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
105
|
+
.sprout-attachment-vertical:has([data-slot="attachment-content"]) {
|
|
106
|
+
width: 7.5rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.sprout-attachment-media {
|
|
110
|
+
position: relative;
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-shrink: 0;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
width: 40px;
|
|
116
|
+
aspect-ratio: 1;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
border-radius: 8px;
|
|
119
|
+
background: var(--sprout-hover);
|
|
120
|
+
color: var(--sprout-text);
|
|
121
|
+
}
|
|
122
|
+
.sprout-attachment-size-sm .sprout-attachment-media {
|
|
123
|
+
width: 32px;
|
|
124
|
+
}
|
|
125
|
+
.sprout-attachment-size-xs .sprout-attachment-media {
|
|
126
|
+
width: 28px;
|
|
127
|
+
border-radius: 6px;
|
|
128
|
+
}
|
|
129
|
+
.sprout-attachment-vertical .sprout-attachment-media {
|
|
130
|
+
width: 100%;
|
|
131
|
+
}
|
|
132
|
+
.sprout-attachment[data-state="error"] .sprout-attachment-media {
|
|
133
|
+
background: var(--sprout-danger-subtle);
|
|
134
|
+
color: var(--sprout-danger);
|
|
135
|
+
}
|
|
136
|
+
.sprout-attachment-media svg {
|
|
137
|
+
pointer-events: none;
|
|
138
|
+
}
|
|
139
|
+
.sprout-attachment-media svg:not([class*="size-"]) {
|
|
140
|
+
width: 16px;
|
|
141
|
+
height: 16px;
|
|
142
|
+
}
|
|
143
|
+
.sprout-attachment-vertical
|
|
144
|
+
.sprout-attachment-media
|
|
145
|
+
svg:not([class*="size-"]),
|
|
146
|
+
.sprout-attachment-vertical .sprout-attachment-media > [data-slot="spinner"] {
|
|
147
|
+
width: 24px;
|
|
148
|
+
height: 24px;
|
|
149
|
+
}
|
|
150
|
+
.sprout-attachment-size-xs
|
|
151
|
+
.sprout-attachment-media
|
|
152
|
+
svg:not([class*="size-"]) {
|
|
153
|
+
width: 14px;
|
|
154
|
+
height: 14px;
|
|
155
|
+
}
|
|
156
|
+
.sprout-attachment-media[data-variant="image"] {
|
|
157
|
+
opacity: 0.6;
|
|
158
|
+
}
|
|
159
|
+
.sprout-attachment:is([data-state="done"], [data-state="idle"])
|
|
160
|
+
.sprout-attachment-media[data-variant="image"] {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
}
|
|
163
|
+
.sprout-attachment-media[data-variant="image"] > img {
|
|
164
|
+
width: 100%;
|
|
165
|
+
aspect-ratio: 1;
|
|
166
|
+
object-fit: cover;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.sprout-attachment-content {
|
|
170
|
+
flex: 1 1 0%;
|
|
171
|
+
max-width: 100%;
|
|
172
|
+
min-width: 0;
|
|
173
|
+
line-height: 1.25;
|
|
174
|
+
}
|
|
175
|
+
.sprout-attachment-vertical .sprout-attachment-content {
|
|
176
|
+
padding-inline: 4px;
|
|
177
|
+
}
|
|
178
|
+
.sprout-attachment-title {
|
|
179
|
+
display: block;
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
min-width: 0;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
text-overflow: ellipsis;
|
|
185
|
+
white-space: nowrap;
|
|
186
|
+
}
|
|
187
|
+
.sprout-attachment-description {
|
|
188
|
+
display: block;
|
|
189
|
+
max-width: 100%;
|
|
190
|
+
min-width: 0;
|
|
191
|
+
margin-top: 2px;
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
color: var(--sprout-muted);
|
|
194
|
+
font-size: var(--sprout-text-xs);
|
|
195
|
+
text-overflow: ellipsis;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
}
|
|
198
|
+
.sprout-attachment[data-state="error"] .sprout-attachment-description {
|
|
199
|
+
color: var(--sprout-danger);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.sprout-attachment-actions {
|
|
203
|
+
position: relative;
|
|
204
|
+
z-index: 2;
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-shrink: 0;
|
|
207
|
+
align-items: center;
|
|
208
|
+
}
|
|
209
|
+
.sprout-attachment-vertical .sprout-attachment-actions {
|
|
210
|
+
position: absolute;
|
|
211
|
+
top: 12px;
|
|
212
|
+
right: 12px;
|
|
213
|
+
gap: 4px;
|
|
214
|
+
}
|
|
215
|
+
.sprout-attachment-vertical .sprout-attachment-actions .sprout-button {
|
|
216
|
+
background: color-mix(in oklab, var(--sprout-surface) 88%, transparent);
|
|
217
|
+
}
|
|
218
|
+
.sprout-attachment-size-xs.sprout-attachment-vertical
|
|
219
|
+
.sprout-attachment-actions {
|
|
220
|
+
top: 6px;
|
|
221
|
+
right: 6px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.sprout-attachment-trigger {
|
|
225
|
+
position: absolute;
|
|
226
|
+
inset: 0;
|
|
227
|
+
z-index: 1;
|
|
228
|
+
margin: 0;
|
|
229
|
+
padding: 0;
|
|
230
|
+
border: 0;
|
|
231
|
+
border-radius: inherit;
|
|
232
|
+
background: transparent;
|
|
233
|
+
cursor: pointer;
|
|
234
|
+
outline: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* The name shimmers while the file uploads or processes. */
|
|
238
|
+
.sprout-attachment:is([data-state="uploading"], [data-state="processing"])
|
|
239
|
+
.sprout-attachment-title,
|
|
240
|
+
.sprout-file-attachment:is(
|
|
241
|
+
[data-state="uploading"],
|
|
242
|
+
[data-state="processing"]
|
|
243
|
+
)
|
|
244
|
+
.sprout-file-attachment-name {
|
|
245
|
+
color: var(--sprout-muted);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Groups */
|
|
249
|
+
.sprout-attachment-group {
|
|
250
|
+
min-width: 0;
|
|
251
|
+
}
|
|
252
|
+
.sprout-attachment-group-grid {
|
|
253
|
+
display: grid;
|
|
254
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
255
|
+
gap: 12px;
|
|
256
|
+
}
|
|
257
|
+
@media (min-width: 40rem) {
|
|
258
|
+
.sprout-attachment-group-grid {
|
|
259
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
.sprout-attachment-group-list {
|
|
263
|
+
display: flex;
|
|
264
|
+
flex-direction: column;
|
|
265
|
+
gap: 8px;
|
|
266
|
+
}
|
|
267
|
+
.sprout-attachment-group-inline {
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-wrap: wrap;
|
|
270
|
+
gap: 8px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.sprout-attachment-group-carousel {
|
|
274
|
+
--sprout-attachment-fade: var(--sprout-surface);
|
|
275
|
+
position: relative;
|
|
276
|
+
}
|
|
277
|
+
.sprout-attachment-carousel-viewport {
|
|
278
|
+
overflow-x: auto;
|
|
279
|
+
overflow-y: hidden;
|
|
280
|
+
overscroll-behavior-x: contain;
|
|
281
|
+
scrollbar-width: none;
|
|
282
|
+
scroll-padding-inline: 32px;
|
|
283
|
+
}
|
|
284
|
+
.sprout-attachment-carousel-viewport::-webkit-scrollbar {
|
|
285
|
+
display: none;
|
|
286
|
+
}
|
|
287
|
+
.sprout-attachment-carousel-track {
|
|
288
|
+
display: flex;
|
|
289
|
+
gap: 8px;
|
|
290
|
+
width: max-content;
|
|
291
|
+
padding: 4px 3px;
|
|
292
|
+
}
|
|
293
|
+
.sprout-attachment-carousel-item {
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
min-width: 0;
|
|
296
|
+
}
|
|
297
|
+
.sprout-attachment-carousel-edge {
|
|
298
|
+
position: absolute;
|
|
299
|
+
inset-block: 0;
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
pointer-events: none;
|
|
303
|
+
}
|
|
304
|
+
.sprout-attachment-carousel-edge[data-side="start"] {
|
|
305
|
+
left: 0;
|
|
306
|
+
padding-right: 32px;
|
|
307
|
+
background: linear-gradient(
|
|
308
|
+
to right,
|
|
309
|
+
var(--sprout-attachment-fade),
|
|
310
|
+
transparent
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
.sprout-attachment-carousel-edge[data-side="end"] {
|
|
314
|
+
right: 0;
|
|
315
|
+
padding-left: 32px;
|
|
316
|
+
background: linear-gradient(
|
|
317
|
+
to left,
|
|
318
|
+
var(--sprout-attachment-fade),
|
|
319
|
+
transparent
|
|
320
|
+
);
|
|
321
|
+
}
|
|
322
|
+
.sprout-attachment-carousel-arrow {
|
|
323
|
+
opacity: 0;
|
|
324
|
+
pointer-events: auto;
|
|
325
|
+
}
|
|
326
|
+
.sprout-attachment-group-carousel:hover .sprout-attachment-carousel-arrow,
|
|
327
|
+
.sprout-attachment-group-carousel:focus-within
|
|
328
|
+
.sprout-attachment-carousel-arrow,
|
|
329
|
+
.sprout-attachment-carousel-arrow:focus-visible {
|
|
330
|
+
opacity: 1;
|
|
331
|
+
}
|
|
332
|
+
@media (pointer: coarse) {
|
|
333
|
+
.sprout-attachment-carousel-arrow {
|
|
334
|
+
opacity: 1;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* File type icon */
|
|
339
|
+
.sprout-file-type-icon {
|
|
340
|
+
flex-shrink: 0;
|
|
341
|
+
}
|
|
342
|
+
.sprout-file-type-icon-size-sm {
|
|
343
|
+
width: 20px;
|
|
344
|
+
height: 24px;
|
|
345
|
+
}
|
|
346
|
+
.sprout-file-type-icon-size-lg {
|
|
347
|
+
width: 30px;
|
|
348
|
+
height: 36px;
|
|
349
|
+
}
|
|
350
|
+
.sprout-file-type-icon-paper {
|
|
351
|
+
fill: var(--sprout-file-paper);
|
|
352
|
+
stroke: var(--sprout-file-edge);
|
|
353
|
+
}
|
|
354
|
+
.sprout-file-type-icon-fold {
|
|
355
|
+
fill: none;
|
|
356
|
+
stroke: var(--sprout-file-edge);
|
|
357
|
+
}
|
|
358
|
+
.sprout-file-type-icon-lines {
|
|
359
|
+
stroke: var(--sprout-file-edge);
|
|
360
|
+
}
|
|
361
|
+
.sprout-file-type-icon-badge {
|
|
362
|
+
fill: var(--sprout-file-generic);
|
|
363
|
+
}
|
|
364
|
+
.sprout-file-type-icon[data-kind="pdf"] .sprout-file-type-icon-badge {
|
|
365
|
+
fill: var(--sprout-file-pdf);
|
|
366
|
+
}
|
|
367
|
+
.sprout-file-type-icon[data-kind="sheet"] .sprout-file-type-icon-badge {
|
|
368
|
+
fill: var(--sprout-file-sheet);
|
|
369
|
+
}
|
|
370
|
+
.sprout-file-type-icon:is([data-kind="document"], [data-kind="google"])
|
|
371
|
+
.sprout-file-type-icon-badge {
|
|
372
|
+
fill: var(--sprout-file-document);
|
|
373
|
+
}
|
|
374
|
+
.sprout-file-type-icon[data-kind="slides"] .sprout-file-type-icon-badge {
|
|
375
|
+
fill: var(--sprout-file-slides);
|
|
376
|
+
}
|
|
377
|
+
.sprout-file-type-icon[data-kind="image"] .sprout-file-type-icon-badge {
|
|
378
|
+
fill: var(--sprout-file-image);
|
|
379
|
+
}
|
|
380
|
+
.sprout-file-type-icon-label {
|
|
381
|
+
fill: var(--sprout-file-label);
|
|
382
|
+
font-family: inherit;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* File attachment */
|
|
386
|
+
.sprout-file-attachment {
|
|
387
|
+
position: relative;
|
|
388
|
+
box-sizing: border-box;
|
|
389
|
+
min-width: 0;
|
|
390
|
+
border: 1px solid var(--sprout-line);
|
|
391
|
+
border-radius: 12px;
|
|
392
|
+
background: var(--sprout-surface);
|
|
393
|
+
color: var(--sprout-text);
|
|
394
|
+
font-family: inherit;
|
|
395
|
+
}
|
|
396
|
+
.sprout-file-attachment[data-state="error"] {
|
|
397
|
+
border-color: var(--sprout-danger);
|
|
398
|
+
}
|
|
399
|
+
.sprout-file-attachment[data-variant="list"] {
|
|
400
|
+
display: flex;
|
|
401
|
+
align-items: center;
|
|
402
|
+
gap: 8px;
|
|
403
|
+
padding: 8px;
|
|
404
|
+
}
|
|
405
|
+
.sprout-file-attachment[data-variant="inline"] {
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
gap: 4px;
|
|
409
|
+
max-width: 100%;
|
|
410
|
+
padding-left: 8px;
|
|
411
|
+
}
|
|
412
|
+
.sprout-file-attachment[data-variant="inline"]:not(
|
|
413
|
+
:has(.sprout-file-attachment-actions)
|
|
414
|
+
) {
|
|
415
|
+
padding-right: 10px;
|
|
416
|
+
}
|
|
417
|
+
.sprout-file-attachment[data-variant="grid"] {
|
|
418
|
+
display: flex;
|
|
419
|
+
flex-direction: column;
|
|
420
|
+
}
|
|
421
|
+
.sprout-file-attachment[data-variant="chip"] {
|
|
422
|
+
display: flex;
|
|
423
|
+
flex-shrink: 0;
|
|
424
|
+
align-items: center;
|
|
425
|
+
gap: 4px;
|
|
426
|
+
height: 36px;
|
|
427
|
+
max-width: 12rem;
|
|
428
|
+
padding: 0 12px 0 10px;
|
|
429
|
+
box-shadow: var(--sprout-shadow-control);
|
|
430
|
+
}
|
|
431
|
+
.sprout-file-attachment[data-variant="chip"][data-removable] {
|
|
432
|
+
padding-right: 4px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.sprout-file-attachment-open {
|
|
436
|
+
display: block;
|
|
437
|
+
flex: 1 1 0%;
|
|
438
|
+
min-width: 0;
|
|
439
|
+
margin: 0;
|
|
440
|
+
padding: 4px 0;
|
|
441
|
+
border: 0;
|
|
442
|
+
border-radius: 6px;
|
|
443
|
+
background: transparent;
|
|
444
|
+
color: inherit;
|
|
445
|
+
font: inherit;
|
|
446
|
+
text-align: left;
|
|
447
|
+
}
|
|
448
|
+
button.sprout-file-attachment-open {
|
|
449
|
+
cursor: pointer;
|
|
450
|
+
}
|
|
451
|
+
button.sprout-file-attachment-open:disabled {
|
|
452
|
+
cursor: default;
|
|
453
|
+
}
|
|
454
|
+
.sprout-file-attachment[data-variant="grid"] .sprout-file-attachment-open {
|
|
455
|
+
padding: 12px;
|
|
456
|
+
}
|
|
457
|
+
.sprout-file-attachment[data-variant="chip"] .sprout-file-attachment-open {
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
gap: 8px;
|
|
461
|
+
padding: 0;
|
|
462
|
+
}
|
|
463
|
+
.sprout-file-attachment-peek {
|
|
464
|
+
width: 22rem;
|
|
465
|
+
padding: 4px;
|
|
466
|
+
}
|
|
467
|
+
.sprout-file-attachment-open:focus-visible,
|
|
468
|
+
.sprout-file-attachment-preview:focus-visible {
|
|
469
|
+
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
470
|
+
outline-offset: 0;
|
|
471
|
+
}
|
|
472
|
+
.sprout-file-attachment:has(
|
|
473
|
+
button.sprout-file-attachment-open:not(:disabled)
|
|
474
|
+
):hover {
|
|
475
|
+
background: color-mix(
|
|
476
|
+
in oklab,
|
|
477
|
+
var(--sprout-hover) 50%,
|
|
478
|
+
var(--sprout-surface)
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.sprout-file-attachment-name {
|
|
483
|
+
display: block;
|
|
484
|
+
min-width: 0;
|
|
485
|
+
overflow: hidden;
|
|
486
|
+
font-size: var(--sprout-text-sm);
|
|
487
|
+
font-weight: 500;
|
|
488
|
+
line-height: 1.25rem;
|
|
489
|
+
text-overflow: ellipsis;
|
|
490
|
+
white-space: nowrap;
|
|
491
|
+
}
|
|
492
|
+
.sprout-file-attachment[data-variant="chip"] .sprout-file-attachment-name {
|
|
493
|
+
font-size: var(--sprout-text-xs);
|
|
494
|
+
line-height: 1rem;
|
|
495
|
+
}
|
|
496
|
+
.sprout-file-attachment-status {
|
|
497
|
+
display: flex;
|
|
498
|
+
align-items: center;
|
|
499
|
+
gap: 4px;
|
|
500
|
+
margin-top: 2px;
|
|
501
|
+
color: var(--sprout-muted);
|
|
502
|
+
font-size: var(--sprout-text-xs);
|
|
503
|
+
line-height: 1rem;
|
|
504
|
+
}
|
|
505
|
+
.sprout-file-attachment[data-state="error"] .sprout-file-attachment-status,
|
|
506
|
+
.sprout-file-attachment-failed {
|
|
507
|
+
color: var(--sprout-danger);
|
|
508
|
+
}
|
|
509
|
+
.sprout-file-attachment-failed {
|
|
510
|
+
flex-shrink: 0;
|
|
511
|
+
font-size: var(--sprout-text-xs);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.sprout-file-attachment-media {
|
|
515
|
+
display: flex;
|
|
516
|
+
flex-shrink: 0;
|
|
517
|
+
color: var(--sprout-muted);
|
|
518
|
+
}
|
|
519
|
+
.sprout-file-attachment[data-variant="list"] .sprout-file-attachment-media {
|
|
520
|
+
align-items: center;
|
|
521
|
+
justify-content: center;
|
|
522
|
+
width: 40px;
|
|
523
|
+
height: 40px;
|
|
524
|
+
overflow: hidden;
|
|
525
|
+
border-radius: 6px;
|
|
526
|
+
background: var(--sprout-hover);
|
|
527
|
+
}
|
|
528
|
+
.sprout-file-attachment-media > .sprout-attachment-image {
|
|
529
|
+
width: 100%;
|
|
530
|
+
height: 100%;
|
|
531
|
+
object-fit: cover;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.sprout-file-attachment-preview {
|
|
535
|
+
display: flex;
|
|
536
|
+
align-items: center;
|
|
537
|
+
justify-content: center;
|
|
538
|
+
width: 100%;
|
|
539
|
+
aspect-ratio: 16 / 9;
|
|
540
|
+
margin: 0;
|
|
541
|
+
padding: 0;
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
border: 0;
|
|
544
|
+
border-radius: 11px 11px 0 0;
|
|
545
|
+
background: var(--sprout-hover);
|
|
546
|
+
color: var(--sprout-muted);
|
|
547
|
+
font: inherit;
|
|
548
|
+
}
|
|
549
|
+
button.sprout-file-attachment-preview {
|
|
550
|
+
cursor: pointer;
|
|
551
|
+
}
|
|
552
|
+
.sprout-file-attachment-preview > .sprout-attachment-image {
|
|
553
|
+
width: 100%;
|
|
554
|
+
height: 100%;
|
|
555
|
+
object-fit: cover;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.sprout-file-attachment-thumb {
|
|
559
|
+
display: flex;
|
|
560
|
+
flex-shrink: 0;
|
|
561
|
+
align-items: center;
|
|
562
|
+
justify-content: center;
|
|
563
|
+
width: 22px;
|
|
564
|
+
height: 22px;
|
|
565
|
+
overflow: hidden;
|
|
566
|
+
border-radius: 6px;
|
|
567
|
+
background: var(--sprout-file-image);
|
|
568
|
+
}
|
|
569
|
+
.sprout-file-attachment-thumb > .sprout-attachment-image {
|
|
570
|
+
width: 100%;
|
|
571
|
+
height: 100%;
|
|
572
|
+
object-fit: cover;
|
|
573
|
+
}
|
|
574
|
+
.sprout-file-attachment-thumb > .sprout-attachment-image-failed {
|
|
575
|
+
padding: 0;
|
|
576
|
+
font-size: 0;
|
|
577
|
+
}
|
|
578
|
+
.sprout-file-attachment-thumb > .sprout-attachment-image-failed svg {
|
|
579
|
+
width: 12px;
|
|
580
|
+
height: 12px;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.sprout-file-attachment-actions {
|
|
584
|
+
display: flex;
|
|
585
|
+
flex-shrink: 0;
|
|
586
|
+
align-items: center;
|
|
587
|
+
}
|
|
588
|
+
.sprout-file-attachment[data-variant="grid"] .sprout-file-attachment-actions {
|
|
589
|
+
position: absolute;
|
|
590
|
+
top: 4px;
|
|
591
|
+
right: 4px;
|
|
592
|
+
border-radius: 6px;
|
|
593
|
+
background: var(--sprout-surface);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.sprout-attachment-image-failed {
|
|
597
|
+
display: flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
gap: 8px;
|
|
600
|
+
padding: 8px;
|
|
601
|
+
color: var(--sprout-muted);
|
|
602
|
+
font-size: var(--sprout-text-xs);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/* Dropzone */
|
|
606
|
+
.sprout-attachment-dropzone {
|
|
607
|
+
box-sizing: border-box;
|
|
608
|
+
padding: 20px;
|
|
609
|
+
border: 1px dashed var(--sprout-input);
|
|
610
|
+
border-radius: 12px;
|
|
611
|
+
background: color-mix(
|
|
612
|
+
in oklab,
|
|
613
|
+
var(--sprout-hover) 30%,
|
|
614
|
+
var(--sprout-surface)
|
|
615
|
+
);
|
|
616
|
+
color: var(--sprout-text);
|
|
617
|
+
text-align: center;
|
|
618
|
+
}
|
|
619
|
+
.sprout-attachment-dropzone[data-dragging] {
|
|
620
|
+
border-color: var(--sprout-focus);
|
|
621
|
+
background: var(--sprout-primary-subtle);
|
|
622
|
+
}
|
|
623
|
+
.sprout-attachment-dropzone[data-disabled] {
|
|
624
|
+
cursor: not-allowed;
|
|
625
|
+
}
|
|
626
|
+
.sprout-attachment-dropzone[data-disabled] .sprout-attachment-dropzone-icon {
|
|
627
|
+
opacity: 0.5;
|
|
628
|
+
}
|
|
629
|
+
.sprout-attachment-dropzone-icon {
|
|
630
|
+
display: block;
|
|
631
|
+
margin: 0 auto 8px;
|
|
632
|
+
color: var(--sprout-muted);
|
|
633
|
+
}
|
|
634
|
+
.sprout-attachment-dropzone-text {
|
|
635
|
+
margin: 0 0 12px;
|
|
636
|
+
color: var(--sprout-muted);
|
|
637
|
+
font-size: var(--sprout-text-sm);
|
|
638
|
+
line-height: 1.25rem;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
642
|
+
.sprout-attachment,
|
|
643
|
+
.sprout-file-attachment,
|
|
644
|
+
.sprout-attachment-dropzone {
|
|
645
|
+
transition:
|
|
646
|
+
background-color var(--sprout-motion-normal) var(--sprout-motion-ease),
|
|
647
|
+
border-color var(--sprout-motion-normal) var(--sprout-motion-ease);
|
|
648
|
+
}
|
|
649
|
+
.sprout-attachment-media[data-variant="image"] {
|
|
650
|
+
transition: opacity var(--sprout-motion-normal) var(--sprout-motion-ease);
|
|
651
|
+
}
|
|
652
|
+
.sprout-attachment-carousel-arrow {
|
|
653
|
+
transition:
|
|
654
|
+
opacity var(--sprout-motion-fast) var(--sprout-motion-ease),
|
|
655
|
+
background-color var(--sprout-motion-fast) var(--sprout-motion-ease),
|
|
656
|
+
color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
657
|
+
}
|
|
658
|
+
.sprout-attachment-carousel-viewport {
|
|
659
|
+
scroll-behavior: smooth;
|
|
660
|
+
}
|
|
661
|
+
.sprout-attachment:is([data-state="uploading"], [data-state="processing"])
|
|
662
|
+
.sprout-attachment-title,
|
|
663
|
+
.sprout-file-attachment:is(
|
|
664
|
+
[data-state="uploading"],
|
|
665
|
+
[data-state="processing"]
|
|
666
|
+
)
|
|
667
|
+
.sprout-file-attachment-name {
|
|
668
|
+
background: linear-gradient(
|
|
669
|
+
90deg,
|
|
670
|
+
var(--sprout-muted) 0%,
|
|
671
|
+
var(--sprout-muted) 40%,
|
|
672
|
+
var(--sprout-text) 50%,
|
|
673
|
+
var(--sprout-muted) 60%,
|
|
674
|
+
var(--sprout-muted) 100%
|
|
675
|
+
)
|
|
676
|
+
0 0 / 250% 100%;
|
|
677
|
+
-webkit-background-clip: text;
|
|
678
|
+
background-clip: text;
|
|
679
|
+
-webkit-text-fill-color: transparent;
|
|
680
|
+
animation: sprout-attachment-shimmer 1.8s linear infinite;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
@media (forced-colors: active) {
|
|
685
|
+
.sprout-attachment-title,
|
|
686
|
+
.sprout-file-attachment-name {
|
|
687
|
+
background: none !important;
|
|
688
|
+
-webkit-text-fill-color: currentColor !important;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
@keyframes sprout-attachment-shimmer {
|
|
694
|
+
from {
|
|
695
|
+
background-position: 100% 0;
|
|
696
|
+
}
|
|
697
|
+
to {
|
|
698
|
+
background-position: 0% 0;
|
|
699
|
+
}
|
|
700
|
+
}
|