flowcss-style 1.0.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 +17 -0
- package/README.md +51 -0
- package/dist/flow.css +1021 -0
- package/dist/flow.js +264 -0
- package/package.json +31 -0
package/dist/flow.css
ADDED
|
@@ -0,0 +1,1021 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
FlowCSS v1.0.0 — A modern utility-first CSS framework
|
|
3
|
+
with animations, components, and theming built-in.
|
|
4
|
+
https://flowcss.dev | MIT License
|
|
5
|
+
============================================================ */
|
|
6
|
+
|
|
7
|
+
/* ─── RESET ─────────────────────────────────────────────── */
|
|
8
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
9
|
+
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
|
|
10
|
+
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
|
|
11
|
+
img, picture, video, canvas, svg { display: block; max-width: 100%; }
|
|
12
|
+
input, button, textarea, select { font: inherit; }
|
|
13
|
+
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
|
|
14
|
+
|
|
15
|
+
/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────── */
|
|
16
|
+
:root {
|
|
17
|
+
/* Colors */
|
|
18
|
+
--flow-white: #ffffff;
|
|
19
|
+
--flow-black: #0a0a0a;
|
|
20
|
+
--flow-gray-50: #f9fafb;
|
|
21
|
+
--flow-gray-100: #f3f4f6;
|
|
22
|
+
--flow-gray-200: #e5e7eb;
|
|
23
|
+
--flow-gray-300: #d1d5db;
|
|
24
|
+
--flow-gray-400: #9ca3af;
|
|
25
|
+
--flow-gray-500: #6b7280;
|
|
26
|
+
--flow-gray-600: #4b5563;
|
|
27
|
+
--flow-gray-700: #374151;
|
|
28
|
+
--flow-gray-800: #1f2937;
|
|
29
|
+
--flow-gray-900: #111827;
|
|
30
|
+
|
|
31
|
+
--flow-primary: #2563eb;
|
|
32
|
+
--flow-primary-light: #3b82f6;
|
|
33
|
+
--flow-primary-dark: #1d4ed8;
|
|
34
|
+
--flow-secondary: #7c3aed;
|
|
35
|
+
--flow-accent: #0ea5e9;
|
|
36
|
+
--flow-success: #10b981;
|
|
37
|
+
--flow-warning: #f59e0b;
|
|
38
|
+
--flow-danger: #ef4444;
|
|
39
|
+
--flow-info: #06b6d4;
|
|
40
|
+
|
|
41
|
+
/* Typography */
|
|
42
|
+
--flow-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
|
|
43
|
+
--flow-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
|
|
44
|
+
--flow-font-serif: 'Playfair Display', Georgia, serif;
|
|
45
|
+
|
|
46
|
+
/* Spacing scale */
|
|
47
|
+
--flow-space-1: 0.25rem;
|
|
48
|
+
--flow-space-2: 0.5rem;
|
|
49
|
+
--flow-space-3: 0.75rem;
|
|
50
|
+
--flow-space-4: 1rem;
|
|
51
|
+
--flow-space-5: 1.25rem;
|
|
52
|
+
--flow-space-6: 1.5rem;
|
|
53
|
+
--flow-space-8: 2rem;
|
|
54
|
+
--flow-space-10: 2.5rem;
|
|
55
|
+
--flow-space-12: 3rem;
|
|
56
|
+
--flow-space-16: 4rem;
|
|
57
|
+
--flow-space-20: 5rem;
|
|
58
|
+
--flow-space-24: 6rem;
|
|
59
|
+
|
|
60
|
+
/* Radii */
|
|
61
|
+
--flow-radius-sm: 0.25rem;
|
|
62
|
+
--flow-radius-md: 0.5rem;
|
|
63
|
+
--flow-radius-lg: 0.75rem;
|
|
64
|
+
--flow-radius-xl: 1rem;
|
|
65
|
+
--flow-radius-2xl: 1.5rem;
|
|
66
|
+
--flow-radius-full: 9999px;
|
|
67
|
+
|
|
68
|
+
/* Shadows */
|
|
69
|
+
--flow-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
70
|
+
--flow-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
71
|
+
--flow-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
72
|
+
--flow-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
73
|
+
--flow-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
74
|
+
--flow-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
75
|
+
--flow-shadow-glow-primary: 0 0 20px rgb(37 99 235 / 0.4);
|
|
76
|
+
--flow-shadow-glow-accent: 0 0 20px rgb(14 165 233 / 0.4);
|
|
77
|
+
|
|
78
|
+
/* Transitions */
|
|
79
|
+
--flow-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
80
|
+
--flow-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
81
|
+
--flow-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
+
--flow-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
83
|
+
|
|
84
|
+
/* Animation durations */
|
|
85
|
+
--flow-dur-fast: 0.2s;
|
|
86
|
+
--flow-dur-base: 0.4s;
|
|
87
|
+
--flow-dur-slow: 0.8s;
|
|
88
|
+
--flow-dur-slower: 1.2s;
|
|
89
|
+
|
|
90
|
+
/* Z-index scale */
|
|
91
|
+
--flow-z-below: -1;
|
|
92
|
+
--flow-z-base: 0;
|
|
93
|
+
--flow-z-raised: 10;
|
|
94
|
+
--flow-z-overlay: 100;
|
|
95
|
+
--flow-z-modal: 200;
|
|
96
|
+
--flow-z-toast: 300;
|
|
97
|
+
--flow-z-top: 9999;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Dark mode */
|
|
101
|
+
[data-theme="dark"] {
|
|
102
|
+
--flow-white: #0a0a0a;
|
|
103
|
+
--flow-black: #ffffff;
|
|
104
|
+
--flow-gray-50: #111827;
|
|
105
|
+
--flow-gray-100: #1f2937;
|
|
106
|
+
--flow-gray-200: #374151;
|
|
107
|
+
--flow-gray-300: #4b5563;
|
|
108
|
+
--flow-gray-400: #6b7280;
|
|
109
|
+
--flow-gray-500: #9ca3af;
|
|
110
|
+
--flow-gray-600: #d1d5db;
|
|
111
|
+
--flow-gray-700: #e5e7eb;
|
|
112
|
+
--flow-gray-800: #f3f4f6;
|
|
113
|
+
--flow-gray-900: #f9fafb;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/* ============================================================
|
|
118
|
+
ANIMATIONS — FlowCSS's superpower
|
|
119
|
+
============================================================ */
|
|
120
|
+
|
|
121
|
+
/* ─── Keyframes ─────────────────────────────────────────── */
|
|
122
|
+
|
|
123
|
+
@keyframes flow-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
124
|
+
@keyframes flow-fade-out { from { opacity: 1; } to { opacity: 0; } }
|
|
125
|
+
@keyframes flow-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
|
|
126
|
+
@keyframes flow-slide-down { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
|
|
127
|
+
@keyframes flow-slide-left { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
|
|
128
|
+
@keyframes flow-slide-right { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
|
|
129
|
+
@keyframes flow-scale-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
|
|
130
|
+
@keyframes flow-scale-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.9); } }
|
|
131
|
+
@keyframes flow-pop { from { opacity: 0; transform: scale(0.8); } 70% { transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
|
|
132
|
+
@keyframes flow-blur-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
|
|
133
|
+
@keyframes flow-flip-x { from { opacity: 0; transform: rotateX(90deg); } to { opacity: 1; transform: rotateX(0); } }
|
|
134
|
+
@keyframes flow-flip-y { from { opacity: 0; transform: rotateY(90deg); } to { opacity: 1; transform: rotateY(0); } }
|
|
135
|
+
@keyframes flow-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
|
|
136
|
+
@keyframes flow-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
|
|
137
|
+
@keyframes flow-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
|
|
138
|
+
@keyframes flow-bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); } }
|
|
139
|
+
@keyframes flow-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
|
|
140
|
+
@keyframes flow-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
|
|
141
|
+
@keyframes flow-heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1); } 42% { transform: scale(1.15); } 70% { transform: scale(1); } }
|
|
142
|
+
@keyframes flow-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
|
|
143
|
+
@keyframes flow-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
|
|
144
|
+
@keyframes flow-glitch { 0% { clip-path: inset(0 0 95% 0); transform: translate(-2px); } 20% { clip-path: inset(30% 0 50% 0); transform: translate(2px); } 40% { clip-path: inset(60% 0 20% 0); transform: translate(-2px); } 60% { clip-path: inset(10% 0 80% 0); transform: translate(2px); } 80% { clip-path: inset(80% 0 5% 0); transform: translate(-2px); } 100% { clip-path: inset(0 0 95% 0); transform: translate(0); } }
|
|
145
|
+
@keyframes flow-typing { from { width: 0; } to { width: 100%; } }
|
|
146
|
+
@keyframes flow-blink-caret { from, to { border-color: transparent; } 50% { border-color: currentColor; } }
|
|
147
|
+
@keyframes flow-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
|
|
148
|
+
@keyframes flow-gradient-x { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
|
|
149
|
+
@keyframes flow-morph { 0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
|
|
150
|
+
@keyframes flow-spotlight { 0% { transform: scale(0.8) rotate(-5deg); opacity: 0; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }
|
|
151
|
+
@keyframes flow-rise { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
|
|
152
|
+
@keyframes flow-swoosh-left { from { opacity: 0; transform: translateX(-60px) skewX(10deg); } to { opacity: 1; transform: translateX(0) skewX(0); } }
|
|
153
|
+
@keyframes flow-swoosh-right { from { opacity: 0; transform: translateX(60px) skewX(-10deg); } to { opacity: 1; transform: translateX(0) skewX(0); } }
|
|
154
|
+
@keyframes flow-roll-in { from { opacity: 0; transform: translateX(-100%) rotate(-120deg); } to { opacity: 1; transform: translateX(0) rotate(0); } }
|
|
155
|
+
@keyframes flow-rubber-band { 0% { transform: scale(1); } 30% { transform: scaleX(1.25) scaleY(0.75); } 40% { transform: scaleX(0.75) scaleY(1.25); } 60% { transform: scaleX(1.15) scaleY(0.85); } 100% { transform: scale(1); } }
|
|
156
|
+
@keyframes flow-tada { 0% { transform: scale(1); } 10%, 20% { transform: scale(0.9) rotate(-3deg); } 30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); } 40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); } 100% { transform: scale(1) rotate(0); } }
|
|
157
|
+
@keyframes flow-jello { 0%, 100% { transform: skewX(0) skewY(0); } 30% { transform: skewX(-12.5deg) skewY(-12.5deg); } 40% { transform: skewX(6.25deg) skewY(6.25deg); } 50% { transform: skewX(-3.125deg) skewY(-3.125deg); } 65% { transform: skewX(1.5625deg) skewY(1.5625deg); } 75% { transform: skewX(-0.78125deg) skewY(-0.78125deg); } }
|
|
158
|
+
@keyframes flow-counter-spin { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
|
|
159
|
+
@keyframes flow-progress { from { width: 0%; } to { width: var(--flow-progress, 70%); } }
|
|
160
|
+
@keyframes flow-wave { 0% { transform: translateY(0); } 25% { transform: translateY(-8px); } 75% { transform: translateY(8px); } 100% { transform: translateY(0); } }
|
|
161
|
+
@keyframes flow-ripple { 0% { transform: scale(0); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }
|
|
162
|
+
@keyframes flow-neon-pulse { 0%, 100% { box-shadow: 0 0 5px var(--flow-primary), 0 0 20px var(--flow-primary); } 50% { box-shadow: 0 0 10px var(--flow-primary), 0 0 40px var(--flow-primary), 0 0 80px var(--flow-primary); } }
|
|
163
|
+
@keyframes flow-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
|
|
164
|
+
@keyframes flow-count-up { from { content: "0"; } to { content: attr(data-count); } }
|
|
165
|
+
@keyframes flow-accordion-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
|
|
166
|
+
@keyframes flow-confetti-fall { 0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
|
|
167
|
+
|
|
168
|
+
/* ─── Animation Utility Classes ─────────────────────────── */
|
|
169
|
+
.flow-animate-fade-in { animation: flow-fade-in var(--flow-dur-base) ease forwards; }
|
|
170
|
+
.flow-animate-fade-out { animation: flow-fade-out var(--flow-dur-base) ease forwards; }
|
|
171
|
+
.flow-animate-slide-up { animation: flow-slide-up var(--flow-dur-base) ease forwards; }
|
|
172
|
+
.flow-animate-slide-down { animation: flow-slide-down var(--flow-dur-base) ease forwards; }
|
|
173
|
+
.flow-animate-slide-left { animation: flow-slide-left var(--flow-dur-base) ease forwards; }
|
|
174
|
+
.flow-animate-slide-right { animation: flow-slide-right var(--flow-dur-base) ease forwards; }
|
|
175
|
+
.flow-animate-scale-in { animation: flow-scale-in var(--flow-dur-base) ease forwards; }
|
|
176
|
+
.flow-animate-pop { animation: flow-pop var(--flow-dur-base) cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
|
|
177
|
+
.flow-animate-blur-in { animation: flow-blur-in var(--flow-dur-base) ease forwards; }
|
|
178
|
+
.flow-animate-flip-x { animation: flow-flip-x var(--flow-dur-base) ease forwards; }
|
|
179
|
+
.flow-animate-flip-y { animation: flow-flip-y var(--flow-dur-base) ease forwards; }
|
|
180
|
+
.flow-animate-rise { animation: flow-rise var(--flow-dur-slow) ease forwards; }
|
|
181
|
+
.flow-animate-swoosh-left { animation: flow-swoosh-left var(--flow-dur-base) ease forwards; }
|
|
182
|
+
.flow-animate-swoosh-right { animation: flow-swoosh-right var(--flow-dur-base) ease forwards; }
|
|
183
|
+
.flow-animate-roll-in { animation: flow-roll-in var(--flow-dur-slow) ease forwards; }
|
|
184
|
+
.flow-animate-spotlight { animation: flow-spotlight var(--flow-dur-slow) ease forwards; }
|
|
185
|
+
.flow-animate-spin { animation: flow-spin 1s linear infinite; }
|
|
186
|
+
.flow-animate-ping { animation: flow-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
|
|
187
|
+
.flow-animate-pulse { animation: flow-pulse 2s ease infinite; }
|
|
188
|
+
.flow-animate-bounce { animation: flow-bounce 1s ease infinite; }
|
|
189
|
+
.flow-animate-float { animation: flow-float 3s ease-in-out infinite; }
|
|
190
|
+
.flow-animate-sway { animation: flow-sway 2s ease-in-out infinite; }
|
|
191
|
+
.flow-animate-wiggle { animation: flow-wiggle 0.5s ease-in-out infinite; }
|
|
192
|
+
.flow-animate-heartbeat { animation: flow-heartbeat 1.5s ease infinite; }
|
|
193
|
+
.flow-animate-shake { animation: flow-shake 0.5s ease; }
|
|
194
|
+
.flow-animate-rubber-band { animation: flow-rubber-band 1s ease; }
|
|
195
|
+
.flow-animate-tada { animation: flow-tada 1s ease; }
|
|
196
|
+
.flow-animate-jello { animation: flow-jello 0.9s ease; }
|
|
197
|
+
.flow-animate-neon-pulse { animation: flow-neon-pulse 2s ease-in-out infinite; }
|
|
198
|
+
.flow-animate-wave { animation: flow-wave 1s ease-in-out infinite; }
|
|
199
|
+
.flow-animate-shimmer { background: linear-gradient(90deg, var(--flow-gray-100) 25%, var(--flow-gray-200) 50%, var(--flow-gray-100) 75%); background-size: 200% 100%; animation: flow-shimmer 1.5s infinite; }
|
|
200
|
+
.flow-animate-gradient { background-size: 200% 200%; animation: flow-gradient-x 4s ease infinite; }
|
|
201
|
+
.flow-animate-morph { animation: flow-morph 8s ease-in-out infinite; }
|
|
202
|
+
.flow-animate-glitch { position: relative; animation: flow-glitch 0.5s steps(1) infinite; }
|
|
203
|
+
.flow-animate-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: flow-draw 2s ease forwards; }
|
|
204
|
+
|
|
205
|
+
/* Animation Delays */
|
|
206
|
+
.flow-delay-75 { animation-delay: 75ms; }
|
|
207
|
+
.flow-delay-100 { animation-delay: 100ms; }
|
|
208
|
+
.flow-delay-150 { animation-delay: 150ms; }
|
|
209
|
+
.flow-delay-200 { animation-delay: 200ms; }
|
|
210
|
+
.flow-delay-300 { animation-delay: 300ms; }
|
|
211
|
+
.flow-delay-500 { animation-delay: 500ms; }
|
|
212
|
+
.flow-delay-700 { animation-delay: 700ms; }
|
|
213
|
+
.flow-delay-1000 { animation-delay: 1000ms; }
|
|
214
|
+
|
|
215
|
+
/* Animation Durations */
|
|
216
|
+
.flow-duration-fast { animation-duration: var(--flow-dur-fast); }
|
|
217
|
+
.flow-duration-base { animation-duration: var(--flow-dur-base); }
|
|
218
|
+
.flow-duration-slow { animation-duration: var(--flow-dur-slow); }
|
|
219
|
+
.flow-duration-slower { animation-duration: var(--flow-dur-slower); }
|
|
220
|
+
|
|
221
|
+
/* Stagger helpers (use with JS or nth-child) */
|
|
222
|
+
.flow-stagger > * { opacity: 0; }
|
|
223
|
+
.flow-stagger > *:nth-child(1) { animation-delay: 0ms; }
|
|
224
|
+
.flow-stagger > *:nth-child(2) { animation-delay: 80ms; }
|
|
225
|
+
.flow-stagger > *:nth-child(3) { animation-delay: 160ms; }
|
|
226
|
+
.flow-stagger > *:nth-child(4) { animation-delay: 240ms; }
|
|
227
|
+
.flow-stagger > *:nth-child(5) { animation-delay: 320ms; }
|
|
228
|
+
.flow-stagger > *:nth-child(6) { animation-delay: 400ms; }
|
|
229
|
+
.flow-stagger > *:nth-child(7) { animation-delay: 480ms; }
|
|
230
|
+
.flow-stagger > *:nth-child(8) { animation-delay: 560ms; }
|
|
231
|
+
.flow-stagger > *:nth-child(9) { animation-delay: 640ms; }
|
|
232
|
+
.flow-stagger > *:nth-child(10) { animation-delay: 720ms; }
|
|
233
|
+
.flow-stagger.flow-slide-up > * { animation: flow-slide-up var(--flow-dur-base) ease forwards; }
|
|
234
|
+
.flow-stagger.flow-fade-in > * { animation: flow-fade-in var(--flow-dur-base) ease forwards; }
|
|
235
|
+
.flow-stagger.flow-scale-in > * { animation: flow-scale-in var(--flow-dur-base) ease forwards; }
|
|
236
|
+
|
|
237
|
+
/* Scroll-triggered animations (use IntersectionObserver or flow.js) */
|
|
238
|
+
.flow-reveal { opacity: 0; transition: opacity var(--flow-dur-slow) ease, transform var(--flow-dur-slow) ease; }
|
|
239
|
+
.flow-reveal.flow-reveal--up { transform: translateY(30px); }
|
|
240
|
+
.flow-reveal.flow-reveal--down { transform: translateY(-30px); }
|
|
241
|
+
.flow-reveal.flow-reveal--left { transform: translateX(-30px); }
|
|
242
|
+
.flow-reveal.flow-reveal--right { transform: translateX(30px); }
|
|
243
|
+
.flow-reveal.flow-reveal--scale { transform: scale(0.92); }
|
|
244
|
+
.flow-reveal.is-visible { opacity: 1; transform: none; }
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
/* ============================================================
|
|
248
|
+
TYPING ANIMATION COMPONENT
|
|
249
|
+
============================================================ */
|
|
250
|
+
.flow-typewriter {
|
|
251
|
+
overflow: hidden;
|
|
252
|
+
white-space: nowrap;
|
|
253
|
+
border-right: 2px solid currentColor;
|
|
254
|
+
width: 0;
|
|
255
|
+
animation: flow-typing 3s steps(40) forwards, flow-blink-caret 0.75s step-end infinite;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
/* ============================================================
|
|
260
|
+
LAYOUT UTILITIES
|
|
261
|
+
============================================================ */
|
|
262
|
+
|
|
263
|
+
/* Container */
|
|
264
|
+
.flow-container { width: 100%; margin-inline: auto; padding-inline: var(--flow-space-4); }
|
|
265
|
+
@media (min-width: 640px) { .flow-container { max-width: 640px; } }
|
|
266
|
+
@media (min-width: 768px) { .flow-container { max-width: 768px; } }
|
|
267
|
+
@media (min-width: 1024px) { .flow-container { max-width: 1024px; } }
|
|
268
|
+
@media (min-width: 1280px) { .flow-container { max-width: 1280px; padding-inline: var(--flow-space-8); } }
|
|
269
|
+
@media (min-width: 1536px) { .flow-container { max-width: 1536px; } }
|
|
270
|
+
.flow-container--sm { max-width: 480px !important; }
|
|
271
|
+
.flow-container--md { max-width: 768px !important; }
|
|
272
|
+
.flow-container--lg { max-width: 1024px !important; }
|
|
273
|
+
|
|
274
|
+
/* Flex */
|
|
275
|
+
.flow-flex { display: flex; }
|
|
276
|
+
.flow-flex-col { display: flex; flex-direction: column; }
|
|
277
|
+
.flow-flex-wrap { flex-wrap: wrap; }
|
|
278
|
+
.flow-flex-nowrap { flex-wrap: nowrap; }
|
|
279
|
+
.flow-flex-1 { flex: 1 1 0%; }
|
|
280
|
+
.flow-flex-auto { flex: 1 1 auto; }
|
|
281
|
+
.flow-flex-none { flex: none; }
|
|
282
|
+
.flow-items-start { align-items: flex-start; }
|
|
283
|
+
.flow-items-center { align-items: center; }
|
|
284
|
+
.flow-items-end { align-items: flex-end; }
|
|
285
|
+
.flow-items-stretch{ align-items: stretch; }
|
|
286
|
+
.flow-justify-start { justify-content: flex-start; }
|
|
287
|
+
.flow-justify-center { justify-content: center; }
|
|
288
|
+
.flow-justify-end { justify-content: flex-end; }
|
|
289
|
+
.flow-justify-between { justify-content: space-between; }
|
|
290
|
+
.flow-justify-around { justify-content: space-around; }
|
|
291
|
+
.flow-justify-evenly { justify-content: space-evenly; }
|
|
292
|
+
.flow-center { display: flex; align-items: center; justify-content: center; }
|
|
293
|
+
|
|
294
|
+
/* Grid */
|
|
295
|
+
.flow-grid { display: grid; }
|
|
296
|
+
.flow-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
297
|
+
.flow-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
298
|
+
.flow-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
299
|
+
.flow-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
300
|
+
.flow-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
301
|
+
.flow-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
302
|
+
.flow-grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
|
|
303
|
+
.flow-col-span-1 { grid-column: span 1; }
|
|
304
|
+
.flow-col-span-2 { grid-column: span 2; }
|
|
305
|
+
.flow-col-span-3 { grid-column: span 3; }
|
|
306
|
+
.flow-col-span-full { grid-column: 1 / -1; }
|
|
307
|
+
|
|
308
|
+
/* Auto grid — responsive without breakpoints */
|
|
309
|
+
.flow-auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--flow-auto-grid-min, 250px)), 1fr)); gap: var(--flow-space-4); }
|
|
310
|
+
.flow-auto-grid--sm { --flow-auto-grid-min: 160px; }
|
|
311
|
+
.flow-auto-grid--lg { --flow-auto-grid-min: 340px; }
|
|
312
|
+
|
|
313
|
+
/* Gap */
|
|
314
|
+
.flow-gap-0 { gap: 0; }
|
|
315
|
+
.flow-gap-1 { gap: var(--flow-space-1); }
|
|
316
|
+
.flow-gap-2 { gap: var(--flow-space-2); }
|
|
317
|
+
.flow-gap-3 { gap: var(--flow-space-3); }
|
|
318
|
+
.flow-gap-4 { gap: var(--flow-space-4); }
|
|
319
|
+
.flow-gap-5 { gap: var(--flow-space-5); }
|
|
320
|
+
.flow-gap-6 { gap: var(--flow-space-6); }
|
|
321
|
+
.flow-gap-8 { gap: var(--flow-space-8); }
|
|
322
|
+
.flow-gap-10 { gap: var(--flow-space-10); }
|
|
323
|
+
.flow-gap-12 { gap: var(--flow-space-12); }
|
|
324
|
+
.flow-gap-16 { gap: var(--flow-space-16); }
|
|
325
|
+
|
|
326
|
+
/* Spacing */
|
|
327
|
+
.flow-p-0 { padding: 0; }
|
|
328
|
+
.flow-p-1 { padding: var(--flow-space-1); }
|
|
329
|
+
.flow-p-2 { padding: var(--flow-space-2); }
|
|
330
|
+
.flow-p-3 { padding: var(--flow-space-3); }
|
|
331
|
+
.flow-p-4 { padding: var(--flow-space-4); }
|
|
332
|
+
.flow-p-5 { padding: var(--flow-space-5); }
|
|
333
|
+
.flow-p-6 { padding: var(--flow-space-6); }
|
|
334
|
+
.flow-p-8 { padding: var(--flow-space-8); }
|
|
335
|
+
.flow-p-10 { padding: var(--flow-space-10); }
|
|
336
|
+
.flow-p-12 { padding: var(--flow-space-12); }
|
|
337
|
+
.flow-px-2 { padding-inline: var(--flow-space-2); }
|
|
338
|
+
.flow-px-3 { padding-inline: var(--flow-space-3); }
|
|
339
|
+
.flow-px-4 { padding-inline: var(--flow-space-4); }
|
|
340
|
+
.flow-px-5 { padding-inline: var(--flow-space-5); }
|
|
341
|
+
.flow-px-6 { padding-inline: var(--flow-space-6); }
|
|
342
|
+
.flow-px-8 { padding-inline: var(--flow-space-8); }
|
|
343
|
+
.flow-py-2 { padding-block: var(--flow-space-2); }
|
|
344
|
+
.flow-py-3 { padding-block: var(--flow-space-3); }
|
|
345
|
+
.flow-py-4 { padding-block: var(--flow-space-4); }
|
|
346
|
+
.flow-py-5 { padding-block: var(--flow-space-5); }
|
|
347
|
+
.flow-py-6 { padding-block: var(--flow-space-6); }
|
|
348
|
+
.flow-py-8 { padding-block: var(--flow-space-8); }
|
|
349
|
+
.flow-m-0 { margin: 0; }
|
|
350
|
+
.flow-m-auto { margin: auto; }
|
|
351
|
+
.flow-mx-auto { margin-inline: auto; }
|
|
352
|
+
.flow-mt-2 { margin-top: var(--flow-space-2); }
|
|
353
|
+
.flow-mt-4 { margin-top: var(--flow-space-4); }
|
|
354
|
+
.flow-mt-6 { margin-top: var(--flow-space-6); }
|
|
355
|
+
.flow-mt-8 { margin-top: var(--flow-space-8); }
|
|
356
|
+
.flow-mb-2 { margin-bottom: var(--flow-space-2); }
|
|
357
|
+
.flow-mb-4 { margin-bottom: var(--flow-space-4); }
|
|
358
|
+
.flow-mb-6 { margin-bottom: var(--flow-space-6); }
|
|
359
|
+
.flow-mb-8 { margin-bottom: var(--flow-space-8); }
|
|
360
|
+
|
|
361
|
+
/* Sizing */
|
|
362
|
+
.flow-w-full { width: 100%; }
|
|
363
|
+
.flow-w-screen { width: 100vw; }
|
|
364
|
+
.flow-w-auto { width: auto; }
|
|
365
|
+
.flow-h-full { height: 100%; }
|
|
366
|
+
.flow-h-screen { height: 100vh; }
|
|
367
|
+
.flow-min-h-screen { min-height: 100vh; }
|
|
368
|
+
.flow-min-w-0 { min-width: 0; }
|
|
369
|
+
|
|
370
|
+
/* Position */
|
|
371
|
+
.flow-relative { position: relative; }
|
|
372
|
+
.flow-absolute { position: absolute; }
|
|
373
|
+
.flow-fixed { position: fixed; }
|
|
374
|
+
.flow-sticky { position: sticky; }
|
|
375
|
+
.flow-inset-0 { inset: 0; }
|
|
376
|
+
.flow-top-0 { top: 0; }
|
|
377
|
+
.flow-right-0 { right: 0; }
|
|
378
|
+
.flow-bottom-0 { bottom: 0; }
|
|
379
|
+
.flow-left-0 { left: 0; }
|
|
380
|
+
|
|
381
|
+
/* Display */
|
|
382
|
+
.flow-block { display: block; }
|
|
383
|
+
.flow-inline { display: inline; }
|
|
384
|
+
.flow-inline-block { display: inline-block; }
|
|
385
|
+
.flow-inline-flex { display: inline-flex; }
|
|
386
|
+
.flow-hidden { display: none; }
|
|
387
|
+
|
|
388
|
+
/* Overflow */
|
|
389
|
+
.flow-overflow-hidden { overflow: hidden; }
|
|
390
|
+
.flow-overflow-auto { overflow: auto; }
|
|
391
|
+
.flow-overflow-x-auto { overflow-x: auto; }
|
|
392
|
+
|
|
393
|
+
/* ============================================================
|
|
394
|
+
TYPOGRAPHY
|
|
395
|
+
============================================================ */
|
|
396
|
+
.flow-font-sans { font-family: var(--flow-font-sans); }
|
|
397
|
+
.flow-font-mono { font-family: var(--flow-font-mono); }
|
|
398
|
+
.flow-font-serif { font-family: var(--flow-font-serif); }
|
|
399
|
+
|
|
400
|
+
.flow-text-xs { font-size: 0.75rem; line-height: 1rem; }
|
|
401
|
+
.flow-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
|
|
402
|
+
.flow-text-base { font-size: 1rem; line-height: 1.5rem; }
|
|
403
|
+
.flow-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
|
|
404
|
+
.flow-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
|
|
405
|
+
.flow-text-2xl { font-size: 1.5rem; line-height: 2rem; }
|
|
406
|
+
.flow-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
|
|
407
|
+
.flow-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
|
|
408
|
+
.flow-text-5xl { font-size: 3rem; line-height: 1; }
|
|
409
|
+
.flow-text-6xl { font-size: 3.75rem; line-height: 1; }
|
|
410
|
+
.flow-text-7xl { font-size: 4.5rem; line-height: 1; }
|
|
411
|
+
.flow-text-8xl { font-size: 6rem; line-height: 1; }
|
|
412
|
+
|
|
413
|
+
.flow-font-thin { font-weight: 100; }
|
|
414
|
+
.flow-font-light { font-weight: 300; }
|
|
415
|
+
.flow-font-normal { font-weight: 400; }
|
|
416
|
+
.flow-font-medium { font-weight: 500; }
|
|
417
|
+
.flow-font-semibold { font-weight: 600; }
|
|
418
|
+
.flow-font-bold { font-weight: 700; }
|
|
419
|
+
.flow-font-extrabold { font-weight: 800; }
|
|
420
|
+
.flow-font-black { font-weight: 900; }
|
|
421
|
+
|
|
422
|
+
.flow-text-left { text-align: left; }
|
|
423
|
+
.flow-text-center { text-align: center; }
|
|
424
|
+
.flow-text-right { text-align: right; }
|
|
425
|
+
.flow-leading-tight { line-height: 1.25; }
|
|
426
|
+
.flow-leading-snug { line-height: 1.375; }
|
|
427
|
+
.flow-leading-normal { line-height: 1.5; }
|
|
428
|
+
.flow-leading-relaxed { line-height: 1.625; }
|
|
429
|
+
.flow-leading-loose { line-height: 2; }
|
|
430
|
+
.flow-tracking-tight { letter-spacing: -0.05em; }
|
|
431
|
+
.flow-tracking-normal { letter-spacing: 0; }
|
|
432
|
+
.flow-tracking-wide { letter-spacing: 0.05em; }
|
|
433
|
+
.flow-tracking-wider { letter-spacing: 0.1em; }
|
|
434
|
+
.flow-tracking-widest { letter-spacing: 0.2em; }
|
|
435
|
+
.flow-uppercase { text-transform: uppercase; }
|
|
436
|
+
.flow-lowercase { text-transform: lowercase; }
|
|
437
|
+
.flow-capitalize { text-transform: capitalize; }
|
|
438
|
+
.flow-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
439
|
+
.flow-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
440
|
+
.flow-line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
441
|
+
|
|
442
|
+
/* Gradient text */
|
|
443
|
+
.flow-text-gradient {
|
|
444
|
+
background: linear-gradient(135deg, var(--flow-primary), var(--flow-accent));
|
|
445
|
+
-webkit-background-clip: text;
|
|
446
|
+
-webkit-text-fill-color: transparent;
|
|
447
|
+
background-clip: text;
|
|
448
|
+
}
|
|
449
|
+
.flow-text-gradient--warm { background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
|
|
450
|
+
.flow-text-gradient--cool { background: linear-gradient(135deg, #06b6d4, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
|
|
451
|
+
.flow-text-gradient--fresh { background: linear-gradient(135deg, #10b981, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
|
|
452
|
+
|
|
453
|
+
/* ============================================================
|
|
454
|
+
COLOR UTILITIES
|
|
455
|
+
============================================================ */
|
|
456
|
+
.flow-text-primary { color: var(--flow-primary); }
|
|
457
|
+
.flow-text-secondary { color: var(--flow-secondary); }
|
|
458
|
+
.flow-text-accent { color: var(--flow-accent); }
|
|
459
|
+
.flow-text-success { color: var(--flow-success); }
|
|
460
|
+
.flow-text-warning { color: var(--flow-warning); }
|
|
461
|
+
.flow-text-danger { color: var(--flow-danger); }
|
|
462
|
+
.flow-text-muted { color: var(--flow-gray-500); }
|
|
463
|
+
.flow-text-white { color: #fff; }
|
|
464
|
+
.flow-text-black { color: #000; }
|
|
465
|
+
.flow-bg-white { background-color: #fff; }
|
|
466
|
+
.flow-bg-black { background-color: #000; }
|
|
467
|
+
.flow-bg-primary { background-color: var(--flow-primary); }
|
|
468
|
+
.flow-bg-secondary { background-color: var(--flow-secondary); }
|
|
469
|
+
.flow-bg-accent { background-color: var(--flow-accent); }
|
|
470
|
+
.flow-bg-success { background-color: var(--flow-success); }
|
|
471
|
+
.flow-bg-warning { background-color: var(--flow-warning); }
|
|
472
|
+
.flow-bg-danger { background-color: var(--flow-danger); }
|
|
473
|
+
.flow-bg-gray-50 { background-color: var(--flow-gray-50); }
|
|
474
|
+
.flow-bg-gray-100 { background-color: var(--flow-gray-100); }
|
|
475
|
+
.flow-bg-gray-900 { background-color: var(--flow-gray-900); }
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
/* ============================================================
|
|
479
|
+
BORDERS & EFFECTS
|
|
480
|
+
============================================================ */
|
|
481
|
+
.flow-rounded-sm { border-radius: var(--flow-radius-sm); }
|
|
482
|
+
.flow-rounded { border-radius: var(--flow-radius-md); }
|
|
483
|
+
.flow-rounded-lg { border-radius: var(--flow-radius-lg); }
|
|
484
|
+
.flow-rounded-xl { border-radius: var(--flow-radius-xl); }
|
|
485
|
+
.flow-rounded-2xl { border-radius: var(--flow-radius-2xl); }
|
|
486
|
+
.flow-rounded-full { border-radius: var(--flow-radius-full); }
|
|
487
|
+
.flow-border { border: 1px solid var(--flow-gray-200); }
|
|
488
|
+
.flow-border-2 { border: 2px solid var(--flow-gray-200); }
|
|
489
|
+
.flow-border-primary { border-color: var(--flow-primary); }
|
|
490
|
+
.flow-border-gray-200 { border-color: var(--flow-gray-200); }
|
|
491
|
+
.flow-shadow-sm { box-shadow: var(--flow-shadow-sm); }
|
|
492
|
+
.flow-shadow { box-shadow: var(--flow-shadow); }
|
|
493
|
+
.flow-shadow-md { box-shadow: var(--flow-shadow-md); }
|
|
494
|
+
.flow-shadow-lg { box-shadow: var(--flow-shadow-lg); }
|
|
495
|
+
.flow-shadow-xl { box-shadow: var(--flow-shadow-xl); }
|
|
496
|
+
.flow-shadow-2xl { box-shadow: var(--flow-shadow-2xl); }
|
|
497
|
+
.flow-shadow-glow { box-shadow: var(--flow-shadow-glow-primary); }
|
|
498
|
+
.flow-ring { box-shadow: 0 0 0 3px rgb(37 99 235 / 0.3); }
|
|
499
|
+
.flow-blur-sm { filter: blur(4px); }
|
|
500
|
+
.flow-blur { filter: blur(8px); }
|
|
501
|
+
.flow-blur-lg { filter: blur(16px); }
|
|
502
|
+
.flow-opacity-0 { opacity: 0; }
|
|
503
|
+
.flow-opacity-50 { opacity: 0.5; }
|
|
504
|
+
.flow-opacity-75 { opacity: 0.75; }
|
|
505
|
+
.flow-opacity-100 { opacity: 1; }
|
|
506
|
+
|
|
507
|
+
/* Gradient backgrounds */
|
|
508
|
+
.flow-bg-gradient { background: linear-gradient(135deg, var(--flow-primary), var(--flow-accent)); }
|
|
509
|
+
.flow-bg-gradient--warm { background: linear-gradient(135deg, #f59e0b, #ef4444, #7c3aed); }
|
|
510
|
+
.flow-bg-gradient--cool { background: linear-gradient(135deg, #06b6d4, #3b82f6, #7c3aed); }
|
|
511
|
+
.flow-bg-gradient--fresh { background: linear-gradient(135deg, #10b981, #06b6d4); }
|
|
512
|
+
.flow-bg-gradient--dark { background: linear-gradient(135deg, #0f172a, #1e293b); }
|
|
513
|
+
.flow-bg-animated-gradient { background: linear-gradient(-45deg, var(--flow-primary), var(--flow-secondary), var(--flow-accent), var(--flow-primary)); background-size: 400% 400%; animation: flow-gradient-x 8s ease infinite; }
|
|
514
|
+
|
|
515
|
+
/* Glass effect */
|
|
516
|
+
.flow-glass {
|
|
517
|
+
background: rgba(255, 255, 255, 0.1);
|
|
518
|
+
backdrop-filter: blur(12px);
|
|
519
|
+
-webkit-backdrop-filter: blur(12px);
|
|
520
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
521
|
+
}
|
|
522
|
+
.flow-glass--dark {
|
|
523
|
+
background: rgba(0, 0, 0, 0.2);
|
|
524
|
+
backdrop-filter: blur(12px);
|
|
525
|
+
-webkit-backdrop-filter: blur(12px);
|
|
526
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/* 3D / Perspective utilities */
|
|
530
|
+
.flow-perspective-sm { perspective: 500px; }
|
|
531
|
+
.flow-perspective { perspective: 1000px; }
|
|
532
|
+
.flow-perspective-lg { perspective: 2000px; }
|
|
533
|
+
.flow-preserve-3d { transform-style: preserve-3d; }
|
|
534
|
+
.flow-backface-hidden { backface-visibility: hidden; }
|
|
535
|
+
.flow-rotate-x-12 { transform: rotateX(12deg); }
|
|
536
|
+
.flow-rotate-y-12 { transform: rotateY(12deg); }
|
|
537
|
+
.flow-rotate-x-neg { transform: rotateX(-12deg); }
|
|
538
|
+
.flow-rotate-y-neg { transform: rotateY(-12deg); }
|
|
539
|
+
|
|
540
|
+
/* Hover 3D card lift */
|
|
541
|
+
.flow-card-3d {
|
|
542
|
+
transition: transform var(--flow-transition), box-shadow var(--flow-transition);
|
|
543
|
+
transform-style: preserve-3d;
|
|
544
|
+
}
|
|
545
|
+
.flow-card-3d:hover {
|
|
546
|
+
transform: translateY(-8px) rotateX(4deg);
|
|
547
|
+
box-shadow: 0 30px 60px -12px rgb(0 0 0 / 0.25);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* Cursor effects */
|
|
551
|
+
.flow-cursor-pointer { cursor: pointer; }
|
|
552
|
+
.flow-cursor-none { cursor: none; }
|
|
553
|
+
.flow-select-none { user-select: none; }
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
/* ============================================================
|
|
557
|
+
COMPONENTS
|
|
558
|
+
============================================================ */
|
|
559
|
+
|
|
560
|
+
/* ─── Buttons ────────────────────────────────────────────── */
|
|
561
|
+
.flow-btn {
|
|
562
|
+
display: inline-flex;
|
|
563
|
+
align-items: center;
|
|
564
|
+
justify-content: center;
|
|
565
|
+
gap: var(--flow-space-2);
|
|
566
|
+
padding: var(--flow-space-2) var(--flow-space-5);
|
|
567
|
+
font-family: var(--flow-font-sans);
|
|
568
|
+
font-size: 0.875rem;
|
|
569
|
+
font-weight: 500;
|
|
570
|
+
line-height: 1.5;
|
|
571
|
+
border-radius: var(--flow-radius-md);
|
|
572
|
+
border: 1px solid transparent;
|
|
573
|
+
cursor: pointer;
|
|
574
|
+
text-decoration: none;
|
|
575
|
+
transition: all var(--flow-transition-fast);
|
|
576
|
+
position: relative;
|
|
577
|
+
overflow: hidden;
|
|
578
|
+
white-space: nowrap;
|
|
579
|
+
}
|
|
580
|
+
.flow-btn::after {
|
|
581
|
+
content: '';
|
|
582
|
+
position: absolute;
|
|
583
|
+
inset: 0;
|
|
584
|
+
background: rgba(255,255,255,0);
|
|
585
|
+
transition: background var(--flow-transition-fast);
|
|
586
|
+
}
|
|
587
|
+
.flow-btn:hover::after { background: rgba(255,255,255,0.08); }
|
|
588
|
+
.flow-btn:active { transform: scale(0.97); }
|
|
589
|
+
.flow-btn--sm { padding: var(--flow-space-1) var(--flow-space-3); font-size: 0.75rem; }
|
|
590
|
+
.flow-btn--lg { padding: var(--flow-space-3) var(--flow-space-8); font-size: 1rem; }
|
|
591
|
+
.flow-btn--xl { padding: var(--flow-space-4) var(--flow-space-10); font-size: 1.125rem; }
|
|
592
|
+
.flow-btn--primary { background: var(--flow-primary); color: #fff; box-shadow: 0 1px 3px rgb(37 99 235 / 0.3); }
|
|
593
|
+
.flow-btn--primary:hover { background: var(--flow-primary-dark); box-shadow: 0 4px 12px rgb(37 99 235 / 0.4); }
|
|
594
|
+
.flow-btn--secondary { background: var(--flow-secondary); color: #fff; }
|
|
595
|
+
.flow-btn--secondary:hover { opacity: 0.9; }
|
|
596
|
+
.flow-btn--outline { background: transparent; border-color: var(--flow-gray-300); color: var(--flow-gray-700); }
|
|
597
|
+
.flow-btn--outline:hover { border-color: var(--flow-primary); color: var(--flow-primary); background: rgb(37 99 235 / 0.05); }
|
|
598
|
+
.flow-btn--ghost { background: transparent; color: var(--flow-gray-700); }
|
|
599
|
+
.flow-btn--ghost:hover { background: var(--flow-gray-100); }
|
|
600
|
+
.flow-btn--danger { background: var(--flow-danger); color: #fff; }
|
|
601
|
+
.flow-btn--danger:hover { opacity: 0.9; }
|
|
602
|
+
.flow-btn--success { background: var(--flow-success); color: #fff; }
|
|
603
|
+
.flow-btn--gradient { background: linear-gradient(135deg, var(--flow-primary), var(--flow-accent)); color: #fff; border: none; }
|
|
604
|
+
.flow-btn--gradient:hover { box-shadow: 0 8px 20px rgb(37 99 235 / 0.35); transform: translateY(-1px); }
|
|
605
|
+
.flow-btn--glow { background: var(--flow-primary); color: #fff; box-shadow: var(--flow-shadow-glow-primary); }
|
|
606
|
+
.flow-btn--glow:hover { animation: flow-neon-pulse 1.5s ease infinite; }
|
|
607
|
+
.flow-btn--glass { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
|
|
608
|
+
.flow-btn--pill { border-radius: var(--flow-radius-full); }
|
|
609
|
+
.flow-btn--icon { padding: var(--flow-space-2); aspect-ratio: 1; }
|
|
610
|
+
.flow-btn--loading { pointer-events: none; }
|
|
611
|
+
.flow-btn--loading::before { content: ''; display: inline-block; width: 0.875em; height: 0.875em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: flow-spin 0.7s linear infinite; }
|
|
612
|
+
|
|
613
|
+
/* Ripple effect on buttons */
|
|
614
|
+
.flow-btn--ripple { overflow: hidden; }
|
|
615
|
+
.flow-btn--ripple .flow-ripple-wave {
|
|
616
|
+
position: absolute;
|
|
617
|
+
border-radius: 50%;
|
|
618
|
+
background: rgba(255,255,255,0.3);
|
|
619
|
+
transform: scale(0);
|
|
620
|
+
animation: flow-ripple 0.6s linear;
|
|
621
|
+
pointer-events: none;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* ─── Cards ──────────────────────────────────────────────── */
|
|
625
|
+
.flow-card {
|
|
626
|
+
background: var(--flow-white);
|
|
627
|
+
border: 1px solid var(--flow-gray-200);
|
|
628
|
+
border-radius: var(--flow-radius-xl);
|
|
629
|
+
padding: var(--flow-space-6);
|
|
630
|
+
box-shadow: var(--flow-shadow);
|
|
631
|
+
}
|
|
632
|
+
.flow-card--hover {
|
|
633
|
+
transition: transform var(--flow-transition), box-shadow var(--flow-transition);
|
|
634
|
+
cursor: pointer;
|
|
635
|
+
}
|
|
636
|
+
.flow-card--hover:hover {
|
|
637
|
+
transform: translateY(-4px);
|
|
638
|
+
box-shadow: var(--flow-shadow-xl);
|
|
639
|
+
}
|
|
640
|
+
.flow-card--glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border-color: rgba(255,255,255,0.2); }
|
|
641
|
+
.flow-card--gradient-border {
|
|
642
|
+
border: 1px solid transparent;
|
|
643
|
+
background-clip: padding-box;
|
|
644
|
+
position: relative;
|
|
645
|
+
}
|
|
646
|
+
.flow-card--gradient-border::before {
|
|
647
|
+
content: '';
|
|
648
|
+
position: absolute;
|
|
649
|
+
inset: -1px;
|
|
650
|
+
border-radius: inherit;
|
|
651
|
+
background: linear-gradient(135deg, var(--flow-primary), var(--flow-accent));
|
|
652
|
+
z-index: -1;
|
|
653
|
+
}
|
|
654
|
+
.flow-card__header { margin-bottom: var(--flow-space-4); }
|
|
655
|
+
.flow-card__title { font-size: 1.125rem; font-weight: 600; }
|
|
656
|
+
.flow-card__body { color: var(--flow-gray-600); }
|
|
657
|
+
.flow-card__footer { margin-top: var(--flow-space-4); padding-top: var(--flow-space-4); border-top: 1px solid var(--flow-gray-100); }
|
|
658
|
+
|
|
659
|
+
/* ─── Badge ──────────────────────────────────────────────── */
|
|
660
|
+
.flow-badge {
|
|
661
|
+
display: inline-flex;
|
|
662
|
+
align-items: center;
|
|
663
|
+
gap: 0.25rem;
|
|
664
|
+
padding: 0.125rem 0.625rem;
|
|
665
|
+
font-size: 0.75rem;
|
|
666
|
+
font-weight: 500;
|
|
667
|
+
border-radius: var(--flow-radius-full);
|
|
668
|
+
}
|
|
669
|
+
.flow-badge--primary { background: rgb(37 99 235 / 0.1); color: var(--flow-primary); }
|
|
670
|
+
.flow-badge--success { background: rgb(16 185 129 / 0.1); color: var(--flow-success); }
|
|
671
|
+
.flow-badge--warning { background: rgb(245 158 11 / 0.1); color: var(--flow-warning); }
|
|
672
|
+
.flow-badge--danger { background: rgb(239 68 68 / 0.1); color: var(--flow-danger); }
|
|
673
|
+
.flow-badge--secondary { background: rgb(124 58 237 / 0.1); color: var(--flow-secondary); }
|
|
674
|
+
.flow-badge--dot::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
675
|
+
.flow-badge--ping { position: relative; }
|
|
676
|
+
.flow-badge--ping::after { content: ''; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--flow-danger); border-radius: 50%; animation: flow-ping 1s cubic-bezier(0,0,0.2,1) infinite; }
|
|
677
|
+
|
|
678
|
+
/* ─── Alert ──────────────────────────────────────────────── */
|
|
679
|
+
.flow-alert {
|
|
680
|
+
display: flex;
|
|
681
|
+
gap: var(--flow-space-3);
|
|
682
|
+
padding: var(--flow-space-4);
|
|
683
|
+
border-radius: var(--flow-radius-lg);
|
|
684
|
+
border-left: 4px solid currentColor;
|
|
685
|
+
animation: flow-slide-right var(--flow-dur-base) ease forwards;
|
|
686
|
+
}
|
|
687
|
+
.flow-alert--info { background: rgb(6 182 212 / 0.08); color: var(--flow-info); }
|
|
688
|
+
.flow-alert--success { background: rgb(16 185 129 / 0.08); color: var(--flow-success); }
|
|
689
|
+
.flow-alert--warning { background: rgb(245 158 11 / 0.08); color: var(--flow-warning); }
|
|
690
|
+
.flow-alert--danger { background: rgb(239 68 68 / 0.08); color: var(--flow-danger); }
|
|
691
|
+
|
|
692
|
+
/* ─── Input ──────────────────────────────────────────────── */
|
|
693
|
+
.flow-input {
|
|
694
|
+
display: block;
|
|
695
|
+
width: 100%;
|
|
696
|
+
padding: var(--flow-space-2) var(--flow-space-3);
|
|
697
|
+
font-family: var(--flow-font-sans);
|
|
698
|
+
font-size: 0.875rem;
|
|
699
|
+
line-height: 1.5;
|
|
700
|
+
color: var(--flow-gray-900);
|
|
701
|
+
background: var(--flow-white);
|
|
702
|
+
border: 1px solid var(--flow-gray-300);
|
|
703
|
+
border-radius: var(--flow-radius-md);
|
|
704
|
+
outline: none;
|
|
705
|
+
transition: border-color var(--flow-transition-fast), box-shadow var(--flow-transition-fast);
|
|
706
|
+
}
|
|
707
|
+
.flow-input:focus { border-color: var(--flow-primary); box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15); }
|
|
708
|
+
.flow-input::placeholder { color: var(--flow-gray-400); }
|
|
709
|
+
.flow-input--error { border-color: var(--flow-danger); }
|
|
710
|
+
.flow-input--error:focus { box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15); }
|
|
711
|
+
.flow-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--flow-gray-700); margin-bottom: var(--flow-space-1); }
|
|
712
|
+
.flow-form-group { display: flex; flex-direction: column; gap: var(--flow-space-1); }
|
|
713
|
+
|
|
714
|
+
/* ─── Avatar ─────────────────────────────────────────────── */
|
|
715
|
+
.flow-avatar {
|
|
716
|
+
display: inline-flex;
|
|
717
|
+
align-items: center;
|
|
718
|
+
justify-content: center;
|
|
719
|
+
border-radius: var(--flow-radius-full);
|
|
720
|
+
overflow: hidden;
|
|
721
|
+
background: var(--flow-gray-200);
|
|
722
|
+
color: var(--flow-gray-600);
|
|
723
|
+
font-weight: 600;
|
|
724
|
+
flex-shrink: 0;
|
|
725
|
+
}
|
|
726
|
+
.flow-avatar--xs { width: 1.5rem; height: 1.5rem; font-size: 0.625rem; }
|
|
727
|
+
.flow-avatar--sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
|
|
728
|
+
.flow-avatar--md { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
|
|
729
|
+
.flow-avatar--lg { width: 3.5rem; height: 3.5rem; font-size: 1rem; }
|
|
730
|
+
.flow-avatar--xl { width: 5rem; height: 5rem; font-size: 1.5rem; }
|
|
731
|
+
.flow-avatar--status { position: relative; }
|
|
732
|
+
.flow-avatar--status::after { content: ''; position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; background: var(--flow-success); border-radius: 50%; border: 2px solid white; }
|
|
733
|
+
.flow-avatar-group { display: flex; }
|
|
734
|
+
.flow-avatar-group .flow-avatar { margin-left: -0.5rem; border: 2px solid white; }
|
|
735
|
+
.flow-avatar-group .flow-avatar:first-child { margin-left: 0; }
|
|
736
|
+
|
|
737
|
+
/* ─── Progress ───────────────────────────────────────────── */
|
|
738
|
+
.flow-progress {
|
|
739
|
+
height: 0.5rem;
|
|
740
|
+
background: var(--flow-gray-200);
|
|
741
|
+
border-radius: var(--flow-radius-full);
|
|
742
|
+
overflow: hidden;
|
|
743
|
+
}
|
|
744
|
+
.flow-progress__bar {
|
|
745
|
+
height: 100%;
|
|
746
|
+
background: var(--flow-primary);
|
|
747
|
+
border-radius: inherit;
|
|
748
|
+
animation: flow-progress 1s ease forwards;
|
|
749
|
+
transition: width var(--flow-transition-slow);
|
|
750
|
+
}
|
|
751
|
+
.flow-progress__bar--gradient { background: linear-gradient(90deg, var(--flow-primary), var(--flow-accent)); }
|
|
752
|
+
.flow-progress__bar--striped { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0, rgba(255,255,255,0.2) 8px, transparent 0, transparent 50%); background-size: 24px 24px; animation: flow-progress 1s ease forwards; }
|
|
753
|
+
.flow-progress--sm { height: 0.25rem; }
|
|
754
|
+
.flow-progress--lg { height: 1rem; }
|
|
755
|
+
|
|
756
|
+
/* ─── Tooltip ────────────────────────────────────────────── */
|
|
757
|
+
.flow-tooltip-wrap { position: relative; display: inline-flex; }
|
|
758
|
+
.flow-tooltip {
|
|
759
|
+
position: absolute;
|
|
760
|
+
bottom: calc(100% + 8px);
|
|
761
|
+
left: 50%;
|
|
762
|
+
transform: translateX(-50%) scale(0.95);
|
|
763
|
+
background: var(--flow-gray-900);
|
|
764
|
+
color: #fff;
|
|
765
|
+
font-size: 0.75rem;
|
|
766
|
+
padding: 0.25rem 0.625rem;
|
|
767
|
+
border-radius: var(--flow-radius-md);
|
|
768
|
+
white-space: nowrap;
|
|
769
|
+
pointer-events: none;
|
|
770
|
+
opacity: 0;
|
|
771
|
+
transition: opacity var(--flow-transition-fast), transform var(--flow-transition-fast);
|
|
772
|
+
z-index: var(--flow-z-overlay);
|
|
773
|
+
}
|
|
774
|
+
.flow-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--flow-gray-900); }
|
|
775
|
+
.flow-tooltip-wrap:hover .flow-tooltip { opacity: 1; transform: translateX(-50%) scale(1); }
|
|
776
|
+
|
|
777
|
+
/* ─── Skeleton ───────────────────────────────────────────── */
|
|
778
|
+
.flow-skeleton {
|
|
779
|
+
background: linear-gradient(90deg, var(--flow-gray-100) 25%, var(--flow-gray-200) 50%, var(--flow-gray-100) 75%);
|
|
780
|
+
background-size: 200% 100%;
|
|
781
|
+
animation: flow-shimmer 1.5s infinite;
|
|
782
|
+
border-radius: var(--flow-radius-md);
|
|
783
|
+
}
|
|
784
|
+
.flow-skeleton--text { height: 1em; width: 100%; margin-bottom: 0.5em; }
|
|
785
|
+
.flow-skeleton--title { height: 1.5em; width: 60%; margin-bottom: 0.75em; }
|
|
786
|
+
.flow-skeleton--avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0; }
|
|
787
|
+
.flow-skeleton--image { width: 100%; aspect-ratio: 16/9; }
|
|
788
|
+
|
|
789
|
+
/* ─── Divider ────────────────────────────────────────────── */
|
|
790
|
+
.flow-divider {
|
|
791
|
+
display: flex;
|
|
792
|
+
align-items: center;
|
|
793
|
+
gap: var(--flow-space-4);
|
|
794
|
+
color: var(--flow-gray-400);
|
|
795
|
+
font-size: 0.875rem;
|
|
796
|
+
}
|
|
797
|
+
.flow-divider::before, .flow-divider::after { content: ''; flex: 1; height: 1px; background: var(--flow-gray-200); }
|
|
798
|
+
|
|
799
|
+
/* ─── Accordion ──────────────────────────────────────────── */
|
|
800
|
+
.flow-accordion { border: 1px solid var(--flow-gray-200); border-radius: var(--flow-radius-lg); overflow: hidden; }
|
|
801
|
+
.flow-accordion__item + .flow-accordion__item { border-top: 1px solid var(--flow-gray-200); }
|
|
802
|
+
.flow-accordion__trigger {
|
|
803
|
+
display: flex;
|
|
804
|
+
justify-content: space-between;
|
|
805
|
+
align-items: center;
|
|
806
|
+
width: 100%;
|
|
807
|
+
padding: var(--flow-space-4) var(--flow-space-5);
|
|
808
|
+
background: none;
|
|
809
|
+
border: none;
|
|
810
|
+
cursor: pointer;
|
|
811
|
+
font-weight: 500;
|
|
812
|
+
color: var(--flow-gray-900);
|
|
813
|
+
transition: background var(--flow-transition-fast);
|
|
814
|
+
}
|
|
815
|
+
.flow-accordion__trigger:hover { background: var(--flow-gray-50); }
|
|
816
|
+
.flow-accordion__icon { transition: transform var(--flow-transition); }
|
|
817
|
+
.flow-accordion__item.is-open .flow-accordion__icon { transform: rotate(180deg); }
|
|
818
|
+
.flow-accordion__content { overflow: hidden; max-height: 0; transition: max-height var(--flow-transition-slow); }
|
|
819
|
+
.flow-accordion__item.is-open .flow-accordion__content { max-height: 500px; }
|
|
820
|
+
.flow-accordion__body { padding: 0 var(--flow-space-5) var(--flow-space-4); color: var(--flow-gray-600); animation: flow-accordion-open var(--flow-dur-base) ease; }
|
|
821
|
+
|
|
822
|
+
/* ─── Tabs ───────────────────────────────────────────────── */
|
|
823
|
+
.flow-tabs { border-bottom: 1px solid var(--flow-gray-200); display: flex; gap: 0; }
|
|
824
|
+
.flow-tab {
|
|
825
|
+
padding: var(--flow-space-3) var(--flow-space-5);
|
|
826
|
+
font-size: 0.875rem;
|
|
827
|
+
font-weight: 500;
|
|
828
|
+
color: var(--flow-gray-500);
|
|
829
|
+
border: none;
|
|
830
|
+
background: none;
|
|
831
|
+
cursor: pointer;
|
|
832
|
+
border-bottom: 2px solid transparent;
|
|
833
|
+
margin-bottom: -1px;
|
|
834
|
+
transition: color var(--flow-transition-fast), border-color var(--flow-transition-fast);
|
|
835
|
+
}
|
|
836
|
+
.flow-tab:hover { color: var(--flow-gray-900); }
|
|
837
|
+
.flow-tab.is-active { color: var(--flow-primary); border-bottom-color: var(--flow-primary); }
|
|
838
|
+
|
|
839
|
+
/* ─── Toast / Notification ───────────────────────────────── */
|
|
840
|
+
.flow-toast-container { position: fixed; bottom: var(--flow-space-6); right: var(--flow-space-6); display: flex; flex-direction: column; gap: var(--flow-space-2); z-index: var(--flow-z-toast); }
|
|
841
|
+
.flow-toast {
|
|
842
|
+
display: flex;
|
|
843
|
+
align-items: center;
|
|
844
|
+
gap: var(--flow-space-3);
|
|
845
|
+
padding: var(--flow-space-3) var(--flow-space-5);
|
|
846
|
+
background: var(--flow-gray-900);
|
|
847
|
+
color: #fff;
|
|
848
|
+
border-radius: var(--flow-radius-lg);
|
|
849
|
+
box-shadow: var(--flow-shadow-xl);
|
|
850
|
+
font-size: 0.875rem;
|
|
851
|
+
min-width: 280px;
|
|
852
|
+
animation: flow-slide-left var(--flow-dur-base) ease forwards;
|
|
853
|
+
}
|
|
854
|
+
.flow-toast--success { background: var(--flow-success); }
|
|
855
|
+
.flow-toast--danger { background: var(--flow-danger); }
|
|
856
|
+
.flow-toast--warning { background: var(--flow-warning); color: var(--flow-gray-900); }
|
|
857
|
+
|
|
858
|
+
/* ─── Spinner ────────────────────────────────────────────── */
|
|
859
|
+
.flow-spinner {
|
|
860
|
+
display: inline-block;
|
|
861
|
+
width: 1.5rem;
|
|
862
|
+
height: 1.5rem;
|
|
863
|
+
border: 2px solid var(--flow-gray-200);
|
|
864
|
+
border-top-color: var(--flow-primary);
|
|
865
|
+
border-radius: 50%;
|
|
866
|
+
animation: flow-spin 0.7s linear infinite;
|
|
867
|
+
}
|
|
868
|
+
.flow-spinner--sm { width: 1rem; height: 1rem; }
|
|
869
|
+
.flow-spinner--lg { width: 2.5rem; height: 2.5rem; border-width: 3px; }
|
|
870
|
+
.flow-spinner--dots {
|
|
871
|
+
display: inline-flex;
|
|
872
|
+
gap: 0.25rem;
|
|
873
|
+
align-items: center;
|
|
874
|
+
}
|
|
875
|
+
.flow-spinner--dots > span {
|
|
876
|
+
width: 0.5rem; height: 0.5rem;
|
|
877
|
+
background: var(--flow-primary);
|
|
878
|
+
border-radius: 50%;
|
|
879
|
+
animation: flow-wave 1s ease-in-out infinite;
|
|
880
|
+
}
|
|
881
|
+
.flow-spinner--dots > span:nth-child(2) { animation-delay: 0.1s; }
|
|
882
|
+
.flow-spinner--dots > span:nth-child(3) { animation-delay: 0.2s; }
|
|
883
|
+
|
|
884
|
+
/* ─── Navbar ─────────────────────────────────────────────── */
|
|
885
|
+
.flow-navbar {
|
|
886
|
+
display: flex;
|
|
887
|
+
align-items: center;
|
|
888
|
+
padding: var(--flow-space-4) var(--flow-space-6);
|
|
889
|
+
background: var(--flow-white);
|
|
890
|
+
border-bottom: 1px solid var(--flow-gray-200);
|
|
891
|
+
}
|
|
892
|
+
.flow-navbar--sticky { position: sticky; top: 0; z-index: var(--flow-z-overlay); }
|
|
893
|
+
.flow-navbar--glass { background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); }
|
|
894
|
+
.flow-navbar__brand { font-size: 1.25rem; font-weight: 700; color: var(--flow-gray-900); text-decoration: none; }
|
|
895
|
+
.flow-navbar__nav { display: flex; gap: var(--flow-space-6); margin-inline: auto; }
|
|
896
|
+
.flow-navbar__link { font-size: 0.875rem; color: var(--flow-gray-600); text-decoration: none; transition: color var(--flow-transition-fast); }
|
|
897
|
+
.flow-navbar__link:hover, .flow-navbar__link.is-active { color: var(--flow-primary); }
|
|
898
|
+
|
|
899
|
+
/* ─── Hero utility ───────────────────────────────────────── */
|
|
900
|
+
.flow-hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--flow-space-16) var(--flow-space-6); }
|
|
901
|
+
.flow-section { padding-block: var(--flow-space-20); }
|
|
902
|
+
|
|
903
|
+
/* ─── Code ───────────────────────────────────────────────── */
|
|
904
|
+
.flow-code {
|
|
905
|
+
font-family: var(--flow-font-mono);
|
|
906
|
+
font-size: 0.875em;
|
|
907
|
+
background: var(--flow-gray-100);
|
|
908
|
+
color: var(--flow-gray-800);
|
|
909
|
+
padding: 0.125em 0.375em;
|
|
910
|
+
border-radius: var(--flow-radius-sm);
|
|
911
|
+
}
|
|
912
|
+
.flow-pre {
|
|
913
|
+
font-family: var(--flow-font-mono);
|
|
914
|
+
font-size: 0.875rem;
|
|
915
|
+
background: var(--flow-gray-900);
|
|
916
|
+
color: #e2e8f0;
|
|
917
|
+
padding: var(--flow-space-5);
|
|
918
|
+
border-radius: var(--flow-radius-lg);
|
|
919
|
+
overflow-x: auto;
|
|
920
|
+
line-height: 1.7;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/* ─── Table ──────────────────────────────────────────────── */
|
|
924
|
+
.flow-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
|
|
925
|
+
.flow-table th { text-align: left; font-weight: 600; padding: var(--flow-space-3) var(--flow-space-4); border-bottom: 2px solid var(--flow-gray-200); color: var(--flow-gray-600); }
|
|
926
|
+
.flow-table td { padding: var(--flow-space-3) var(--flow-space-4); border-bottom: 1px solid var(--flow-gray-100); }
|
|
927
|
+
.flow-table--striped tr:nth-child(even) td { background: var(--flow-gray-50); }
|
|
928
|
+
.flow-table--hover tr:hover td { background: var(--flow-gray-50); }
|
|
929
|
+
|
|
930
|
+
/* ─── Chip / Tag ─────────────────────────────────────────── */
|
|
931
|
+
.flow-chip {
|
|
932
|
+
display: inline-flex;
|
|
933
|
+
align-items: center;
|
|
934
|
+
gap: var(--flow-space-1);
|
|
935
|
+
padding: 0.25rem 0.75rem;
|
|
936
|
+
background: var(--flow-gray-100);
|
|
937
|
+
color: var(--flow-gray-700);
|
|
938
|
+
border-radius: var(--flow-radius-full);
|
|
939
|
+
font-size: 0.8125rem;
|
|
940
|
+
font-weight: 500;
|
|
941
|
+
cursor: pointer;
|
|
942
|
+
transition: background var(--flow-transition-fast);
|
|
943
|
+
}
|
|
944
|
+
.flow-chip:hover { background: var(--flow-gray-200); }
|
|
945
|
+
.flow-chip.is-active { background: var(--flow-primary); color: #fff; }
|
|
946
|
+
.flow-chip__close { margin-left: var(--flow-space-1); opacity: 0.6; font-size: 0.75rem; }
|
|
947
|
+
|
|
948
|
+
/* ─── Timeline ───────────────────────────────────────────── */
|
|
949
|
+
.flow-timeline { position: relative; padding-left: var(--flow-space-8); }
|
|
950
|
+
.flow-timeline::before { content: ''; position: absolute; left: 0.75rem; top: 0; bottom: 0; width: 2px; background: var(--flow-gray-200); }
|
|
951
|
+
.flow-timeline__item { position: relative; margin-bottom: var(--flow-space-6); }
|
|
952
|
+
.flow-timeline__item::before { content: ''; position: absolute; left: calc(-2rem + 3px); top: 0.375rem; width: 10px; height: 10px; background: var(--flow-primary); border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 3px rgb(37 99 235 / 0.2); }
|
|
953
|
+
.flow-timeline__date { font-size: 0.75rem; color: var(--flow-gray-400); margin-bottom: 0.25rem; }
|
|
954
|
+
.flow-timeline__title { font-weight: 600; margin-bottom: 0.25rem; }
|
|
955
|
+
.flow-timeline__body { color: var(--flow-gray-500); font-size: 0.875rem; }
|
|
956
|
+
|
|
957
|
+
/* ─── Stat card ──────────────────────────────────────────── */
|
|
958
|
+
.flow-stat { padding: var(--flow-space-6); }
|
|
959
|
+
.flow-stat__label { font-size: 0.875rem; color: var(--flow-gray-500); font-weight: 500; }
|
|
960
|
+
.flow-stat__value { font-size: 2.25rem; font-weight: 700; line-height: 1.2; margin-top: 0.25rem; }
|
|
961
|
+
.flow-stat__delta { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; font-weight: 500; margin-top: 0.25rem; }
|
|
962
|
+
.flow-stat__delta--up { color: var(--flow-success); }
|
|
963
|
+
.flow-stat__delta--down { color: var(--flow-danger); }
|
|
964
|
+
|
|
965
|
+
/* ─── Scrollbar ──────────────────────────────────────────── */
|
|
966
|
+
.flow-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
967
|
+
.flow-scrollbar::-webkit-scrollbar-track { background: var(--flow-gray-100); }
|
|
968
|
+
.flow-scrollbar::-webkit-scrollbar-thumb { background: var(--flow-gray-300); border-radius: 3px; }
|
|
969
|
+
.flow-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--flow-gray-400); }
|
|
970
|
+
.flow-scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
|
|
971
|
+
.flow-scrollbar-hide::-webkit-scrollbar { display: none; }
|
|
972
|
+
|
|
973
|
+
/* ─── Misc utilities ─────────────────────────────────────── */
|
|
974
|
+
.flow-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
|
|
975
|
+
.flow-pointer-events-none { pointer-events: none; }
|
|
976
|
+
.flow-pointer-events-auto { pointer-events: auto; }
|
|
977
|
+
.flow-transition { transition: all var(--flow-transition); }
|
|
978
|
+
.flow-transition-fast { transition: all var(--flow-transition-fast); }
|
|
979
|
+
.flow-transition-slow { transition: all var(--flow-transition-slow); }
|
|
980
|
+
.flow-transition-spring { transition: all var(--flow-transition-spring); }
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
/* ============================================================
|
|
984
|
+
RESPONSIVE BREAKPOINTS
|
|
985
|
+
============================================================ */
|
|
986
|
+
/* sm: 640px | md: 768px | lg: 1024px | xl: 1280px */
|
|
987
|
+
@media (max-width: 640px) {
|
|
988
|
+
.flow-sm-hidden { display: none; }
|
|
989
|
+
.flow-sm-flex-col { flex-direction: column; }
|
|
990
|
+
.flow-sm-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
991
|
+
.flow-sm-text-center { text-align: center; }
|
|
992
|
+
.flow-sm-text-sm { font-size: 0.875rem; }
|
|
993
|
+
.flow-sm-text-xl { font-size: 1.25rem; }
|
|
994
|
+
.flow-sm-text-3xl { font-size: 1.875rem; }
|
|
995
|
+
.flow-sm-p-4 { padding: var(--flow-space-4); }
|
|
996
|
+
}
|
|
997
|
+
@media (min-width: 768px) {
|
|
998
|
+
.flow-md-flex { display: flex; }
|
|
999
|
+
.flow-md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
1000
|
+
.flow-md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1001
|
+
.flow-md-hidden { display: none; }
|
|
1002
|
+
.flow-md-block { display: block; }
|
|
1003
|
+
}
|
|
1004
|
+
@media (min-width: 1024px) {
|
|
1005
|
+
.flow-lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1006
|
+
.flow-lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/* Reduced motion */
|
|
1010
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1011
|
+
*, *::before, *::after {
|
|
1012
|
+
animation-duration: 0.01ms !important;
|
|
1013
|
+
animation-iteration-count: 1 !important;
|
|
1014
|
+
transition-duration: 0.01ms !important;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/* Print */
|
|
1019
|
+
@media print {
|
|
1020
|
+
.flow-no-print { display: none !important; }
|
|
1021
|
+
}
|